Mail Archives: djgpp/1998/12/12/15:04:18
Nathaniel Johnson wrote:
>
> hello
> i am using djgpp v2.02 and i am getting this error when i try to
> compile a simple c++ program
>
> error:
> In file included from swap.cc:1:
> e:/djgpp/lang/cxx/iostream.h:31: streambuf.h: No such file or directory
> (ENOENT)
>
> swap.cc:
> #include <iostream.h>
>
> template <class T>
> T min(T a, T b)
> {
> if (a < b)
> return a;
> else
> return b;
> }
>
> void main()
> {
> int x = 1, y = 2;
> cout << min(x,y) << endl;
> float c = 13.23, d = 2.231;
> cout << min(x,y) << endl;
> }
What platform are you using? If, as I suspect, it's Windows NT, you've
probably unzipped with an LFN-aware unzipper (like WinZip). But DJGPP
doesn't support long file names on Windows NT (or more properly
Microsoft doesn't). Thus, you should reinstall your DJGPP tree using a
DOS-style unzipper, like PKUNZIP. Alternatively, there is an
experimental LFN driver for NT available somewhere; you might check the
mail archives on www.delorie.com for the announcement.
If it's not NT, post some more details. System, method of installation
(including what unzip used), any changes made to DJGPP.ENV or other
files, AUTOEXEC.BAT, output of SET, and anything else you think is
relevant,
--
Nate Eldredge
nate AT cartsys DOT com
- Raw text -