GCC error.

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.
Post Reply
Mini
Posts: 18
Joined: Mon Apr 30, 2007 6:29 pm
Contact:

GCC error.

Post 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:
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 >:(
User avatar
AJ
Member
Member
Posts: 2646
Joined: Sun Oct 22, 2006 7:01 am
Location: Devon, UK
Contact:

Post 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
Mini
Posts: 18
Joined: Mon Apr 30, 2007 6:29 pm
Contact:

Post by Mini »

Thank you so much!


It worked!
yay!

Ya, well.. thank you :D
===RygnorkOS Progress===
Version:ALPHA BETA, 0.0.1
Currently working on: getting bootloader to actually work >:(
User avatar
AJ
Member
Member
Posts: 2646
Joined: Sun Oct 22, 2006 7:01 am
Location: Devon, UK
Contact:

Post by AJ »

No probs - glad it worked!

Adam
Post Reply