delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/07/31/12:16:58

From: "Emiliano Baggiani" <eliobagg AT tin DOT it>
To: <djgpp AT delorie DOT com>
Subject: R: beginner question
Date: Sat, 31 Jul 1999 18:13:08 +0200
X-MSMail-Priority: Normal
X-Priority: 3
X-Mailer: Microsoft Internet Mail 4.70.1161
MIME-Version: 1.0
Message-Id: <19990731161545.CNKI7148.fep10-svc@nora0987>
Reply-To: djgpp AT delorie DOT com

Jurre Koning wrote :
> 
> #include <iostream.h>
> 
> int main()
> {
>  cout << "Tering het werkt!!\n";
> 
>  return 0; // The end
> }
> 
> using the command line :
> 
> 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 *)'
> 
try this

gcc jurre.cpp -ojurre.exe -liostr

--
Emiliano Baggiani
<eliobagg AT tin DOT it>
ICQ Nickname Innuendo
ICQ #29447269

- Raw text -


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