delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/11/27/14:33:16

Date: Sat, 27 Nov 93 13:50:45 +0100
From: terra AT diku DOT dk
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: gcc.exe and environment variables

A suggestion for gcc.exe:

In gcc.exe's main(), argv[0] has the path from which gcc.exe was executed.
This could be used for setting a number of environment variables to
their correct values in case the user didn't specify them already.

Let say that argv[0] expands to "c:\djgpp\bin\gcc.exe" with slashes either
way.  From this you could form "c:/djgpp/include" as the default for 
C_INCLUDE_PATH and so on.  Note that the slashes could be put the way that
other parts of djgpp expects them.  PATH might even be expanded to include
"C:\DJGPP\BIN" if it didn't already.

I think this would make it easier to start with djgpp, and we should get
less noise on this mailing list.

Speaking of mailing list: either I have been thrown off again or the list
is down.  Don't worry if this message is repeated.

Morten Welinder
terra AT diku DOT dk

- Raw text -


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