www.delorie.com/archives/browse.cgi | search |
Date: | Thu, 4 Nov 1999 09:17:48 +0200 (IST) |
From: | Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> |
X-Sender: | eliz AT is |
To: | Derek Battams <dbattams AT canada DOT com> |
cc: | djgpp AT delorie DOT com |
Subject: | Re: Problems Installing DJGPP |
In-Reply-To: | <nW8U3.35224$Jp4.57650@news20.bellglobal.com> |
Message-ID: | <Pine.SUN.3.91.991104091535.9537U-100000@is> |
MIME-Version: | 1.0 |
Reply-To: | djgpp AT delorie DOT com |
X-Mailing-List: | djgpp AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
On Thu, 4 Nov 1999, Derek Battams wrote: > #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 *)' Please see section 8.7 of the FAQ: it explains that you need to use gpp or gxx instead of gcc when linking C++ programs. The file with the suggestive name README.1ST also includes examples of command lines with which you should compile C and C++ programs.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |