delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/05/18/06:09:15

Message-Id: <199905181015.MAA00850@vertigo.micropole.com>
From: DA SILVA Patrique <pdasilva AT micropole DOT com>
To: "'djgpp AT delorie DOT com'" <djgpp AT delorie DOT com>
Subject: Re: problem with c++ libraries
Date: Tue, 18 May 1999 12:07:16 +0200
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.1960.3)
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id GAA21893
Reply-To: djgpp AT delorie DOT com

did you compile tour progam like this ?

gcc -o hello.exe hello.cpp -lgpp



ZAMP <Polacek AT 98 DOT gyarab DOT cz> 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
>                 

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019