pjsua_create() undefined.

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

 



when compiling you need to specify the librari folder path

gcc -Lcorrectpathhere pjsip-perf.c -lpjsua

hope this helps

> gcc pjsip-perf.c
On Jul 31, 2010, at 2:18 PM, Shamun toha md wrote:

> 
> 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

------
Alejandro Orellana
Savant Systems, LLC
770 Main Street
Osterville, Ma. 02655
(508) 683-2547 (W)
(508) 683-2647 (F)
Alejandro.Orellana at savantav.com

Statement of Confidentiality
The contents of this e-mail message and any attachments are confidential and are intended solely for the addressee. The information may also be legally privileged. This transmission is sent in trust, and the sole purpose of delivery to the intended recipient. If you have received this transmission in error, any use, reproduction or dissemination of this transmission is strictly prohibited. If you are not the intended recipient, please immediately notify the sender by reply e-mail or at 508.683-2500 and delete this message and its attachments, if any.



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