From: Eli Zaretskii Newsgroups: comp.os.msdos.djgpp Subject: Re: Zlib compiling error ==> help needed Date: Wed, 27 Oct 1999 09:44:06 +0200 Organization: NetVision Israel Lines: 28 Message-ID: References: <381315eb DOT 0 AT news DOT tm DOT net DOT my> NNTP-Posting-Host: is.elta.co.il Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: news.netvision.net.il 941010166 766 199.203.121.2 (27 Oct 1999 07:42:46 GMT) X-Complaints-To: abuse AT netvision DOT net DOT il NNTP-Posting-Date: 27 Oct 1999 07:42:46 GMT X-Sender: eliz AT is In-Reply-To: To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Tue, 26 Oct 1999, Damian Yerrick wrote: > > You should never mix RSXNTDJ with DJGPP, > > these are two different compilers. > > OK, I've installed them in \personal\djgpp and \personal\rsxntdj. > How do I tell the system to use one GCC port or the other? There are several possibilities; I don't know which one of them is better suited for RSXNTDJ, since I don't have RSXNTDJ installed. One possibility is to have two different DJGPP.ENV files, one each in every directory. Then you change your current compiler by flipping the value of the DJGPP environment variable and changing PATH. A simle batch file can do this. Another possibility is to set environment variables like C_INCLUDE_PATH, CPLUS_INCLUDE_PATH, COMPILER_PATH, and LIBRARY_PATH from the command line or a batch file. Yet another possibility is to prepare two shortcuts, one each for every compiler, and have each shortcut run COMMAND.COM like this: command /k djgpp.bat (and similarly for rsxntdj.bat). Then put everything you need to set up into these two batch files.