File type assumptions?
Pyle, Mike
mike.pyle@centraxcorp.com
Wed Jun 16 14:32:00 GMT 1999
We recently setup a new Sun Ultra running Solaris 2.7 and are seeing some
interesting behavior in the file type assumptions being made by egcs. We are
using the latest release version (1.1.2) which was bootsrapped on this
machine using the gcc 2.8.1 binaries from www.sunfreeware.com. Our problem
is that the compiler is attempting to compile C++ files as C files and
appears to be doing this based on the directory the files are in.
If we create a directory underneath /usr/include and put header files in
there that contain templates, we get an error complaining about trying to
create a template using C linkage. If we put those same files in a directory
somewhere else (say /usr/local/include/foo or even /usr/foo) everything
works fine. Somehow, it looks like our installation got squirreled up but we
are not sure what's wrong. Is there some sort of configuration parameter
that controls this kind of thing?
Mike Pyle
Senior Software Engineer, CyberSafe Corp.
6363 Greenwich Drive, Suite 150
San Diego, CA 92122
Tel: 858.546.2400 x325, Fax: 619.546.1285
mailto:Mike.Pyle@cybersafe.com
http://www.cybersafe.com
More information about the Gcc
mailing list