www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/10/30/13:45:10

From: "Felix Althaus" <felix DOT althaus AT swissonline DOT ch>
Newsgroups: comp.os.msdos.djgpp
Subject: problems with cout on Win98
Date: Wed, 30 Oct 2002 19:39:28 +0100
Lines: 34
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 217.162.185.148
Message-ID: <3dc0270e$1@news.swissonline.ch>
X-Trace: news.swissonline.ch 1036003086 217.162.185.148 (30 Oct 2002 19:38:06 +0200)
X-Complaints-To: abuse AT swissonline DOT ch
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hello

I have a  problem compiling C++ programs under the DOS-Shell of Win98:
I tried the following code:

    #include <iostream>

    int main()
    {

    cout << "Hallo";
    return 0;
    }


If I compile this, I get the follwing error:

C:\DJGPP>gxx testc.cpp
testc.cpp: In function `int main()':
testc.cpp:8: `cout' undeclared (first use this function)
testc.cpp:8: (Each undeclared identifier is reported only once for each
function it appears in.)
testc.cpp:10:2: warning: no newline at end of file

What I am doing wrong?

Many thanks

mfg

Felix



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019