delorie.com/archives/browse.cgi | search |
From: | john_maple AT my-dejanews DOT com |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Can't compile Hello World!!! |
Date: | Mon, 08 Mar 1999 20:47:22 GMT |
Organization: | Deja News - The Leader in Internet Discussion |
Lines: | 19 |
Message-ID: | <7c1d0n$nn8$1@nnrp1.dejanews.com> |
References: | <7c0l5l$1dt$1 AT nnrp1 DOT dejanews DOT com> <7c14vr$1t8u$1 AT quince DOT news DOT easynet DOT net> |
NNTP-Posting-Host: | 205.232.179.186 |
X-Article-Creation-Date: | Mon Mar 08 20:47:22 1999 GMT |
X-Http-User-Agent: | Mozilla/4.05 [en] (Win95; U) |
X-Http-Proxy: | 1.0 x15.dejanews.com:80 (Squid/1.1.22) for client 205.232.179.186 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Thanks, but I include iostream.h in the very first line of hello.cc... that's why the errors have me so baffled. -John Maple In article <7c14vr$1t8u$1 AT quince DOT news DOT easynet DOT net>, "MarkL" <leavym AT easynet DOT co DOT uk> wrote: > I'm sure someone will correct me if i'm wrong. But i think you need to > include iostream.h for cout to work. > >If I compile directly on the DOS command line with "gcc hello.cc -o > >hello.exe" I get the following errors: > > > >c:/djgpp/tmp\cccixyke(.text+0x19):hello.cc:undefined reference to `cout' > >c:/djgpp/tmp\cccixyke(.text+0x19):hello.cc:undefined reference to > >`ostream::operator(char const *)' -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |