Mail Archives: djgpp/1993/11/27/14:33:16
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 -