Article View: gnu.gcc.help
Article #42003Iostream error in g++ - solaris2.4
From: neil
Date: Fri, 26 Jan 1996 00:00
Date: Fri, 26 Jan 1996 00:00
28 lines
1320 bytes
1320 bytes
I am trying to compile a simple C++ program using g++.
Here is the program:
#include <stream.h>
main()
{
cout << "Hello World\n";
}
I get the follwing errors:
In file included from /opt/gnu/lib/g++-include/stream.h:31,
from test.cc:1:
/opt/gnu/lib/g++-include/iostream.h:91: `bool' was not declared in this scope
/opt/gnu/lib/g++-include/iostream.h:91: parse error before `)'
/opt/gnu/lib/g++-include/iostream.h:91: `ostream::operator <<(...)' must take
exactly one argument
/opt/gnu/lib/g++-include/iostream.h:91: confused by earlier errors, bailing out
So, it looks like my installation of g++ is messed up. I installed from
the FSF packages. How do I fix this?
Thanks,
Neil Aggarwal
--
-------------------------------------------------------------------------------
Neil Aggarwal All opinions are mine, not my employer's.
neil@cc.bellcore.com
Technical Details
Message-ID:
<4eavbh$4fl@sun31336a.cc.bellcore.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,a32e307820675ffc,start X-Google-Attributes: gid11318c,public From: neil@cc.bellcore.com Subject: Iostream error in g++ - solaris2.4 Date: 1996/01/26 Message-ID: <4eavbh$4fl@sun31336a.cc.bellcore.com> X-Deja-AN: 136700026 distribution: gnu organization: Bell Communications Research (Bellcore) newsgroups: gnu.gcc.help