Date: Tue, 7 Oct 1997 14:43:50 +0200 (IST) From: Eli Zaretskii To: Bill_HellGateS cc: djgpp AT delorie DOT com Subject: Re: PGCC Question In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Tue, 7 Oct 1997, Bill_HellGateS wrote: > How do I configure DJGPP.ENV such that I and use pgcc and gccc together > without replacing one with another? ANy one got any ideas? First, please be sure to read the chapter in the DJGPP Knowledge Base which explains the DJGPP.ENV syntax (type "info know hidden djgpp" from the DOS prompt), and make sure you understand it *before* you try to edit DJGPP.ENV. Many people had their installation messed up by hacking that file. I assume that the regular gcc and pgcc are called by two different names on your system. Let's say pgcc's gcc is called `pgcc.exe'. Then here's what you need to do: - add a [pgcc] section to DJGPP.ENV and copy the [gcc] section to it; - put cpp.exe, cc1.exe, as.exe, ld.exe and any other pgcc-specific programs into a special directory; - define GCC_EXEC_PREFIX in the [pgcc] section that points to the directory where the pgcc-specific version are held (the directory name MUST include the trailing slash); That's it! (The GCC_EXEC_PREFIX variable is described in GCC's manual, look it up under "Invoking -> Environment".) Note that I didn't actually test the above, so I could have missed some additional problems.