DJGPP not working

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
bgpros6
Posts: 7
Joined: Wed Jul 04, 2007 9:00 pm

DJGPP not working

Post by bgpros6 »

Everytime i try to compile my code in DOS it gives me an error that it has an invalid path to the djgpp.env. I use windows XP and i tried everything i could find on this problem. :(
User avatar
01000101
Member
Member
Posts: 1599
Joined: Fri Jun 22, 2007 12:47 pm
Contact:

Post by 01000101 »

System Properties -> Advanced -> Enviroment Variables .

makes sure that in the table - User Varables for %user%

there is an entry named DJGPP and it links directly to the djgpp.env file provided in the djgpp package.
bgpros6
Posts: 7
Joined: Wed Jul 04, 2007 9:00 pm

Post by bgpros6 »

Hey thanks a WATT !! It started working agian so i can continue my project.. Thanks Agian!!!!!!!!!!
User avatar
01000101
Member
Member
Posts: 1599
Joined: Fri Jun 22, 2007 12:47 pm
Contact:

Post by 01000101 »

=)
no prob.
User avatar
eboyd
Member
Member
Posts: 97
Joined: Thu Jul 26, 2007 9:18 am
Location: United States

Post by eboyd »

You can always choose not to edit the envioronment variables and run it as a batch file.

Put this in your DJGPP directory...

Code: Select all

@echo off
set PATH=c:\DJGPP\bin;%PATH%
set DJGPP=c:\DJGPP\djgpp.env
chdir c:\DJGPP\myStuff (or whatever directory you want)
command

...and save as DJGPP.bat or whatever.bat

Then just double click to run and compile as usual.
Post Reply