www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/02/19/00:01:18.1

From: Richard Legner <rlegner AT whitehorse DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Duh
Date: Thu, 18 Feb 1999 20:29:00 -0600
Organization: Blackstone Janitorial Services
Lines: 39
Message-ID: <36CCCC6C.A5B353CF@whitehorse.net>
References: <36CCA146 DOT 8BCD8720 AT mail DOT globalserve DOT net> <36CCA257 DOT FD13C4BE AT mail DOT globalserve DOT net>
NNTP-Posting-Host: 199.247.227.202
Mime-Version: 1.0
X-Trace: 919398525 VRL06/YYIE3CAC7F7C usenet55.supernews.com
X-Complaints-To: newsabuse AT remarQ DOT com
X-Mailer: Mozilla 4.07 [en] (Win95; U)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
&nbsp;
<P>Golden Hawk wrote:
<BLOCKQUOTE TYPE=CITE>Damn it!&nbsp; Why do I always figure things out
5 seconds after I ask for help?
<BR>Seesh...</BLOCKQUOTE>
Well...... are you going to tell us what the problem was?
<BLOCKQUOTE TYPE=CITE>&nbsp;
<P>Golden Hawk wrote:
<P>> I'm new at this stuff, I'm reading "Teach yourself C++ in 21 days"
and I
<BR>> tried this program:
<BR>>
<BR>> ---
<BR>> #include &lt;iostream.h>
<BR>>
<BR>> int main()
<BR>> {
<BR>>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cout &lt;&lt; "Hello
World!\n";
<BR>>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return 0;
<BR>> }
<BR>> ---
<BR>>
<BR>> And when I try to compile I get:
<BR>>
<BR>> ---
<BR>> c:/progra~1/djgpp/tmp\cccyxeej(.text+0x19):test.cpp: undefined reference
<BR>> to `cout'
<BR>> c:/progra~1/djgpp/tmp\cccyxeej(.text+0x1e):test.cpp: undefined reference
<BR>> to `ostream::operator&lt;&lt;(char const *)'
<BR>> ---
<BR>>
<BR>> Anyone know why?&nbsp; I tried doing it a different way with &lt;stdio.h>
and
<BR>> printf, and that worked... so I'm confused....</BLOCKQUOTE>
</HTML>

- Raw text -


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