Date: Tue, 13 Oct 1998 11:35:55 +0200 From: Alexander Bokovoy X-Mailer: The Bat! (v1.012) S/N 137834AC Organization: BSPU named after Maxim Tank Message-ID: <8483.981013@bspu.unibel.by> To: angelo 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 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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, = 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 =