Gcc tries to compile C programs as C++ !

Per Bothner bothner@cygnus.com
Mon Nov 2 10:40:00 GMT 1998


It sounds like the gcc front-end program is actually the g++
front-end program.  Try linking a program, adding -v to the
gcc command line.  If it adds -lstdc++ (or something involing
libstdc++), even though you didn't ask for it, then you
are running g++ instead.

	--Per Bothner
Cygnus Solutions     bothner@cygnus.com     http://www.cygnus.com/~bothner



More information about the Gcc-bugs mailing list