This is the mail archive of the gcc@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]

Gcc tries to compile C programs as C++ !



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



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