Sender: nate AT cartsys DOT com Message-ID: <3672CA4A.4FD7B349@cartsys.com> Date: Sat, 12 Dec 1998 11:55:54 -0800 From: Nate Eldredge 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: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 > > template > 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