Message-Id: <199810031650.MAA15449@delorie.com> Comments: Authenticated sender is From: "George Foot" To: Steve Chapel Date: Sat, 3 Oct 1998 17:48:04 +0000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: Linker error [SOLUTION] Reply-to: mert0407 AT sable DOT ox DOT ac DOT uk CC: djgpp AT delorie DOT com X-mailer: Pegasus Mail for Win32 (v2.42a) On 3 Oct 98 at 2:31, Steve Chapel wrote: > After considerable effort, I solved all my problems. Here's how: ... > 2) Added the line: > SET LFN=Y > to C:\AUTOEXEC.BAT to enable support for "long file names". > > These suggestions are well buried in the DJGPP FAQ! I can't imagine > anyone compiling C++ without the long file name support. While I haven't tried C++ with recent versions, I'm sure it is possible (and quite simple) to use it without LFN support -- otherwise people on Windows NT and plain DOS systems wouldn't be able to use it (since djgpp can't use long filenames yet on those systems). The key thing is to decide at the start whether or not you want to use long filenames. If you do, then use a Windows unzip program and "set LFN=y" in your environment. If you don't, use a DOS unzip program (which doesn't understand long filenames) and "set LFN=n" in your environment (yes, do it explicitly because the default is changing in v2.02). The DOS unzip program will truncate the long filenames to 8.3 format when it creates the files, and with LFN disabled djgpp will do the same. The problem occurs when you use a Windows unzip program and leave LFN disabled, or use a DOS unzip program with LFN enabled. > 3) Set the DOS Window properties to: > Memory | Extended | Auto > Memory | DPMI | Auto It's recommended to set the DPMI memory quota to 65535, which is not on the list but is the maximum value that you can type into the box. I don't think these problems are too deeply buried in the FAQ. Chapter 8 is entitled "Compile-time and Link-time Problems". Within that chapter, section 1 is entitled "GCC can't find header files/libraries", and among other things suggests increasing the `FILES' quota in config.sys. Section 2 is entitled "GCC can't find C++ headers" and tells you about the possible problems related to LFN support. To demonstrate another (perhaps quicker) way to find this information, type `i' (for "index") followed by "header". It immediately pointed me to section 8.2, and pressing `,' (for "next entry") took me around several sections solving problems related to header files. -- george DOT foot AT merton DOT oxford DOT ac DOT uk