|
From: Alfred P. R. <al...@ya...> - 2005-03-01 19:49:14
|
Actually, I just found this out (the adding of the lib prefix and the .a suffix) recently (within the last 2 days) doing a very close read of the GCC documentation. I've been fighting this all the time I've used Dev-Cpp without catching that one little paragraph! So always read the documentation in full paying attention to all of the details. Per Westermark <pw...@ia...> wrote: You shouldn't rename a library file to lobj.a. The line -lobjc means that the linker is requested to use a file libobjc.a in the current library search path. If libobjc.a isn't in the path, you should either add the path, or change the options to look like: -L -lobjc which will add one more directory where the linker will look. /Per W On Sat, 26 Feb 2005, Alfred P. Reaud wrote: > Sometimes you have to forcibly put the library line in the Build Options-->Parameters-->Linker window in the form of: ../Dev-Cpp/lib/libfltk.a or whatever your path is. First try copying it to c:/dev-cpp/lib with it's original name, and if that doesn't work, then use the above form to force Dev-Cpp to link it. > > SlackRat wrote: <snip> Alfred P. Reaud |