public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Problems with g++, probably really simple.
@ 2001-02-04 16:09 Matthew Prowse
  2001-02-05  2:04 ` Ingo Krabbe
  0 siblings, 1 reply; 2+ messages in thread
From: Matthew Prowse @ 2001-02-04 16:09 UTC (permalink / raw)
  To: gcc-help

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 987 bytes --]

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Problems with g++, probably really simple.
  2001-02-04 16:09 Problems with g++, probably really simple Matthew Prowse
@ 2001-02-05  2:04 ` Ingo Krabbe
  0 siblings, 0 replies; 2+ messages in thread
From: Ingo Krabbe @ 2001-02-05  2:04 UTC (permalink / raw)
  To: Matthew Prowse, gcc-help

On Monday,  5. February 2001 01:09, Matthew Prowse wrote:
> 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

You may need to install some includes. It may be that suse has a split 
package for include file. Look for it.

Normally you don't need to specify an include path for iostreams, etc, but it 
shouldn't be a problem to do so. try
	g++ -v hello.cpp
to lookup exactly where g++ looks for include files. On some systems the 
correct include path is /usr/include/g++-2 or "g++-v2" or something similar. 
It looks like the files in /usr/include/g++ is broken.

CU INGO

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-02-05  2:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-04 16:09 Problems with g++, probably really simple Matthew Prowse
2001-02-05  2:04 ` Ingo Krabbe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).