www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/04/11/15:42:09

Sender: nate AT cartsys DOT com
Message-ID: <3710FA6A.6AEE76F5@cartsys.com>
Date: Sun, 11 Apr 1999 12:39:22 -0700
From: Nate Eldredge <nate AT cartsys DOT com>
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: <d93dc823 DOT 24423823 AT aol DOT com>
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

- Raw text -


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