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)
|