Re: [Dev-C++] undefined reference...
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: <tc...@gm...> - 2002-12-16 19:11:31
|
Sebastien Morand wrote: >Can you give the error messages you get? Il would be easier to help you. > > g++ -O0 -Wall-Wno-deprecated -fpic -pthread -I../../inc -o MustikTest MustikTest.cpp -L../../lib -lmustiktest -lmustik -lpthread -lcppunit ../../lib/libmustik.so: undefined reference to `fs::Collection<fs::FileSystem>::~Collection(void)' ../../lib/libmustik.so: undefined reference to `fs::_Iterator<fs::FileSystem>::~_Iterator(void)' ../../lib/libmustik.so: undefined reference to `fs::_Iterator<fs::FileSystem>::_Iterator(void)' ../../lib/libmustik.so: undefined reference to `fs::Collection<fs::FileSystem>::Collection(void)' ../../lib/libmustik.so: undefined reference to `fs::Collection<fs::FileSystem>::getPatternSet(void)' collect2: ld returned 1 exit status libmustik.so is the name I gave to the library I created. MustikTest.cpp is a test class I wrote. the lib contains the FileSystem classes I was writing (tu te rappelles ?) Anyway the methods which cannot be referenced are implemented in the corresponding cpp files and packed into the library, therefore I donot understand actually why the compiler cannot find them.... >On Sun, Dec 15, 2002 at 03:55:31PM +0100, tc...@gm... wrote: > > >>Hi... >>Can somebody help me please to interpret the undefined reference error >>message? >>I have created a c++ library, but trying to use it with any client >>program fails with the undefined reference error. First I thought It may >>lay on my program, but realized later that linking other libs throw me >>the same kinds of error too... >> >>--- >>Eric Tchepannou >> >> >> >>------------------------------------------------------- >>This sf.net email is sponsored by: >>With Great Power, Comes Great Responsibility >>Learn to use your power at OSDN's High Performance Computing Channel >>http://hpc.devchannel.org/ >>_______________________________________________ >>Dev-cpp-users mailing list >>Dev...@li... >>TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm >>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users >> >> >> > > > |