|
From: M G, B. N. <bha...@hp...> - 2013-08-13 12:08:54
|
Hello, I have a .a file to which I am trying to link my shared library. I have setup eclipse to use MinGW which is installed at c:\MinGW. I am compiling my code on eclipse but in essence it runs the following commands. g++ -O0 -g3 -Wall -c -fmessage-length=0 -o wrapper.o "wrapper.cpp" g++ "-LC:\\eclipse\\workspace\\" -shared -o libwrapper.dll wrapper.o -llibtp.a I get the following error during link time. c:/mingw/bin/../lib/gcc/mingw32/4.7.2/../../../../mingw32/bin/ld.exe: cannot find -llibtp.a But I am sure that the file libtp.a is present at the location C:\eclipse\workspace. I have tried modifying the way I specify the library i.e., instead of -llibtp.a I gave -ltp. But nothing seems to work. What could be wrong? Regards, Bharath |