From: "Al Morgan" Newsgroups: comp.os.msdos.djgpp Subject: Re: compiler - include file problem Date: Sat, 30 Oct 1999 18:33:18 -0700 Organization: Posted via Supernews, http://www.supernews.com Lines: 77 Message-ID: References: <199910291614 DOT MAA00697 AT newton DOT wadsworth DOT org> X-Complaints-To: newsabuse AT supernews DOT com X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com From this point on, tell us your the excact command line you compiled your program with, so we can better help you. Instead of using "gcc" try using "gxx" i.e.: gxx -o helloworld.exe helloworld.cpp Make sure that your are using the gxx compiler (not the gcc), and the the extention of your files is either .cpp or .cc, if it is .c then the compiler will assume you are writing code in C, not C++. Hope this helps, Al [ muaddib AT proaxis DOT com ] Sadia Halim wrote in message news:199910291614 DOT MAA00697 AT newton DOT wadsworth DOT org... > Mr. Delorie, > > I have recently begun teaching myself C++. I bought SAMS Teach Yourself > C++ in > 24 hours as an introduction. The cd that accompanied that book came with the > djgpp compiler and all of the source code that can be downloaded from the web > site. I installed the compiler and all the files from the cd and began > writing > my first program; the basic "hello world" program. The code was as follows: > > #include > > int main() > { > cout << "Hello World!\n" > return 0; > } > > I tried to compile this from both the command line and from RHIDE and got the > same error: > > In file included from hello.cpp:1: > c:/djgpp/lang/cxx/iostream.h:31: streambuf.h: No Such File or > Directory(ENOENT) > > I went to the c:/djgpp/lang/cxx/iostream.h and opened the file. I saw where > the library made the call to the streambuf.h . I looked in the > c:/djgpp/lang/cxx directory and saw the streambuf.h file. I attempted to look > at the on-line FAQ's and other sources of info but could not find anything > just > like this. Any assistance you could provide would be greatly appreciated. > Thank you for your time. > > > Sadia Halim > > > ************************************ > Department of Biomedical Sciences > School of Public Health > State University of New York at Albany > > David Axelrod Institute > Wadsworth Center for Laboratories and Research > New York State Department of Health > P.O. Box 22002 > Albany, NY 12201-2002 > > halim AT wadsworth DOT org > lab (518)486-1272 > 486-1280 > fax (518)474-3181 >