|
From: Per W. <pw...@ia...> - 2005-03-01 17:54:09
|
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<path_to_libfile> -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 <ab...@to...> wrote: <snip> > The programme compiles fine but the linker advises: > > " cannot find -lobjc " and ld exits with status 1 > > I have a copy of libobjc.a in cygwin/lib/mingw and copied it to > c:/dev-cpp/lib/gcc/mingw32/3.4.2 as lobjc.a > but this is not working > > Any help would be greatly appreciated > <snip> > > Alfred P. Reaud |