This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: /usr/bin/ld: cannot find -llibeXosip2.so error


As an alternative to -l<namespec> (namespec is the library name without
the leading lib and the ending so.#, like eXosip2) you could also try this

gcc -lpthread sip.c -o sip -L/usr/local/lib/ -l:libeXosip2.so

Extract from the linker manpage:

-lnamespec
--library=namespec
           [...]  If namespec is of the form :filename, ld will search the
           library path for a file called filename, [...]

Andi



Jason Pernito wrote:
> First, does libeXosip2.so exist in your /usr/local/lib? If so, try this:
> gcc -lpthread sip.c -o sip -L/usr/local/lib/ -leXosip2
>
> -jason
>
> On Wed, Jun 10, 2009 at 3:26 PM, Andre Warnier<andrewarnier@gmail.com> wrote:
>   
>> Hi all ..
>> I'm using "gcc -lpthread sip.c -o sip -L/usr/local/lib/ -llibeXosip2.so" to
>> compile my code,
>> But get the error msg :
>>
>> root@vinod:~# gcc -lpthread sip.c -o sip -L/usr/local/lib/ -llibeXosip2.so
>> /usr/bin/ld: cannot find -llibeXosip2.so
>> collect2: ld returned 1 exit status
>>
>>
>> what's happening!
>>
>>
>> Thanks & regards,
>> anddre
>>
>>
>>     
>
>
>
>   


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]