John,

Make sure that you have included SIPXTAPI_STATIC compiler pre-processor. You
can check the first lines in the sipxtapi.h file where the SIPX_TAPI_API is
defined. As you see here the different interfaces are defined.
BTW> mind that the the current trunk is broken (actually... last week
version was still broken). Currently SIPez is only developing on the media
part and do not check the remaining code. I immediately get a crash when
executing a sipxCallConnect.

With regards,
EiSl
On Nov 12, 2007 10:55 AM, John Prashant <[EMAIL PROTECTED]> wrote:

>  Hey,
> I'm trying to call sipxInitialize from a C++ function:
>
> void myQtApp::show(){
> SIPX_INST m_hInst;
>
> QWidget::show();
>
> SIPX_RESULT  rc = sipxInitialize(&m_hInst,
> 5060,
> 5060,
> 5061,
> 9000,
> 32,
> "sipx",
> "47.163.149.131", false,
> "certNick",
> "certPass",
> "dbLoc");
>
> }
>
> The compilation works fine but the linker
> Invoking: GCC C++ Linker
> g++ -lQtGui -lQtCore -o"my_sipXezPhone"  ./main.o ./moc_myqtapp.o
> ./myqtapp.o
> ./myqtapp.o: In function `myQtApp::show()':
> /root/sipXtapi/sipXcallLib/workspace/my_sipXezPhone/Debug/../myqtapp.cpp:101:
> undefined reference to `sipxInitialize'
> collect2: ld returned 1 exit status
> make: *** [my_sipXezPhone] Error 1
> make: Target `all' not remade because of errors.
> Build complete for project my_sipXezPhone
> I think this has to do with the fact that the API is written in C and I'm
> calling the APIs from within C++ code but I haven't been able to figure out
> how to tie the two together.
>
> Any help would be greatly appreciated.
>
> MfG,
> Prashant
> *"Clutter and confusion are failures of design, not attributes of
> information" - Edward Tufte, Envisioning Information*
>
> _______________________________________________
> sipxtapi-dev mailing list
> [email protected]
> List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/
>
_______________________________________________
sipxtapi-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/

Reply via email to