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: <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 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 ============================================