delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
From: | charismatic_evangelist AT yahoo DOT com |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | error `cout' undeclared, and yes I #include <iostream> |
Date: | 2 Oct 2004 20:43:54 -0700 |
Organization: | http://groups.google.com |
Lines: | 20 |
Message-ID: | <dd8e1652.0410021943.7dae552b@posting.google.com> |
NNTP-Posting-Host: | 65.35.209.152 |
X-Trace: | posting.google.com 1096775034 29053 127.0.0.1 (3 Oct 2004 03:43:54 GMT) |
X-Complaints-To: | groups-abuse AT google DOT com |
NNTP-Posting-Date: | Sun, 3 Oct 2004 03:43:54 +0000 (UTC) |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
I just installed gcc version 3.4.2 from www.delorie.com and try to compile a simple program via both `gpp` and `gxx` as follows: #include <iostream> main() { cout << "Hello world"; } and I keep getting this error message: error `cout' undeclared (first use this function) I found `cout` to be indeed defined in C:\DJGPP\INCLUDE\CXX\3.42\iostream It compiles correctly under version 2.95.2 under both `gpp` and `gxx` I know the answer will be simple ... I just don't know it. Can any one help, please?
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |