This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Gcc tries to compile C programs as C++ !
- To: egcs at cygnus dot com, egcs-bugs at cygnus dot com
- Subject: Gcc tries to compile C programs as C++ !
- From: Brett W Vasconcellos <brettv at mit dot edu>
- Date: Fri, 30 Oct 1998 12:53:48 EST
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