www.delorie.com/archives/browse.cgi | search |
From: | "Derek Battams" <dbattams AT canada DOT com> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Problems Installing DJGPP |
Lines: | 35 |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-Newsreader: | Microsoft Outlook Express 5.00.2014.211 |
X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.2014.211 |
Message-ID: | <nW8U3.35224$Jp4.57650@news20.bellglobal.com> |
Date: | Thu, 04 Nov 1999 05:35:15 GMT |
NNTP-Posting-Host: | 216.208.20.117 |
X-Trace: | news20.bellglobal.com 941693715 216.208.20.117 (Thu, 04 Nov 1999 00:35:15 EDT) |
NNTP-Posting-Date: | Thu, 04 Nov 1999 00:35:15 EDT |
Organization: | Sympatico |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
I just downloaded all of the ZIP files and unzipped them. To ensure that I've installed all of the files correctly I tried to compile the following C++ program: #include <iostream> int main() { cout << "Hello World!"; return 0; } When I tried to compile it I got the following errors: c:/djgpp/tmp\ccqz94EV.o(.text+0x1f):test.cc: undefined reference to `cout' c:/djgpp/tmp\ccqz94EV.o(.text+0x24):test.cc: undefined reference to `ostream::op erator<<(char const *)' It seems that the compiler is having a problem with the inclusion of <iostream>. I unzipped all of the files as instructed (in c:\djgpp\) so if anyone knows what mistake I might have made with installing DJGPP then please let me know. Your help is appreciated. * I'm running Win95 * I have gcc version 2.95.1 (info from gcc -v) * To compile the program I used gcc -o test.exe test.cc * Just to make sure I did compile the program on UNIX and it compiled and ran with no problems (as expected). Help appreciated, Derek Battams
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |