Mail Archives: djgpp/2004/01/14/10:45:10
Tom <Thomas8675309 AT yahoo DOT com> wrote:
> You should have used "gpp" rather than "gcc":
> gpp -Wall -Wno-deprecated test.cc -o test.exe
> Unlike gcc, gpp links in the C++ library.
It's not quite that simple.
In the case at hand (direct compilation + linking of a single-source
C++ program with a recognized C++ filename extension), gcc is supposed
to get it right, too. If it doesn't, that's a regression in the DJGPP
port of gcc, or in gcc itself.
Only if you link .o files, of which the compiler doesn't know what
language were made from, should it be necessary to make the choice of
language explicity by calling g++, or for the sake of DOS filename
compatibility, gpp.
gcc test.cc -o test
always worked, and should continue to work. Only
gcc -c test.cc
gcc test.o -o test
didn't.
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -