Forcing gcc to compile c++ programs...?

Eljay Love-Jensen eljay@adobe.com
Mon Sep 15 21:15:00 GMT 2003


Hi Justin,

That can vary depending on platform.

On my platform the g++...

g++ foo.cpp

...is equivalent to the gcc...

gcc -nostdlib -x c++ foo.cpp -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc crtend.o crtn.o

Likely, this will vary from platform to platform.

--Eljay




More information about the Gcc-help mailing list