Mail Archives: djgpp/1999/06/08/07:30:42
On Mon, 7 Jun 1999, George Hicken wrote:
> > I am attempting to use _String.h.
> > The program compiles okay, but when attempting to link it all the
> > String:: functions I call throw up undefined errors.
>
> I am not sure if this is related, but ld claims that libgpp.a is not a
> recognised file format.
It probably *is* related, since the String class is in libgpp.a
(AFAIK).
> GNU ld version 2.8.1 (with BFD 2.8.1)
> c:/djgpp/bin/ld.exe: cannot open -lgpp: File format not recognised
This usually means that the linker cannot find libgpp.a. Make sure
libgpp.a is in your lib subdirectory. If that doesn't help, add -v to
the compiler switches and post here everything it prints during
compilation and linking.
- Raw text -