Mail Archives: djgpp/1999/06/23/09:23:40
Greetings,
> See? It doesn't say anything about _String.h, it complains about missing
> functions. And that means that you didn't tell the linker to search some
> of the libraries, or that you don't have those libraries installed.
>
> I believe that String is in libgpp.a, so try appending -lgpp to the end
> of the compilation command. If that doesn't work, you will need to
> install the file lgp2811b.zip.
Well, I did what was suggested and appended -lgpp to the end of the
compilation command and I still got the same response. Oh and Yes the
lgp2811b.zip is installed and libgpp.a does exist in the C:\djgpp\lib
directory.
C:\mark\code>gxx -Wall -o strtest.exe strtest.cpp -lgpp
c:/djgpp/tmp\cccqeuch(.text+0x1b):strtest.cpp: undefined reference to
`String::String(void)'
c:/djgpp/tmp\cccqeuch(.text+0x29):strtest.cpp: undefined reference to
`String::~String(void)'
c:/djgpp/tmp\cccqeuch(.text+0x53):strtest.cpp: undefined reference to
`String::~String(void)'
Does anyone know what is going wrong here?
Cheers,
Mark
- Raw text -