From: Richard Legner 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 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit 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  

Golden Hawk wrote:

Damn it!  Why do I always figure things out 5 seconds after I ask for help?
Seesh...
Well...... are you going to tell us what the problem was?
 

Golden Hawk wrote:

> I'm new at this stuff, I'm reading "Teach yourself C++ in 21 days" and I
> tried this program:
>
> ---
> #include <iostream.h>
>
> int main()
> {
>         cout << "Hello World!\n";
>         return 0;
> }
> ---
>
> And when I try to compile I get:
>
> ---
> c:/progra~1/djgpp/tmp\cccyxeej(.text+0x19):test.cpp: undefined reference
> to `cout'
> c:/progra~1/djgpp/tmp\cccyxeej(.text+0x1e):test.cpp: undefined reference
> to `ostream::operator<<(char const *)'
> ---
>
> Anyone know why?  I tried doing it a different way with <stdio.h> and
> printf, and that worked... so I'm confused....