< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index Next in Thread >

Re: [reSIProcate] "Undefined symbols" on Mac OS X 10.4.8


        Hello!
        Here is some more info...
        I instantiate SipStack object without parameters, so the constructor is
called with its default parameters. I tried to instantiate the object
with two bogus parameters:

        SipStack mSipStack( 0, 0 );

        The compiler complained immediately:

error: no matching function for call to 'resip::SipStack::SipStack(int,
int)'
SipStack.hxx:462: note: candidates are: resip::SipStack::SipStack(const
resip::SipStack&)
SipStack.hxx:52: note:
resip::SipStack::SipStack(resip::Security*, const
std::vector<resip::GenericIPAddress,
std::allocator<resip::GenericIPAddress> >&, resip::AsyncProcessHandler*,
bool, void (*)(resip::Socket, int, const char*, int))

        I built again without parameters. Compilation completed successfully,
but linker complains:

/usr/bin/ld: Undefined symbols:
resip::SipStack::SipStack(resip::Security*,
std::vector<resip::GenericIPAddress,
std::allocator<resip::GenericIPAddress> > const&,
resip::AsyncProcessHandler*, bool, void (*)(int, int, char const*, int))

        What frustrated me was:

************************************************************
--- In compiler's suggestion second parameter is:
const std::vector<resip::GenericIPAddress,
std::allocator<resip::GenericIPAddress> >&
=============================================
--- In linker's "undefined symbol" second parameter is
std::vector<resip::GenericIPAddress,
std::allocator<resip::GenericIPAddress> > const&
************************************************************

        Why in linker's suggestion the *const* is at the end of type required??
        What is wrong?
        Thanks in advance!

        Best regards,
        Petyo Milotinov



Petyo Milotinov wrote:
>       Hello!
>       I develop a softphone using resiprocate. The phone builds on Linux and
> Windows without problems. But on Mac OS X 10.4.8 (Intel) I receive:
> 
> /usr/bin/ld: Undefined symbols:
> resip::SipStack::SipStack(resip::Security*,
> std::vector<resip::GenericIPAddress,
> std::allocator<resip::GenericIPAddress> > const&,
> resip::AsyncProcessHandler*, bool, void (*)(int, int, char const*, int))
> collect2: ld returned 1 exit status
> make: *** [idefisk2] Error 1
> 
>       I'm using SVN version of resiprocate, revision 6946.
>       Where am I wrong?
>       Thanks in advance!
> 
>       Best regards,
>       Petyo Milotinov
_______________________________________________
resiprocate-devel mailing list
resiprocate-devel@xxxxxxxxxxxxxxxxxxxx
https://list.resiprocate.org/mailman/listinfo/resiprocate-devel