Problems with g++, probably really simple.

Matthew Prowse matthew.prowse@lineone.net
Sun Feb 4 16:09:00 GMT 2001


I'm running SuSE 6.3 and installed gcc, libgcc, libgpp, gpp 
and docs.
gcc hello.c - worked fine.
g++ hello.cpp - couldn't find the files in /usr/include/g++ 
and then gave...
 
majp@obsidian:~/cpp > g++ -I /usr/include/g++ 
hello.cpp
In file included from 
/usr/include/g++/iostream.h:31,
from /usr/include/g++/iostream:6,
from hello.cpp:1:
/usr/include/g++/streambuf.h:403: invalid type `void *' 
for default argument to
`ios *'
In file included from 
/usr/include/g++/iostream:6,
from hello.cpp:1:
/usr/include/g++/iostream.h:50: invalid type `void *' 
for default argument to `ostream *'
/usr/include/g++/iostream.h:123: invalid type `void *' 
for default argument to `ostream *'
/usr/include/g++/iostream.h:231: invalid type `void *' 
for default argument to `ostream *'
majp@obsidian:~/cpp >
 
I know that it is going to be something obvious, but I'm new and my eyes 
hurt I've been trying to find the answer for so long. Help would be much 
appreciated.
 
Matthew Prowse



More information about the Gcc-help mailing list