Sender: nate AT cartsys DOT com Message-ID: <3710FA6A.6AEE76F5@cartsys.com> Date: Sun, 11 Apr 1999 12:39:22 -0700 From: Nate Eldredge X-Mailer: Mozilla 4.08 [en] (X11; I; Linux 2.2.5 i586) MIME-Version: 1.0 To: djgpp AT delorie DOT com Subject: Re: compiler problems References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp AT delorie DOT com Kmolles3 AT aol DOT com wrote: > > I received the djgpp compiler on a CD from the book "Sams Teach Yourself C++ > in 24 Hours". I tried compiling a source file provided by the CD and I kept > getting a missing file or directory error. > > I typed: > > gcc myfile.cpp -o -myfile.exe -lm > > or > > gxx myfile.cpp -o myfile.exe > > Both gave me the following error message: > > c:\djgpp\lang\cxx\iostream.h:31: streambuf.h: No such file or directory > (ENOENT) > > What exactly is the missing file or directory? iostream.h and streambuf.h > are both in the directory. This is usually caused by having long file names set up wrong. What version of DJGPP did you get? (Compile a test program in C that prints out the values of __DJGPP__ and __DJGPP_MINOR__.) If 2.01, set LFN=Y in the environment, or better yet upgrade to 2.02 where it's enabled by default. If that doesn't help (and there are more complex cases where it might not), post the version of DJGPP you have, the contents of your environment, the OS you're using, and the way you installed DJGPP. -- Nate Eldredge nate AT cartsys DOT com