pjsua_create() undefined.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20100801/f780d897/attachment.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux