Mail Archives: djgpp/2003/02/28/05:31:14
Omar Morales <omar DOT morales AT computer DOT org> wrote:
> Does anybody knows how to make DJGPP run succesfully in a Windows XP Home
> DOS shell, for a non "system administrator" account?
This consists of two largely separate issues:
1) DOS support on XP is subtly broken in many "interesting" ways, for which
you need an updated version of DJGPP to take care of. Search this
newsgroup and you'll find lots of references to that.
2) Setting up DJGPP as non-admin on an NT-style box means you have to
avoid any changes to the master environment. That still leaves two
choices:
* Change the individiual user's private environment variables instead.
On XP, you would to to Control Panel --> System --> Extended and
select "Environment". Add the environment variables in the upper
pane, which shows the "user environment". The drawback: the change
is global to all programs run by that user --- some may not like the
PATH change, esp. other compilers installed on the same machine will
become confused.
* Put the two relevant 'set' commands into a batch file, let's call it
"setvars.bat", and create a desktop link with the commandline
%SystemRoot%\system32\cmd.exe /k c:\djgpp\setvars.bat
Whenever you want to work with DJGPP, open this link and it'll create
a command line shell set up for it. It's a good idea to give this
link a keyboard shortcut (I usually choose Alt+Shift+D). If you use
more than one compiler toolchain, this method is the only somewhat
workable one. You'll have to create one such link for each of them.
The drawback is that DJGPP-compiled programs executed from outside that
shell will not see the DJGPP environment variable, which they may need
for proper operation.
The best solution may actually be a combination of the two: put
"DJGPP=c:\djgpp\djgpp.env" in the user's environment settings, and
leave the PATH change to the batch file.
Or have a word with that admin to allow DJGPP=... in the global
environment.
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -