Mail Archives: djgpp/2002/07/30/07:52:07
J. L. <jlsgarrido AT softhome DOT net> wrote:
>>The method of creating the djgpp.bat file with the recommended lines doesn't
>>work either. When I try to start gcc from either C:\DJGPP\BIN in DOS or
>>with the icon that was extracted into the bin folder (which uses gcc.exe) I
>>get the error message "environment variable DJGPP not defined".
To original poster: that's because you ran gcc the wrong way. GCC is
*not* a Windows or full-screen application, thus, it's *not* supposed
to be started by clicking onto it in Explorer or any other "mouse-ish"
way. It's a command line tool, supposed to be run from a DOS command
prompt. In Windows, you open an "MS-DOS Command Window", make sure the
DJGPP environment is set up (type "set": does it list DJGPP=..., and
have DJGPP\bin in the PATH shown), and run GCC from there.
> Where is recommended this thing?
The recommendation covers what lines to put into DJGPP.bat, and the
idea to have it in a separate file rather than directly in
autoexec.bat has been issued in this newsgroup several times. In a
nutshell: if you have other C development packages besides GCC
installed on your system, chances are that no single fixed setup of
environment variables will allow them all to operate. Editing
autoexec.bat in the way described by readme.1st will break operation
of those other compilers, and re-installing them is likely to break
DJGPP. That's where having "prepare compiler XYZ to be used" .bat
files becomes useful, if not strictly necessary.
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -