delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/12/12/15:04:18

Sender: nate AT cartsys DOT com
Message-ID: <3672CA4A.4FD7B349@cartsys.com>
Date: Sat, 12 Dec 1998 11:55:54 -0800
From: Nate Eldredge <nate AT cartsys DOT com>
X-Mailer: Mozilla 4.08 [en] (X11; I; Linux 2.0.35 i486)
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Re: gxx error
References: <Pine DOT GSO DOT 3 DOT 96 DOT 981212014138 DOT 9536A-100000 AT expert DOT cc DOT purdue DOT edu>
Reply-To: djgpp AT delorie DOT com

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 -


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