Gcc tries to compile C programs as C++ !

Brett W Vasconcellos brettv@MIT.EDU
Fri Oct 30 09:53:00 GMT 1998


I'm having a problem with gcc on my Debian 2.0 Linux system.  I have the egcs
compiler ("gcc --version" reports "egcs-2.90.29 980515 (egcs-1.0.3
release)"). When I try to compile any .c file, gcc attempts to compile it as
C++ instead of C and so often fails.  If I use the "-x c" option, gcc
compiles .c files fine. However, this isn't an adequate solution since I need
to compile some large GNU sources.  Has anyone heard of or experienced this
problem?  Anyone know what I might do to remedy it?

Thanks,
Brett




More information about the Gcc-bugs mailing list