delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/12/02/02:26:16

Message-Id: <199912020534.AAA24527@delorie.com>
From: "Leon" <Leon AT caresystems DOT com DOT au>
To: <djgpp AT delorie DOT com>
Subject: Re: Newbie: C++ compiling
Date: Thu, 2 Dec 1999 15:34:48 +1000
X-MSMail-Priority: Normal
X-Priority: 3
X-Mailer: Microsoft Internet Mail 4.70.1161
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

may be you meant to type
#include <iostream.h>?
instead of just
#include <iostream>

ie without .h?i have typed with .h and it compiled just fine

With best regards
* * * * * * * * * * * * * * * * * * * *
Leøn
* * * * * * * * * * * * * * * * * * * *
Mastering Solutions
(design and development)
www.bigfoot.com/~xt_contact
www.powerup.com.au/~lvz/resume/entry.htm

----------
> From: Chiew Heng Wah <heng7 AT hotmail DOT com>
> To: djgpp AT delorie DOT com
> Subject: Newbie: C++ compiling
> Date: Thursday, December 02, 1999 11:48 AM
> 
> Hi!
> 
> I am new with DJGPP. I have a problem while attempting to compile a C++
> program.
> I have downloaded and installed the lpg and gpp binaries at the
appropriate
> directories.
> I have no problems compiling other C programs. Only C++ programs giving
> problems.
> 
> Heng Wah.
> 
> ============Error Message===========
> %gcc hello.cpp
> hello.cpp:1: iostream: No such file or directory (ENOENT)
> ====================================
> 
> ===========Environment Setup========
> DJGPP=c:/djgpp/djgpp.env
> PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\UTIL;C:\DJGPP\BIN;
> ====================================
> 
> ==========Program Listing===========
> #include <iostream>
> 
> int main()
> {
>   std::cout << "Hello, World\n";
>   return 0;
> }
> ====================================
> 

- Raw text -


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