This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Gcc tries to compile C programs as C++ !
- To: Brett W Vasconcellos <brettv at mit dot edu>
- Subject: Re: Gcc tries to compile C programs as C++ !
- From: Per Bothner <bothner at cygnus dot com>
- Date: Mon, 02 Nov 1998 10:40:45 -0800
- cc: egcs at cygnus dot com, egcs-bugs at cygnus dot com
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