www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/07/22/14:32:10

From: Roy Quitter <royq AT hotmail DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: iostream.h
Date: Wed, 22 Jul 1998 13:17:11 -0500
Organization: ioNET Inc.
Lines: 38
Message-ID: <35B62CA6.36149BEB@hotmail.com>
References: <35B618C1 DOT E9858A5D AT club-internet DOT fr>
NNTP-Posting-Host: bartnas1-03.ionet.net
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Three problems with the way you're doing this:

1.  use << with cout, not >>
2.  instead of gcc proggy.cpp -o proggy.exe,
     use either gcc proggy.cpp -o proggy.exe -lstdcxx
     or gxx proggy.cpp -o proggy.exe
3.  make sure the environment variable LFN is set to 1.


- Roy Quitter
   royq AT hotmail DOT com
   http://rquitter.home.ml.org/


Gilles Gagniard wrote:

> Hi there !
>
> I've written a proggy with in it:
>
> #include<iostream.h>
> int main(void)
> {
> cout >> "Hello world";
> return 0;
> }
>
> then i type
>
> GCC proggy.cpp -o proggy.exe
>
> and GCC return an error, he can't find streambuf.h included in
> iostream.h, but I HAVE THIS FILE IN ./lang/cxx/ !!!!!!
>
> What can i do ?



- Raw text -


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