delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/31/23:15:01

From: "Weiqi Gao" <weiqigao AT crl DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: What is happening ?????
Date: 1 Feb 1997 02:53:49 GMT
Organization: CRL Dialup Internet Access
Lines: 49
Message-ID: <01bc0feb$4bb4c2c0$0f02000a@weiqigao>
References: <32f253f2 DOT 517889 AT news DOT flashnet DOT it>
NNTP-Posting-Host: crl12.crl.com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Use "gxx a1.cc -o a1" and you'll do fine.

-- 
Weiqi Gao
weiqigao AT crl DOT com

Eolo Perfido <eolop AT mbox DOT vol DOT it> wrote in article
<32f253f2 DOT 517889 AT news DOT flashnet DOT it>...
> 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