| | |
error while compiling...
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Apr 2009
Posts: 24
Reputation:
Solved Threads: 1
•
•
•
•
In function `DefaultDialogHandler::handleCommandString(CommandString&)':
/home/ws14/Desktop/trunk/test/test1/test2/test3/test4/DefaultDialogHandler.cxx:343: undefined reference to `SipDialogPublish::
SipDialogPublish(MRef<SipStack*>, MRef<SipIdentity*>, bool)'
collect2: ld returned 1 exit status
line 343 here:
cpp Syntax (Toggle Plain Text)
MRef<SipDialogPublish*> pub(new SipDialogPublish(sipStack, phoneconf->defaultIdentity, phoneconf->useSTUN ));
Can someone help me about this error...Please explain to me what is this mean..and how can I solve this one. thanks in advance
•
•
Join Date: Apr 2009
Posts: 24
Reputation:
Solved Threads: 1
here is my code...
cpp Syntax (Toggle Plain Text)
if (cmdstr.getOp() == SipCommandString::start_presence_client){ cerr << "DefaultDialogHandler: Creating SipDialogPresenceClient for start_presence_client command"<< endl; MRef<SipDialogPresenceClient*> pres(new SipDialogPresenceClient(sipStack, phoneconf->defaultIdentity, phoneconf->useSTUN )); MRef<SipDialogPublish*> pub(new SipDialogPublish(sipStack, phoneconf->defaultIdentity, phoneconf->useSTUN )); //line 343 sipStack->addDialog( MRef<SipDialog*>(*pub) ); sipStack->addDialog( MRef<SipDialog*>(*pres) ); CommandString command(cmdstr); cmdstr.setDestinationId(pres->getCallId()); cmdstr.setDestinationId(pub->getCallId()); SipSMCommand cmd( cmdstr, SipSMCommand::transaction_layer, SipSMCommand::dialog_layer); sipStack->enqueueCommand(cmd, HIGH_PRIO_QUEUE ); return true; }
Last edited by valtikz; Jun 16th, 2009 at 3:01 am.
•
•
Join Date: Apr 2009
Posts: 24
Reputation:
Solved Threads: 1
thanks arkM, but what do you mean not defined? can I know how to define it?
this is my class SipDialogPublish:
this is my class SipDialogPublish:
cpp Syntax (Toggle Plain Text)
SipDialogPublish::SipDialogPublish(MRef<SipStack*> stack, MRef<SipIdentity*> ident, bool use_stun) : SipDialog(stack,ident, ""), useSTUN(use_stun) { setUpStateMachine(); }
Where is the method
That depends on what it's supposed to do and what parameters are necessary to accomplish the task.
After all, it's your class definition, isn't it?
SipDialogPublish() defined in the class? You are calling it, so what is it supposed to do?That depends on what it's supposed to do and what parameters are necessary to accomplish the task.
After all, it's your class definition, isn't it?
The 3 Laws of the Procrastination Society:
1) Never do today that which can be put off until tomorrow
2) Tomorrow never comes
1) Never do today that which can be put off until tomorrow
2) Tomorrow never comes
![]() |
Similar Threads
- Error while compiling (C++)
- can't see output although it has no error while compiling (C++)
- Error while compiling (C)
- compiling error (C)
- 1 error compiling... (C++)
- Error in compiling matrix (C++)
- Error compiling complex.cpp (C++)
- error when compiling murphy's law with gcc (C)
Other Threads in the C++ Forum
- Previous Thread: More Efficient way? Grabbing numbers
- Next Thread: Which Visual Studio 2008?
| Thread Tools | Search this Thread |
api array based binary c++ c/c++ calculator char char* class classes code coding compile console conversion count database delete deploy desktop developer directshow dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp iamthwee ifstream input int integer java lib linkedlist linker linux list loop looping loops map math matrix memory multiple news number numbertoword output parameter pointer problem program programming project python random read recursion recursive reference return rpg sorting string strings struct temperature template templates test text text-file tree unix url variable vector video visualstudio win32 windows winsock wordfrequency wxwidgets






