delorie.com/archives/browse.cgi | search |
From: | "Chiew Heng Wah" <heng7 AT hotmail DOT com> |
Newsgroups: | comp.os.msdos.djgpp |
References: | <3845cd1a DOT 0 AT news2 DOT tm DOT net DOT my> |
Subject: | Re: Newbie: C++ compiling |
Date: | Thu, 2 Dec 1999 18:53:20 +0800 |
Lines: | 36 |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-Newsreader: | Microsoft Outlook Express 5.00.2314.1300 |
X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.2314.1300 |
NNTP-Posting-Host: | sal-217-23.tm.net.my |
X-NNTP-Posting-Host: | sal-217-23.tm.net.my |
Message-ID: | <38464cda.0@news.tm.net.my> |
X-Trace: | 2 Dec 1999 18:41:30 +0800, sal-217-23.tm.net.my |
Organization: | TMnet Malaysia |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Thanks for the correction. But now the error message becomes like this. I don't know what my mistake is. =====Error Message 1===== hello.cpp: In function `int main()': hello.cpp:5: `std' undeclared (first use this function) hello.cpp:5: (Each undeclared identifier is reported only once hello.cpp:5: for each function it appears in.) hello.cpp:5: parse error before `::' =====Source Code 1===== #include <iostream.h> int main() { std::cout << "Hello, World\n"; return 0; } =====Error Message 2===== c:/djgpp/tmp\ccdaaaaa(.text+0x1e):hello.cc: undefined reference to `cout' c:/djgpp/tmp\ccdaaaaa(.text+0x23):hello.cc: undefined reference to `ostream::ope rator<<(char const *)' =====Source Code 2===== #include <iostream.h> int main() { cout << "Hello, World\n"; return 0; }
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |