Mail Archives: djgpp/2001/08/29/05:15:04
On Tue, 28 Aug 2001, Will Robinson wrote:
> End result was exactly the same (still had to explicitly include crt0.o,
> libc, libgcc, and libstdc++ when linking
This sounds like a problem with the specs file, I think. What does
"gcc -v" print about the specs file it uses?
Also, note that "-lc -lstdc++ -lgcc" is not what you need to put at
the end of the link command if GCC doesn't get that by itself. The
correct list of libraries is "-lc -lgcc -lc" (yes, -lc should appear
twice, and in the order shown), and for C++ programs it should be
"-lstdc++ -lm -lc -lgcc -lc".
- Raw text -