This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Gcc tries to compile C programs as C++ !


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]