www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/31/18:27:45

From: eolop AT mbox DOT vol DOT it (Eolo Perfido)
Newsgroups: comp.os.msdos.djgpp
Subject: What is happening ?????
Date: Fri, 31 Jan 1997 20:39:30 GMT
Organization: Flashnet
Lines: 40
Message-ID: <32f253f2.517889@news.flashnet.it>
NNTP-Posting-Host: ppp-323.flashnet.it
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Compiling this incredible stupid code (i'm learning):

#include <iostream.h>
#include <stdlib.h>


main ()
{

cout << "eolo";

return 0;

}


I receive this error....

I compile....

c:\develop\bin>gcc a1.cc -o a1.exe -lm  (compiling command, is it
ok??)

and then....

c:/develop/tmp\ccdaaaaa(.text+0x16):a1.cc: undefined reference to
'cout'
c:/develop/tmp\ccdaaaaa(.text+x1b):a1.cc: undefined reference to
'ostream:operator (((char const *)'

c:\develop\bin>


Someone understand what is happening ?????

Thanks a lot.....
NecroN
3D Graphic Artist & OverGame Editor
http://www.webcom.com/necron
http://www.overgame.pair.com

- Raw text -


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