delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/13/04:42:37

Date: Tue, 13 Oct 1998 11:35:55 +0200
From: Alexander Bokovoy <bokovoy AT bspu DOT unibel DOT by>
X-Mailer: The Bat! (v1.012) S/N 137834AC
Organization: BSPU named after Maxim Tank
Message-ID: <8483.981013@bspu.unibel.by>
To: angelo <djgpp AT delorie DOT com>
CC: djgpp AT delorie DOT com
Subject: Re: trouble compiling with iostream.h
References: <3622CE76 DOT 3FFFAA76 AT pilot DOT msu DOT edu>
Mime-Version: 1.0
Reply-To: djgpp AT delorie DOT com

Angelo wrote:
> ok, I went through the install procedure, I added all the lines to my
> autoexec.bat and config.sys, (set TEMPDIR, set DJGPP, set LFN, etc).
> When I try to compile anything with gcc and athe program includes
> iostream.h I get an error message like this:
> c:\temp\ccci40xl(.text+0x19):new.cc: undefined reference to 'cout'
> c:\temp\ccci40xl(.text+0x1e):new.cc: undefined reference to
> 'ostream::operator<<'
> now I checked the faq's and everything appears to be ok, all the
> environment variables, and I am using the proper downloads.
You should call C++ compiler using gxx instead gcc. It passes all
needed libraries for C++. Or pass -lstdcxx to gcc by self. For example:
gcc -c sample.cc -o sample.exe -lstdcxx

Best regards,
Alexander Bokovoy, <bokovoy AT bspu DOT unibel DOT by>
= Linux ==============================================================
Though it is always possible to have a look at the world through the
Windows, people usually prefer not only to look but live in it too.
============================================================== Linux =



- Raw text -


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