Message-Id: <36878025.D03FDB07@cableol.co.uk> Date: Mon, 28 Dec 1998 12:57:09 +0000 From: Allens 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> <36877FAA DOT A81058B9 AT cableol DOT co DOT uk> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp AT delorie DOT com I wrote: > > Read 'Readme.1st' available from the place you got djgpp. and download a copy of the faq 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 > > > > 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