X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f From: Peter Claessens Newsgroups: comp.os.msdos.djgpp Subject: Re: header lookup problem Date: Thu, 03 Jan 2002 22:53:08 +0100 Organization: KULeuvenNet Lines: 38 Message-ID: <3C34D2C3.503557D1@psy.kuleuven.ac.be> References: <3C34BDB6 DOT D5474F61 AT psy DOT kuleuven DOT ac DOT be> NNTP-Posting-Host: seven.kulnet.kuleuven.ac.be Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: naxos.belnet.be 1010094786 16064 134.58.127.12 (3 Jan 2002 21:53:06 GMT) X-Complaints-To: abuse AT belnet DOT be NNTP-Posting-Date: Thu, 3 Jan 2002 21:53:06 +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 Ok... I found the solution to this problem just now... I need the "using namespace std;" directive... Peter Claessens wrote: > When I compile this simple program: > > // main.cc > > #include > > 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 > 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.