how to link library for linux

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

 



hi
Can you give me all gcc argumnets? 
It seems that you are forgot add pjsip library with parameter -l

-lpjsua -lpjsip-ua -lpjsip -lpjmedia-codec -lpjmedia...etc..


On Tuesday 23 March 2010 01:02:21 pm pranoti nandurkar wrote:
> 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




[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