Mail Archives: djgpp/1996/10/09/08:00:59
From: | John David Doty <doty+@andrew.cmu.edu>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: So.. What can be wrong here?
|
Date: | Wed, 9 Oct 1996 00:14:10 -0400
|
Organization: | Sophomore, Physics, Carnegie Mellon, Pittsburgh, PA
|
Lines: | 38
|
Message-ID: | <cmKmOGS00bk10_iEs0@andrew.cmu.edu>
|
References: | <53epl5$5m0 AT ranger DOT interlink DOT no>
|
NNTP-Posting-Host: | po7.andrew.cmu.edu
|
In-Reply-To: | <53epl5$5m0@ranger.interlink.no>
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Excerpts from netnews.comp.os.msdos.djgpp: 8-Oct-96 So.. What can be
wrong here? by Kim Robert Blix AT interlin
>take a look at this:
>
>#include <iostream.h>
>void main() {
> cout << "Hello world!"
>}
>
>compiled with "gcc hello.C" ..
>I get a "undefined reference to 'cout'"
>and "undefined reference to 'ostream::operator<<(char *)'
>(not sure if the last line is 100 percent correct though.)
>
>And if i copile with "gcc hello.c" (standard c, not ++), It cant find
>iostream.h at all... Im New to both c and c++, so I recon it does not
>exist in regular c.. but whats wrong with the c++ compiling then?
It's not a compiler error, I don't think- it's more likely a linker
error. Did you do the whole
gcc hello.C -lgpp
thing?
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
John Doty |"We can fly- We have wings...
Anime Fan, Programmer-at-large | We can touch floating dreams...."-Macross +
doty AT andrew DOT cmu DOT edu |"The deepness of one's sorrow upon parting
http://bifrost.res.cmu.edu/ | is the evidence of the deepness of one's
| v @ | love, so... if one fears sadness, one
^_^ ^_^ ^_^ | wouldn't be able to love anything."
Belldandy Urd Skuld | -Belldandy, "Don't fear sorrow"
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
====================== --==(UDIC)==-- Keiichi Dragon =====================
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- Raw text -