hi,Gang: Actually, I the class PjCallback is in my project, and I have defined all these functions, also include the header file. Could you tell me which linker flags should include in my Makefile? Thanks Date: Mon, 28 Jul 2008 14:41:28 +0800From: gangban.lau@gmail.comTo: pjsip at lists.pjsip.orgSubject: Re: Could you help me check why I have such error? It seems issue with linker. check your makefile for linker flags.regards,Gang 2008/7/28 Liusheng <liu_sx2006 at hotmail.com> hi, Klaus: Thanks for your information. I want to develop a simple gateway use PjSSIP. now I prepare use pjcallback to process the incoming call and get the status of call. I wrappered it like your project. however I cannot compile my project. it will find follow error, could you help me check the cause? thanks again. I attched all my souce code. /tmp/ccJfs4Hi.o: In function `PjSIPPoint::init()':PjSIPPoint.cpp:(.text+0xf9): undefined reference to `PjCallback::on_incoming_call_wrapper(int, int, pjsip_rx_data*)'PjSIPPoint.cpp:(.text+0x103): undefined reference to `PjCallback::on_call_media_state_wrapper(int)'PjSIPPoint.cpp:(.text+0x10d): undefined reference to `PjCallback::on_call_state_wrapper(int, pjsip_event*)'/tmp/ccJfs4Hi.o: In function `PjSIPPoint::PjSIPPoint()':PjSIPPoint.cpp:(.text+0x371): undefined reference to `globalPjCallback'PjSIPPoint.cpp:(.text+0x391): undefined reference to `PjCallback::PjCallback()'/tmp/ccJfs4Hi.o: In function `PjSIPPoint::PjSIPPoint()':PjSIPPoint.cpp:(.text+0x491): undefined reference to `globalPjCallback'PjSIPPoint.cpp:(.text+0x4b1): undefined reference to `PjCallback::PjCallback()'collect2: ld returned 1 exit statusmake: *** [PjSIPPoint.o] Error 1 > Date: Fri, 25 Jul 2008 16:27:38 +0200> From: klaus.mailinglists@xxxxxxxxx> To: pjsip at lists.pjsip.org> Subject: Re: who have the sample souce code use C++ call PJSIP?> > > You can take a look at QjSImple. It is Qt based (C++), thus you can get> an idea how it works. (With C++ you need some kind of wrapper for the C> callbacks, otherwise there is no difference if you program in C or C++)> > http://www.ipcom.at/index.php?id=560> > regards> klaus> > Liusheng schrieb:> > Hi,ALL:> > > > I want to develop c++ class to call API of PJSIP, for example; > > pjsua_call_make_call.> > > > Does someone have such example souce code? could you help me?> > > > Thanks> > > > ------------------------------------------------------------------------> > ???Hotmail???????? Windows Live Mail? ????? > > <http://get.live.com/wl/all>> > > > > > ------------------------------------------------------------------------> > > > _______________________________________________> > Visit our blog: http://blog.pjsip.org> > > > pjsip mailing list> > pjsip at lists.pjsip.org> > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org> > _______________________________________________> Visit our blog: http://blog.pjsip.org> > pjsip mailing list> pjsip at lists.pjsip.org> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org MSN????????????? ???????_______________________________________________Visit our blog: http://blog.pjsip.orgpjsip mailing listpjsip at lists.pjsip.orghttp://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org _________________________________________________________________ ???MSN??????????????????? http://mobile.msn.com.cn/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080728/0257d4d0/attachment.html