Mail Archives: djgpp/1998/12/28/08:00:03
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 <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 -