delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mailnull set sender to djgpp-bounces using -f |
From: | Peter Claessens <peter DOT claessens AT psy DOT kuleuven DOT ac DOT be> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | header lookup problem |
Date: | Thu, 03 Jan 2002 21:23:18 +0100 |
Organization: | KULeuvenNet |
Lines: | 33 |
Message-ID: | <3C34BDB6.D5474F61@psy.kuleuven.ac.be> |
NNTP-Posting-Host: | seven.kulnet.kuleuven.ac.be |
Mime-Version: | 1.0 |
X-Trace: | naxos.belnet.be 1010089396 13155 134.58.127.12 (3 Jan 2002 20:23:16 GMT) |
X-Complaints-To: | abuse AT belnet DOT be |
NNTP-Posting-Date: | Thu, 3 Jan 2002 20:23:16 +0000 (UTC) |
X-Mailer: | Mozilla 4.76 [en] (Win98; U) |
X-Accept-Language: | nl-BE,en |
Cache-Post-Path: | seven.kulnet.kuleuven.ac.be!unknown AT p101pw099 DOT psy DOT kuleuven DOT ac DOT be |
X-Cache: | nntpcache 2.4.0b5 (see http://www.nntpcache.org/) |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
When I compile this simple program: // main.cc #include <iostream> int main() { cout << "Test"; return 0; } with command line bash-2.03$ gpp -c main.cc -o main.o I get the following error message: " main.cc: In function `int main()': main.cc:6: `cout' undeclared (first use this function) " If I use #include <iostream.h> it works... This is with version 3.0.3 of gcc/gpp. As far as I know, there shouldn't be any difference between these include versions. This seems to be indicative of a configuration problem... The config seems to be pointing to the right specs though. Can anyone point out the problem please? Thanks, Peter.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |