Gcc-3.1.1 & SunOS 5.8

Rui Pacheco ruipacheco@hotmail.com
Mon Aug 19 08:21:00 GMT 2002


I recently downloaded the tar.gz for gcc-3.1.1 and tried to compile it on a 
SunOS 5.8.

	/usr/compiler/ $ gunzip *gz
	/usr/compiler $ tar *tar
	/usr/compiler/gcc-3.1.1 $ mkdir objdir
	/usr/compiler/gcc-3.1.1/objdir $ ../configure --enable-threads=posix 
--enable-languages=c,c++ --disable-nls --with-ld=/usr/ccs/bin/ld 
--disable-libobjc --disable-libf2c --disable-libjava
	/usr/compiler/gcc-3.1.1/objdir $ make bootstrap-lean
	/usr/compiler/gcc-3.1.1/objdir $ make install


Things go without any problems, but whenever I try to compile any C++ 
programs, gcc doesn't seem to see the include files. So, if I try:

	c++ -g class.cc -o class

I get these error messages:

	"ficheiro.h:5: 'string' is used as a type, but is not defined as a type."
	...

This repeats for about any include I decide to use.
Does anyone have the cure for this? I've been battling this for 3 days and 
haven't gone too far... :|


BTW, my uname -a is "SunOS brisadbs 5.8 Generic_108528-14 sun4u sparc 
SUNW,Ultra-1"


Thank you
Rui Pacheco

_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx



More information about the Gcc-help mailing list