Date: Thu, 18 Jun 1998 19:24:55 +0300 (IDT) From: Eli Zaretskii To: Daniel cc: djgpp AT delorie DOT com Subject: Re: Finding headers under WinNT In-Reply-To: <6m8q88$mnb$1@nntpd.lkg.dec.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On 17 Jun 1998, Daniel wrote: > After installing DJGPP on my WinNT system > I tried creating 'Hello World'. I include > 'iostream' which is found but the compiler > can find 'streambuf.h'. > > After reading all the documentation I could > I believe the problem has to do with long file names. If you have unzipped DJGPP with WinZip or some other program which supports long file names on NT, then that is your problem. Remove everything you installed and re-unzip DJGPP zip files with a DOS program like PKUNZIP 2.04. Then everything will work. Explanation: DJGPP doesn't have access to long file names on NT, so it needs to see streambu.h. But when you unzip the distribution with WinZip, NT creates 8+3 aliases for long file names which include those pesky ~1 numeric tails, so what you get is stream~1.h, which is not the same. An alternative solution is to turn off the numeric tails. The DJGPP FAQ list explains in section 8.2 how to do that. But you will have to install DJGPP from scratch after turning off numeric tails anyway, since it only has effect on files created *after* turning it off. > (If anyone knows of a way to read man pages under NT please let me know) There's a DJGPP clone of the man command, in v2apps/man12b.zip. But I don't think it will help you in this matter, since none of the DJGPP documents are in man page format. Maybe you need the info reader, in which case get and install v2gnu/txi312b.zip. > I've edited the 'djgpp.env' file and set the env vars but still the > compiler can't find it. Please do NOT edit DJGPP.ENV! Its syntax is cryptic, and without a full understanding of what you are doing, you will break a lot of things in a way which will drive you crazy! DJGPP.ENV is instrumental in making everything work in a seamless matter, requiring you to set a single environment variable. Don't mess with it. I suggest to revert to the version of DJGPP.ENV that came with djdev201.zip. Anything you need to set in the environment, set either in AUTOEXEC.BAT or in the registry. (Actually, you only need to set the DJGPP environment variable and add the DJGPP bin subdirectory to your PATH.) > I was hoping that DJGPP would allow me to give Bill the Gates the > finger, but now it looks like I'll have to blindly go Visual. It does work for everybody else. You have just installed it incorrectly.