www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/28/06:00:58

From: Philip Garrett <pgarrett AT dalton DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: cout problem
Date: Wed, 28 Jan 1998 05:46:33 -0500
Organization: All USENET -- http://www.Supernews.com
Lines: 36
Message-ID: <34CF0C88.22CB07BD@dalton.net>
References: <199801230001 DOT QAA22980 AT adit DOT ap DOT net>
NNTP-Posting-Host: 11651 AT 207 DOT 87 DOT 226 DOT 90
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Try renaming the file tmp.cc.

Philip Garrett

Nate Eldredge wrote:

> At 10:10  1/22/1998 +0100, Tomasz Ostrowski wrote:
> >I'm trying to compile file tmp.cpp:
> >
> >       #include <iostream.h>
> >       int main()
> >         {
> >          cout<<"Hello world!";
> >         }
> >
> >but compiler reports errors:
> >
> >c:/jezyki/djgpp/tmp\ccdaaaaa(.text+0x1e):tmp.cc: undefined reference to `cout'
> >c:/jezyki/djgpp/tmp\ccdaaaaa(.text+0x23):tmp.cc: undefined reference to
> `ostream
> >::operator<<(char const *)'
> Use the `gxx' command to link, instead of `gcc'. Had you read the README.1ST
> file, you would know this.
> [snipped]
> >My problem is the following:
> >============================
> >
> >
> >Rhide crashes.
> Huh? Is this another problem, or what?
>
> Nate Eldredge
> eldredge AT ap DOT net



- Raw text -


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