delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/12/28/07:57:59

Message-Id: <36877FAA.A81058B9@cableol.co.uk>
Date: Mon, 28 Dec 1998 12:55:06 +0000
From: Allens <allen DOT asjp AT cableol DOT co DOT uk>
X-Mailer: Mozilla 4.04 [en] (Win95; I)
Mime-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Re: Fail to compile C++ program
References: <3687f0e2 DOT 9856212 AT news DOT silkera DOT net>
Reply-To: djgpp AT delorie DOT com

Read 'Readme.1st' available from the place you got djgpp.

		Peter Allen

Dong-Yueh Liu wrote:
> 
>   I never  use the DJGPP v2 before. I get these following files:
> djdev202.zip, gcc281b.zip, gpp281b.zip, bnu281b.zip, mak377b.zip.
> Following the install instructions in readme.lst, I unzip these files
> to the D:\DJGPP and perserve their directory structure. I also
> set the PATH environment variable to include D:\DJGPP and set
> DJGPP=C:\DJGPP\DJGPP.ENV . My OS is Windows NT 4.0.
> 
> My  next step is to write a C version of  hello.c and try to compile
> and execute it. The result is good. The next step is to write a C++
> version of hell.cpp. Its source code is:
> 
> ---------------------------------------------------
> #include <iostream>
> 
> int main()
> {
>         cout << "hello!" << endl;
>         return 0;
> }
> ------------------------------------------------------
> 
> Then I try to compile this program using the following command line:
> 
> gcc hello.cpp -o hello.exe
> 
> But the compilation failed. The error message is
> 
> In file included from d:/djgpp/lang/cxx/iostream:6,
>                  from hello.cpp:1:
> d:/djgpp/lang/cxx/iostream.h:31: streambuf.h: No such file or
> directory (ENOENT)
> 
> When I check the directory d:\djgpp\lang\cxx\, it has the
> streambuf.h file. So I don't know what's wrong. Please help me
> to solve this problem. Thanks!
> 
> Dong-Yueh Liu

- Raw text -


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