Date: Sun, 06 May 2001 20:15:45 +0300 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: jeffw AT darwin DOT sfbr DOT org Message-Id: <2110-Sun06May2001201545+0300-eliz@is.elta.co.il> X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.9 CC: djgpp AT delorie DOT com In-reply-to: <20010506112025.A21215@kendall.sfbr.org> (message from JT Williams on Sun, 6 May 2001 11:20:25 -0500) Subject: Re: __DJGPP__ and MSDOS References: <20010430093758 DOT A5379 AT kendall DOT sfbr DOT org> <20010504160823 DOT A19921 AT kendall DOT sfbr DOT org> <1438-Sat05May2001094057+0300-eliz AT is DOT elta DOT co DOT il> <20010505102525 DOT A20373 AT kendall DOT sfbr DOT org> <2427-Sat05May2001211736+0300-eliz AT is DOT elta DOT co DOT il> <20010506112025 DOT A21215 AT kendall DOT sfbr DOT org> Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > Date: Sun, 6 May 2001 11:20:25 -0500 > From: JT Williams > > Ok, I realize I'm long overdue for a gcc upgrade. Let's say I install > gcc 2.95.3. In the README Andris warns against keeping an old gcc > installation around (unless you know what you are doing). But given that > a gcc 2.7.2.1 installation requires only half a dozen files and doesn't > assume the directory structure of later gcc's, wouldn't it be relatively > simple to keep the 2.7.2.1 compiler in addition to the 2.95.3 setup? > Any suggestions on how to arrange this? Try this: - Rename the old gcc.exe to gcc2721.exe. - Create a directory lib/gcc-lib/djgpp/2.721/ and move the old cpp.exe, cc1.exe, and cc1plus.exe from bin to this new directory. Move the old lib/libgcc.a and lib/specs to that directory as well. - Rename the old lang/ directory to lang-2.721/. - Edit djgpp.env and add a [gcc2721] section with this content: [gcc2721] COMPILER_PATH=%DJDIR%/lib/gcc-lib/djgpp/2.721/ LIBRARY_PATH=%/>;LIBRARY_PATH%%DJDIR%/lib/gcc-lib/djgpp/2.721;%DJDIR%/lib CPLUS_INCLUDE_PATH=%/>;CPLUS_INCLUDE_PATH%%DJDIR%/lang-2.721/cxx;%DJDIR%/include (Note the trailing slash in the value of COMPILER_PATH: it's important!) Thereafter, you should be able to invoke the old compiler as "gcc2721". This is untested, so caveat emptor! (And please tell me if it works ;-)