Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Eclipse beginner - cannot find static library
Eclipse beginner - cannot find static library [message #1235090] Thu, 23 January 2014 14:52
Andrew Smellie is currently offline Andrew SmellieFriend
Messages: 1
Registered: January 2014
Junior Member
Windows 7
Build: v22.3.0-887826
Cygwin 1.7.27
GNU Make 4.0

I have two projects - one building an exe, and one building a static library.
They have hello world sorts of code in them.

However, during the compilation of the exe, it simply cannot find the .a file of the static library. I have verified the .a exists. I have tried various formats of library path (abs and relative), and formats of the path to the library file itself.

I am using the Cygwin C++ toolchain and the GNU Make Builder

Here is a dump of my console window:

09:38:47 **** Build of configuration Debug for project PrepWordWalk ****
make all
Building file: ../src/PrepWordWalk.cpp
Invoking: Cygwin C++ Compiler
g++ -I"C:\Users\<me>\Documents\PIMA\Libraries\wdUtils\hdr" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/PrepWordWalk.d" -MT"src/PrepWordWalk.d" -o "src/PrepWordWalk.o" "../src/PrepWordWalk.cpp"
../src/PrepWordWalk.cpp: In function 'int main()':
../src/PrepWordWalk.cpp:16:17: warning: unused variable 'wordTree' [-Wunused-variable]
wd_WordTreeHdl wordTree = new wd_WordTree();
Finished building: ../src/PrepWordWalk.cpp

Building target: PrepWordWalk.exe
Invoking: Cygwin C++ Linker
g++ -o "PrepWordWalk.exe" ./src/PrepWordWalk.o -l"C:/Users/<me>/Documents/PIMA/Libraries/wdUtils/Debug/libwdUtils.a"
/usr/lib/gcc/i686-pc-cygwin/4.8.2/../../../../i686-pc-cygwin/bin/ld: cannot find -lC:/Users/<me>/Documents/PIMA/Libraries/wdUtils/Debug/libwdUtils.a
makefile:45: recipe for target 'PrepWordWalk.exe' failed
collect2: error: ld returned 1 exit status
make: *** [PrepWordWalk.exe] Error 1

09:38:49 Build Finished (took 1s.881ms)

I would be grateful for any help


Previous Topic:Multiple Src Folders
Next Topic:Cant get builder to work in C
Goto Forum:

Current Time: Wed Jun 20 21:26:17 GMT 2018

Powered by FUDForum. Page generated in 0.01786 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top