gcc.exe: environment variable DJGPP not defined

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.
Locked
flexs

gcc.exe: environment variable DJGPP not defined

Post by flexs »

when i try to compile, djgpp get error like a subject what is wrong
uri

RE:gcc.exe: environment variable DJGPP not defined

Post by uri »

SET DJGPP=c:/wherever you put djgpp/djgpp.env
Put the above line in your autoexec.bat. If you still get the error message, check if you have installed all neccessary DJGPP packages.
Xiled

RE:gcc.exe: environment variable DJGPP not defined

Post by Xiled »

...and as a side note, this env var is case sensitive, even in windows.
KernelX
Posts: 7
Joined: Wed Feb 15, 2012 9:48 am

Re: gcc.exe: environment variable DJGPP not defined

Post by KernelX »

Looks like even i had the same dumb problem, got the answer.Thank you
KernelX
Posts: 7
Joined: Wed Feb 15, 2012 9:48 am

Re: gcc.exe: environment variable DJGPP not defined

Post by KernelX »

I am getting Ascess is denined .What to do?
User avatar
AJ
Member
Member
Posts: 2646
Joined: Sun Oct 22, 2006 7:01 am
Location: Devon, UK
Contact:

Re: gcc.exe: environment variable DJGPP not defined

Post by AJ »

Locked 9 year old topic - good thread necro though!

There's a topic already open about this that was posted this afternoon. Please use that topic and be more specific about the access denied error.

[edit - editing autoexec.bat has not made sense for years. Google how to set environment variables in Windows.]
Locked