Message-Id: <199912030135.UAA16033@delorie.com> From: "Leon" To: Subject: Re: Newbie: C++ compiling Date: Fri, 3 Dec 1999 11:36:06 +1000 X-MSMail-Priority: Normal X-Priority: 3 X-Mailer: Microsoft Internet Mail 4.70.1161 MIME-Version: 1.0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 8bit Reply-To: djgpp AT delorie DOT com what program are you using to compile? (ie gxx?) With best regards * * * * * * * * * * * * * * * * * * * * Leøn * * * * * * * * * * * * * * * * * * * * Mastering Solutions (design and development) www.bigfoot.com/~xt_contact www.powerup.com.au/~lvz/resume/entry.htm > > > 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 > > > > 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 > > > > int main() > > { > > cout << "Hello, World\n"; > > return 0; > > }