pjsua_create() undefined.

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

 



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