www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/01/14/08:04:20

Xref: news-dnh.mv.net comp.os.msdos.djgpp:4346
From: Borysiak Gregory - GusS - <borysgr AT iut DOT univ-metz DOT fr>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Help: undef ref to 'cout',undef ref to 'ostream'::operator<<(char(const*)'
Date: Sat, 13 Jan 1996 06:40:17 +0000
Organization: Institut Universitaire de Technologie - Metz - France
Lines: 28
Message-ID: <30F753D1.41C67EA6@iut.univ-metz.fr>
References: <4d68qq$6bb AT brahms DOT udel DOT edu>
NNTP-Posting-Host: cetautomatix.iut.univ-metz.fr
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Yue-hong Zheng wrote:
> 
> I want to compile the following c++ prog.:
> 
> #include <iostream.h>
> main ()
> 
> {
> cout <<"hello";
> return 0;
> }
> 
>  After I do"gcc -v -x c++ prog1.cpp", i got the above error message.
> I also find that iostream.h resides in \djgpp\cplusinc

When you link your program add : -lgpp so could use the c++ lib.

Greg

-- 
 /------------------------------------------\  Member of ED209 team work
and SWORD Group.
|   Borysiak Gregory                         | ed209 available on any
simtel20 site :  
|   Studies     : Computer science -IUT Metz | ->
/msdos/editor/ed209v13.zip 
|   Email       : borysgr AT iut DOT univ-metz DOT fr   |
 \------------------------------------------/

- Raw text -


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