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/