delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mailnull set sender to djgpp-bounces using -f |
From: | Martin Str|mberg <ams AT father DOT ludd DOT luth DOT se> |
Subject: | Re: can't include iostream.h! |
Newsgroups: | comp.os.msdos.djgpp |
References: | <FGIDFDNBDJECEBAA AT mailcity DOT com> |
User-Agent: | tin/pre-1.4-981225 ("Volcane") (UNIX) (SunOS/4.1.4 (sun4m)) |
Message-ID: | <1014469466.933662@queeg.ludd.luth.se> |
Cache-Post-Path: | queeg.ludd.luth.se!unknown AT father DOT ludd DOT luth DOT se |
X-Cache: | nntpcache 2.4.0b5 (see http://www.nntpcache.org/) |
Date: | 23 Feb 2002 13:04:26 GMT |
Lines: | 29 |
NNTP-Posting-Date: | 23 Feb 2002 13:04:26 GMT |
NNTP-Posting-Host: | queeg.ludd.luth.se |
X-Trace: | 1014469466 news.luth.se 56968 130.240.16.109 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Jason R Kuntz <cantela AT lycos DOT com> wrote: : Here's an example program, and the output from the message window: : #include <iostream.h> : int main() : { : return 0; : } : (yes, that's it...i can't even try to use cout for a "hello" program! simply including the file generates linker errors) : Compiling: main.cpp : no errors : Creating: main.exe : 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 Ok. I suspect version mixup or bad unzip program. Now rerun the compilation/linking with "-v" option and post the results here. Right, MartinS
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |