Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Mini
Posts: 18 Joined: Mon Apr 30, 2007 6:29 pm
Contact:
Post
by Mini » Fri Oct 05, 2007 8:15 am
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:
Last edited by
Mini on Fri Oct 05, 2007 8:42 am, edited 1 time in total.
===RygnorkOS Progress===
Version: ALPHA BETA, 0.0.1
Currently working on: getting bootloader to actually work >:(
AJ
Member
Posts: 2646 Joined: Sun Oct 22, 2006 7:01 am
Location: Devon, UK
Contact:
Post
by AJ » Fri Oct 05, 2007 8:24 am
You need the environment variable DJGPP, which is normally set via control panel->system->advanced OR by typing:
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
Mini
Posts: 18 Joined: Mon Apr 30, 2007 6:29 pm
Contact:
Post
by Mini » Fri Oct 05, 2007 8:40 am
Thank you so much!
It worked!
yay!
Ya, well.. thank you
===RygnorkOS Progress===
Version: ALPHA BETA, 0.0.1
Currently working on: getting bootloader to actually work >:(
AJ
Member
Posts: 2646 Joined: Sun Oct 22, 2006 7:01 am
Location: Devon, UK
Contact:
Post
by AJ » Fri Oct 05, 2007 9:26 am
No probs - glad it worked!
Adam