That is correct. Ingeneral you need to specify The include files paths with the -I option The librareis path with -L option And the librRies you r using with. The -l Sent from my iPhone On Aug 1, 2010, at 12:49 AM, Paulo Rog?rio Panhoto <paulo at voicetechnology.com.br> wrote: > You need to add the pjsip libraries with the -l option. > > i.e> gcc -o pjsip-perf -lpjsua pjsip-perf > > Regards, > > Paulo > > 2010/7/31 Shamun toha md <shamun.toha at gmail.com> > > Dear sir, > > I am using Fedora 12 and pjSIP. I am getting this error. for the reference of "pjsua_create()". > > Error: > ===== > [sun at example mysip]$ gcc pjsip-perf.c > /tmp/ccGXG4zr.o: In function `main': > pjsip-perf.c:(.text+0xa): undefined reference to `pjsua_create' > > collect2: ld returned 1 exit status > [sun at example mysip]$ > > > > Code: > ======== > // Step -1 > #include <pjsua-lib/pjsua.h> > > // Step -2 > #define sip_realm "asterisk" > #define sip_domain "127.0.0.1" > #define sip_user "dddd" > #define sip_passwd "dddd" > > > > // Step -3 > int main(int argc, char *argv[]) > { > > pjsua_acc_id acc_id; > pj_status_t status; > > // Create pjsua first > status = pjsua_create(); > > return 0; > > } > > > Thank you > Best regards > Shamun > > > > > _______________________________________________ > 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20100801/21d7e48f/attachment.html>