delorie.com/archives/browse.cgi | search |
NNTP-Posting-Host: | 172.16.1.45 |
Newsgroups: | comp.os.msdos.djgpp |
Date: | Tue, 18 May 1999 12:09:17 +0200 |
Message-ID: | <9D3B96D19579D211B33300A0C9B3F2292C11B8@communication.siege.micropole.com> |
From: | "Patrique DA SILVA" <pdasilva AT micropole DOT com> |
References: | <177DCE1F46 AT gyarab DOT cz> |
Subject: | Re: problem with c++ libraries |
Lines: | 36 |
X-Newsreader: | Microsoft Outlook Express 4.72.2106.4 |
X-MimeOLE: | Produced By Microsoft MimeOLE V4.72.2106.4 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Did you compile your program like this ? gcc -o hello.exe hello.cpp -lgpp ZAMP a écrit dans le message <177DCE1F46 AT gyarab DOT cz>... >Dear friends ! > >I am applying too you for help with following probem. >During compilation a simple program with coompiler "gcc.exe" (ver. >2.1) > >#include <iostream.h> > >void main() >{ > cout << "Hello world !\n"; >} > > I get an error message: > > c:/djgpp/tmp\cccyq51k(.text+0x19):hello.cpp: undefined reference to >'cout' >c:/djgpp/tmp\cccyq51k(.text+0x19):hello.cpp: undefined reference to >'ostream::op >erator<<(char const *)' > >I would appreciate your advice how to solve this problem. Please >contact >me as soon as possible at polacek DOT 98 AT gyarab DOT cz >With best regards > > Ondrej Polacek >
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |