delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/02/12/06:45:37

From: Thomas Demmer <demmer AT LSTM DOT Ruhr-UNI-Bochum DOT De>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: iostream linking problem
Date: Thu, 12 Feb 1998 12:34:05 +0100
Organization: Lehrstuhl fuer Stroemungsmechanik
Lines: 38
Message-ID: <34E2DE2D.F65D6CB6@LSTM.Ruhr-UNI-Bochum.De>
References: <6buh39$p8j AT fstgal00 DOT tu-graz DOT ac DOT at>
NNTP-Posting-Host: bvb.lstm.ruhr-uni-bochum.de
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Gerfried Wanker wrote:
> 
> After installing the latest version of djgpp according to the
> instructions coming with it, compiling c++ programs gives a compiler
> error such as:
> 
> prog.c:2: iostream.h: no such file or directory (ENOENT)
> 
> the necessary packages *have been installed*
> Can anyone help me with this?
> Thanks
_If_ iostream.h is in DJGPP/lang/cxx _and_ you can 
compile ordinary C, you probably 
tried to compile with
 gcc -o foo.exe foo.c
Try
 gcc -o foo.exe foo.C
and it should work. This is, however not recommended, because
it can get you into interesting trouble concerning upper case
lower case issues that you can easily do with out. Rather
use .cc as the extension and gxx, because it automagically
adds libiostream to your program:
gxx -o foo.exe foo.cc

-- 
Ciao
Tom

*************************************************************
* Thomas Demmer                                             *
* Lehrstuhl fuer Stroemungsmechanik                         *
* Ruhr-Uni-Bochum                                           *
* Universitaetsstr. 150                                     *
* D-44780  Bochum                                           *
* Tel: +49 234 700 6434                                     *
* Fax: +49 234 709 4162                                     *
* http://www.lstm.ruhr-uni-bochum.de/~demmer                *
*************************************************************

- Raw text -


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