X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f X-Trace-PostClient-IP: 68.147.131.211 From: Brian Inglis Newsgroups: comp.os.msdos.djgpp Subject: Re: simple c compiler problem Organization: Systematic Software Message-ID: <50qh50l3go3pos77bninaide0411o00sgo@4ax.com> References: <98dfe2c DOT 0403171416 DOT 6700c383 AT posting DOT google DOT com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 51 Date: Thu, 18 Mar 2004 00:25:33 GMT NNTP-Posting-Host: 24.71.223.147 X-Complaints-To: abuse AT shaw DOT ca X-Trace: pd7tw3no 1079569533 24.71.223.147 (Wed, 17 Mar 2004 17:25:33 MST) NNTP-Posting-Date: Wed, 17 Mar 2004 17:25:33 MST To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com 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 >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