www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/05/02/23:35:38

Xref: news2.mv.net comp.os.msdos.djgpp:3368
From: elric AT wheel DOT ucdavis DOT edu (Jeffrey Taylor)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Is this in FAQ?
Date: 1 May 1996 17:13:13 GMT
Organization: Davis Community Network - Davis, California, USA
Lines: 26
Message-ID: <4m8639$cck@mark.ucdavis.edu>
References: <Pine DOT SOL DOT 3 DOT 91 DOT 960429220941 DOT 12436A-100000 AT supreme> <4m7kno$piv AT newsstand DOT cit DOT cornell DOT edu>
NNTP-Posting-Host: wheel.dcn.davis.ca.us
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

: Stewart McDonald <smcdonal AT pcug DOT org DOT au> wrote:
: >Is it in the faq to make sure that c:\djgpp\bin or whatever is first in 
: >the path? If not, it should be, because the Borland Products (BC,TP) 
: >cause gcc to fail compilation if they are before it in the path. If bc is 
: >first, the wrong cpp.exe file gets called, and if tp is before it, the 
: >linker cannot find crt0.o. This I discovered only by accident (insane 
: >experimentation actually), and should be in the faq to save others the 
: >same trouble.
: >
: >Cia0, Joker/JAM Australia
: >

I use batch and script files to switch compilers.  Having two in the PATH 
at the same time invites trouble.  I have a DOS_PATH environment variable 
with the usual directories: c:\dos;c:\emacs\bin;...  The batch file 
appends and prepends the appropriate directories and sets other 
environment variables, e.g., INCLUDE, LIBS, etc.  I use Thompson Toolkit, 
a DOS shell, so I can get a little fancier than this, but even using 
COMMAND.COM and batch files, this works.  I switch between Microsoft, 
Borland, Watcom, and GNU this way.

--
============================================
Without my guitar, I am a poet without arms.
                        - Michael Bloomfield
============================================

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019