www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/01/17:36:42

From: Erik Max Francis <max AT alcyone DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Problem compiling c++ program with djgpp v2.0
Date: Wed, 01 Jan 1997 13:59:27 -0800
Organization: Alcyone Systems
Lines: 17
Message-ID: <32CADE3F.70B41BA9@alcyone.com>
References: <Pine DOT SGI DOT 3 DOT 91 DOT 970101163405 DOT 27480B-100000 AT skule DOT ecf>
NNTP-Posting-Host: newton.alcyone.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Nebu John Mathai wrote:
'> I got this error during compilation:
> 
> 1.cc(.text+0x1e): undefined reference to `cout'
> 1.cc(.text+0x23): undefined reference to `ostream::operator<<(char con...
> 
> Thanks for your help.

Check the FAQ; this is because you're not linking in the C++ libraries.
(And the error was during linking, not compilation.)

-- 
                             Erik Max Francis | max AT alcyone DOT com
                              Alcyone Systems | http://www.alcyone.com/max/
                         San Jose, California | 37 20 07 N 121 53 38 W
                                 &tSftDotIotE | R^4: the 4th R is respect
     "You must surely know if man made heaven | Then man made hell"

- Raw text -


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