error while compiling...

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Apr 2009
Posts: 24
Reputation: valtikz is on a distinguished road 
Solved Threads: 1
valtikz valtikz is offline Offline
Newbie Poster

error while compiling...

 
0
  #1
Jun 16th, 2009
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:
  1. 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
Reply With Quote Quick reply to this message  
Join Date: Mar 2009
Posts: 110
Reputation: s_sridhar has a little shameless behaviour in the past 
Solved Threads: 11
s_sridhar's Avatar
s_sridhar s_sridhar is offline Offline
Junior Poster

Re: error while compiling...

 
0
  #2
Jun 16th, 2009
Well, post your code first.
Last edited by s_sridhar; Jun 16th, 2009 at 2:55 am.
Intel inside, mental outside
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 24
Reputation: valtikz is on a distinguished road 
Solved Threads: 1
valtikz valtikz is offline Offline
Newbie Poster

Re: error while compiling...

 
0
  #3
Jun 16th, 2009
here is my code...
  1. if (cmdstr.getOp() == SipCommandString::start_presence_client){
  2. cerr << "DefaultDialogHandler: Creating SipDialogPresenceClient for start_presence_client command"<< endl;
  3.  
  4. MRef<SipDialogPresenceClient*> pres(new SipDialogPresenceClient(sipStack, phoneconf->defaultIdentity, phoneconf->useSTUN ));
  5.  
  6. MRef<SipDialogPublish*> pub(new SipDialogPublish(sipStack, phoneconf->defaultIdentity, phoneconf->useSTUN )); //line 343
  7.  
  8. sipStack->addDialog( MRef<SipDialog*>(*pub) );
  9. sipStack->addDialog( MRef<SipDialog*>(*pres) );
  10.  
  11. CommandString command(cmdstr);
  12. cmdstr.setDestinationId(pres->getCallId());
  13. cmdstr.setDestinationId(pub->getCallId());
  14. SipSMCommand cmd( cmdstr, SipSMCommand::transaction_layer, SipSMCommand::dialog_layer);
  15. sipStack->enqueueCommand(cmd, HIGH_PRIO_QUEUE );
  16.  
  17. return true;
  18. }
Last edited by valtikz; Jun 16th, 2009 at 3:01 am.
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 2,001
Reputation: ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of 
Solved Threads: 343
ArkM's Avatar
ArkM ArkM is offline Offline
Postaholic

Re: error while compiling...

 
0
  #4
Jun 16th, 2009
No a proper constructor of the class SipDialogPublish.
Check up class SipDialogPublish definition and types of constructor arguments in the line #343. Probably this constructor was declared but not defined yet...

Posted code is irrelevant.
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 24
Reputation: valtikz is on a distinguished road 
Solved Threads: 1
valtikz valtikz is offline Offline
Newbie Poster

Re: error while compiling...

 
0
  #5
Jun 16th, 2009
thanks arkM, but what do you mean not defined? can I know how to define it?
this is my class SipDialogPublish:
  1. SipDialogPublish::SipDialogPublish(MRef<SipStack*> stack,
  2. MRef<SipIdentity*> ident,
  3. bool use_stun) :
  4. SipDialog(stack,ident, ""),
  5. useSTUN(use_stun)
  6. {
  7. setUpStateMachine();
  8. }
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 3,114
Reputation: WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of 
Solved Threads: 281
Moderator
WaltP's Avatar
WaltP WaltP is offline Offline
Posting Sensei

Re: error while compiling...

 
0
  #6
Jun 16th, 2009
Originally Posted by valtikz View Post
thanks arkM, but what do you mean not defined?
Where is the method SipDialogPublish() defined in the class? You are calling it, so what is it supposed to do?

Originally Posted by valtikz View Post
can I know how to define it?
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
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC