Mail Archives: djgpp/1996/05/02/23:35:38
: 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 -