www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/22/21:08:27

From: gfoot AT mc31 DOT merton DOT ox DOT ac DOT uk (George Foot)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: undefined reference to 'cout'
Date: 23 Feb 1997 01:11:53 GMT
Organization: Oxford University
Lines: 14
Message-ID: <5eo5gp$6as@news.ox.ac.uk>
References: <330f817b DOT 1519135 AT news DOT demon DOT co DOT uk>
NNTP-Posting-Host: mc31.merton.ox.ac.uk
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:

:   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?

You have probably forgotten to link in the iostreams library. You
can either link in the iostr library by adding -liostr to the end of the 
gcc command line, or you can link in the C++ library by using gxx at the 
linking stage instead of gcc.

-- 
George Foot <gfoot AT mc31 DOT merton DOT ox DOT ac DOT uk>
Merton College, Oxford.

- Raw text -


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