X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f Message-ID: <3C9A4F2A.82176C12@gmx.net> From: Anton Helm X-Mailer: Mozilla 4.72 [en] (WinNT; I) X-Accept-Language: en,de,de-AT,no,sv,fi MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: can't include iostream.h! References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 37 Date: Thu, 21 Mar 2002 21:22:50 +0000 NNTP-Posting-Host: 62.252.76.120 X-Complaints-To: abuse AT ntlworld DOT com X-Trace: news2-win.server.ntlworld.com 1016745813 62.252.76.120 (Thu, 21 Mar 2002 21:23:33 GMT) NNTP-Posting-Date: Thu, 21 Mar 2002 21:23:33 GMT Organization: ntlworld News Service To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Ahem. Problem might actually be linking here. I saw something similar recently (after I instlled gcc v3.0.4). The cause of the problem was an old version of libstcxx.a (v2.95.x most likely) left over somewhere in the directory structure where it was found _before_ the new one. For some reason only gcc v3.0.4 found it (v3.0.2 and v3.0.3 did work fine). Anyway: Jason, check how many C++ libraries there are in your DJGPP directory tree - and where. Tony Martin Stromberg wrote: > > Jason R Kuntz (cantela AT lycos DOT com) wrote: > : Creating: main.exe > : Reading specs from c:/djgpp/lib/gcc-lib/djgpp/3.03/specs > : Configured with: ../configure i586-pc-msdosdjgpp --prefix=/dev/env/DJDIR --disable-nls > : Thread model: single > : gcc version 3.0.3 > : c:/djgpp/lib/gcc-lib/djgpp/3.03/collect2.exe -o main.exe > : c:/djgpp/lib/crt0.o -Lc:/djgpp/lib -Lc:/djgpp/lib/gcc-lib/djgpp/3.03 > : -Lc:/djgpp/bin -Lc:/djgpp/lib -Lc:/djgpp/lib/gcc-lib/djgpp/3.03/../../.. > : main.o -lstdcxx -lgcc -lc -lgcc -Tdjgpp-x.djl > : Error: main.o: In function `main': > : main.cpp(6) Error: undefined reference to `std::ios_base::Init::Init()' > : Error: main.cpp(.text+0x5d): undefined reference to `std::ios_base::Init::~Init()' > : Error: main.o(.eh_frame+0x11):main.cpp: undefined reference to `__gxx_personality_v0' > : Error: collect2: ld returned 1 exit status > : There were some errors > > This is only the linking phase. We want to see the whole compilation > (with -v). > > Right, > > MartinS