www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/03/02/23:04:47

Date: Thu, 02 Mar 1995 21:47:39 -0500 (CDT)
From: Aaron Ucko <UCKO AT VAX1 DOT ROCKHURST DOT EDU>
Subject: Re: iostream errors
To: kimhy AT cs DOT ucsb DOT edu
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Organization: Rockhurst College; Kansas City, MO

>I tried to compile following simple c++ program on my machine, it gave me 
>a whole bunch of error message.  The error messages were:
>	undefined (something)    'cout'
>	    "         "          'ostream::c....'
>	    "         "          'cin'
>
>I don't remember the exact error messages, but I hope this will be 
>enought for someone to know.  I included my djgpp.env and autoexec.bat 
>file.  Please, let me know if anyone knows what is wrong with my setup.  
>Incidentally, I installed it off Simtel CDROM.  djgpp2.6.0.   Also, I 
>tried to compile using comannd 'gcc -g -lm sample.cc'.

You should have used the command 'gcc -g sample.cc -l(1) -lm',
where (1) is either 'gpp' or 'iostream'; otherwise, the iostream functions
won't be linked in.  Also, you may need a '-O' or '-O2' in there so that
inlined functions get defined; this was a problem once, but I'm not sure
whether it still is.

[code deleted]

--- Aaron Ucko (ucko AT vax1 DOT rockhurst DOT edu; finger for PGP public key) -=- httyp!
-=*=-Just because you're paranoid doesn't mean they aren't out to get you.-=*=-
Geek code 2.1 [finger hayden AT vax1 DOT mankato DOT msus DOT edu for explanation]: 
 GCS/M/S d(-) H s g+ p? !au a-- w+ v+ C++(+++)>++++ UL++(-)(S+)>++++ P++ 
 L+(++) 3(-) E-(----) !N>++ K- W-(---) M-(--) V(--) po-(--) Y+(++) t(+) !5 j R 
 G tv--(-) b+++ !D(--) B--(---) e>++++(*) u++(@) h!() f(+) r-(--)>+++ n+(-) y?

- Raw text -


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