From: Hans-Bernhard Broeker Newsgroups: comp.os.msdos.djgpp Subject: Re: Problem installing DJGPP package Date: 30 Jul 2002 10:08:24 GMT Organization: Aachen University of Technology (RWTH) Lines: 30 Message-ID: References: <5 DOT 1 DOT 0 DOT 14 DOT 0 DOT 20020729180059 DOT 00ba55c8 AT imss DOT gob DOT mx> NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de X-Trace: nets3.rz.RWTH-Aachen.DE 1028023704 19474 137.226.32.75 (30 Jul 2002 10:08:24 GMT) X-Complaints-To: abuse AT rwth-aachen DOT de NNTP-Posting-Date: 30 Jul 2002 10:08:24 GMT Originator: broeker@ To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com J. L. 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.