added new library but still eclipse cannot find it [message #1730964] |
Sun, 01 May 2016 06:25 |
Eclipse User |
|
|
|
I've been trying to use libtins library in my c++ project,but I'm unable to run it.
I compiled libtins from source in /usr/local/lib. In eclipse, I added in `project >> properties >> cross G++ Compiler >> Includes` the path of the headers file of the lib.
Then in `... >> Cross G++ Linker >> Libraries` I added in the -l field /usr/local/lib/libtins.so
and in the -L field
Then I modified the /etc/ld.so.conf file adding /usr/local/lib and running then ldconfig as sudo to refresh the cache
but when I run it still say
Building target: PacketSniffer
Invoking: Cross G++ Linker
g++ -L/usr/local/lib -o "PacketSniffer" ./src/PacketSniffer.o -l/usr/local/lib/libtins.so
/usr/bin/ld: cannot find -l/usr/local/lib/libtins.so
collect2: error: ld returned 1 exit status
make: *** [PacketSniffer] Error 1
makefile:45: recipe for target 'PacketSniffer' failed
Did i miss something?
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03711 seconds