Mail Archives: djgpp/2004/03/17/19:32:01
On 17 Mar 2004 14:16:24 -0800 in comp.os.msdos.djgpp,
fsshl AT centurytel DOT net (Eric Lin) wrote:
>gcc.exe: environment variable djgpp not defined
You have not followed the installation instructions correctly to set
up your environment properly to allow you to run DJGPP programs: see
http://www.delorie.com/djgpp/v2faq/faq1.html
You have to put a line like the following in CONFIG.SYS, AUTOEXEC.BAT,
or say, for example, DJGPP.BAT (which you then have to run before
using any DJGPP programs):
SET DJGPP=c:\djgpp\djgpp.env
where c:\djgpp is the directory where you installed DJGPP and which
contains the djgpp.env file. You can find this out from a DOS command
prompt window by typing the command:
dir /s c:\djgpp.env
and it will eventually produce output like:
Volume in drive C is DISK
Volume Serial Number is 1234-5678
Directory of C:\djgpp
DJGPP ENV 3,599 02-24-04 11:54p djgpp.env
1 file(s) 3,599 bytes
The directory name you need is on the third non-blank line.
>what may cause worng? my gcc try0.c program is very
>simple
It's not your program, it's your configuration setup.
>#include <stdio.h>
>int main() {
>
>printf("hello world\n");
>}
>
>highly appreciate any advice
--
Thanks. Take care, Brian Inglis Calgary, Alberta, Canada
Brian DOT Inglis AT CSi DOT com (Brian dot Inglis at SystematicSw dot ab dot ca)
fake address use address above to reply
- Raw text -