www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/27/06:35:20

From: peuha AT cc DOT helsinki DOT fi (Esa A E Peuha)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: undefined reference to 'cout'
Date: 27 Feb 1997 07:58:01 GMT
Organization: University of Helsinki
Lines: 20
Message-ID: <5f3eq9$o66@oravannahka.Helsinki.FI>
References: <330f817b DOT 1519135 AT news DOT demon DOT co DOT uk>
Reply-To: Esa DOT Peuha AT helsinki DOT fi
NNTP-Posting-Host: kruuna-ether.helsinki.fi
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

eNeRGy SouRCe (energy AT ricb DOT demon DOT co DOT uk) wrote:

[code snipped]

:   When I compile the above program, or any program using
: input/output stream, I get the following messages.  Anyone
: know what the prob could be?

: c:/djgpp/tmp\ccdaaaaa(.text+0x10):test.cc: undefined reference
: to`cout'
: c:/djgpp/tmp\ccdaaaaa(.text+0x15):test.cc: undefined reference to
: `ostream::operator<<(int)'

You must also link the iostream library (see FAQ about using gxx
instead of gcc).

--
Esa Peuha
student of mathematics at the University of Helsinki
http://www.helsinki.fi/~peuha/

- Raw text -


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