[Dev-C++] Linking with a static library produced in dev-c++
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Jordi R. i B. <igu...@us...> - 2003-01-11 08:53:36
|
Hello, I've build the library math3d (math3d.sf.net) succesfully in Dev-C++ producing a nice libmath3d.a. Now whenever i try to link a simple program that uses any class in this library i get an error like the one below. I'm using the latest beta version of DevC++ i think. The problem is so simple that i don't know how to approach it, and as i think it might be a common problem i'm posting. g++.exe -c test/main.cpp -o test/main.o -I"D:/Programes/Dev-Cpp/include" -I"D:/jordi/math3d-0.3.0" -I"D:/Programes/Dev-Cpp/include/c++" -I"D:/Programes/Dev-Cpp/include/c++" g++.exe test/main.o -o "Test.exe" -L"D:/Programes/Dev-Cpp/lib" math3d.a -I"D:/Programes/Dev-Cpp/include" -I"D:/jordi/math3d-0.3.0" -I"D:/Programes/Dev-Cpp/include/c++" -I"D:/Programes/Dev-Cpp/include/c++" test/main.o(.text+0xa2):main.cpp: undefined reference to `_imp___ZN6Math3dlsERSoRKNS_3M3dE' make.exe: *** [Test.exe] Error 1 Execution terminated I would appreciate any hints. (jordi) |