Page 1 of 1

GCC error.

Posted: Fri Oct 05, 2007 8:15 am
by Mini
Ive been following a tutorial, I did it all right like the tutorial said, but when I try to compile it it says:

Code: Select all

gcc.exe: environment variable DJGPP not defined
Please help, it was working for me before, then I edited a file, then tried to recompile, and it gave me that error.

THNX in advacne.

Source is below.

main.c: ports.c: video.c: boot.asm:
[code}[/code]

compile.bat: scr.ld:

Posted: Fri Oct 05, 2007 8:24 am
by AJ
You need the environment variable DJGPP, which is normally set via control panel->system->advanced OR by typing:

Code: Select all

SET DJGPP=c:\djgpp\djgpp.env
at the command prompt you are just about to compile at. This assumes the standard install path of c:\djgpp. If you compile with a batch file, add that line to the start of the file.

HTH
Adam

Posted: Fri Oct 05, 2007 8:40 am
by Mini
Thank you so much!


It worked!
yay!

Ya, well.. thank you :D

Posted: Fri Oct 05, 2007 9:26 am
by AJ
No probs - glad it worked!

Adam