how to link library for linux

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

 



Hello everyone,
I am using pjsip for linux, i am new to linux.
I am trying to compile simple application. I have configure and install
pjsip library. when i compile  simple program using gcc it gives an error

/tmp/ccwXPs8q.o: In function `main':
exec.c:(.text+0xe7): undefined reference to `pj_init'
exec.c:(.text+0xff): undefined reference to `pj_exception_id_alloc'
exec.c:(.text+0x117): undefined reference to `pj_exception_id_alloc'
collect2: ld returned 1 exit status

It seems that it does not find library.

I include these using C_INCLUDE_PATH
and for libraries LIBRARY_PATH

I also compile program by using -I and -L

These libraries and include files are in /usr/local/lib and
usr/local/include respectively.

please tell me where i am going wrong?

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