Mail Archives: djgpp/1999/04/11/15:42:09
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 -