| delorie.com/archives/browse.cgi | search |
| From: | "Johan Venter" <jventer AT writeme DOT com> |
| Newsgroups: | comp.os.msdos.djgpp |
| References: | <37a300cd AT wau DOT nl> |
| Subject: | Re: beginner question |
| Lines: | 25 |
| X-Newsreader: | Microsoft Outlook Express 4.72.3110.1 |
| X-MimeOLE: | Produced By Microsoft MimeOLE V4.72.3110.3 |
| Message-ID: | <2EPo3.16755$yD2.36631@newsfeeds.bigpond.com> |
| Date: | Sun, 1 Aug 1999 13:15:44 +1000 |
| NNTP-Posting-Host: | 203.40.83.29 |
| X-Trace: | newsfeeds.bigpond.com 933480062 203.40.83.29 (Sun, 01 Aug 1999 14:01:02 EST) |
| NNTP-Posting-Date: | Sun, 01 Aug 1999 14:01:02 EST |
| Organization: | Telstra BigPond Internet Services (http://www.bigpond.com) |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
> >gcc jurre.cpp -o jurre.exe > >gives the following error message : > >d:/djgpp/tmp\cccitg2h(.text+0x1d):jurre.cpp: undefined reference to 'cout' >d:/djgpp/tmp\cccitg2h(.text+0x22):jurre.cpp: undefined reference to >'ostream::operator<<(char const *)' To compile C++ programs you need to link in with the C++ standard library. You can either do this by adding the libraries to the gcc command line, or use gxx, which adds the libraries for you. It is a standard part of DJGPP. Example: gxx jurre.cpp -o jurre.exe -- Johan Venter ICQ 3643877 Visit The TPU DJGPP Interest Group: http://surf.to/djgppig
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |