cannot find-lABC [message #1826860] |
Sat, 02 May 2020 17:32  |
Eclipse User |
|
|
|
Hi guys , i need your help please
So i want to add external library to my project in order to compile correctly.
The problem is that my library is "ABC.LIB" don't link properly :
Solution 1
add in setting -> MinGW C Linker -> Libraries the path of the library(-L) and since the library doesn't start with "lib" i left the (-l) tab empty and added the library in Miscellaneous-> Other object but the problem is when i build the project i got the error ''undefined reference to xxx" i think it's due to the fact that the gcc start with object files before library
gcc "-LC:\\User\\Desktop\\CCmpUTest\\src\\Env\\Dependencies\\lib" -o aaa.exe "src\\Cmp\\hello1.o" "src\\Cmp\\hello2.o" "..\\src\\Env\\Dependencies\\lib\\ABC.LIB"
Solution 2
I tried to rename the lib file to "libabc.lib" or change extension to "libabc.a" but i got the error cannot find-labc
Can someone help me please with this issue, i've been stuck with it for a while :/
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04472 seconds