DJGPP enviroment variable problem!

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
HLA91
Posts: 9
Joined: Mon Feb 18, 2008 12:23 pm
Location: UK

DJGPP enviroment variable problem!

Post by HLA91 »

Hi all

I am reading Brans kernel development tutorial and it was going well until I had to use the
gcc -Wall -O -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -I./include -c -o main.o main.c
command.
I received the error
gcc.exe: enviroment variable DJGPP not found
I have added C:\DJGPP\bin and C:\DJGPP\djgpp.env to my user variable paths and to my system variable paths but it still comes up with that warning.
Can someone please shed some light on why this is happening?

Cheers

HLA91
User avatar
Brynet-Inc
Member
Member
Posts: 2426
Joined: Tue Oct 17, 2006 9:29 pm
Libera.chat IRC: brynet
Location: Canada
Contact:

Post by Brynet-Inc »

DJGPP is the DOS port of GCC/binutils... Why do people still continue using it? :lol:
Image
Twitter: @canadianbryan. Award by smcerm, I stole it. Original was larger.
User avatar
lukem95
Member
Member
Posts: 536
Joined: Fri Aug 03, 2007 6:03 am
Location: Cambridge, UK

Post by lukem95 »

because its easy to use :)

EDIT: and erm... this isn't really an OSDEV topic. wrong forum. (it is also what solar is describing in his thread)
~ Lukem95 [ Cake ]
Release: 0.08b
Image
Ready4Dis
Member
Member
Posts: 571
Joined: Sat Nov 18, 2006 9:11 am

Re: DJGPP enviroment variable problem!

Post by Ready4Dis »

HLA91 wrote:Hi all

I am reading Brans kernel development tutorial and it was going well until I had to use the
gcc -Wall -O -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -I./include -c -o main.o main.c
command.
I received the error
gcc.exe: enviroment variable DJGPP not found
I have added C:\DJGPP\bin and C:\DJGPP\djgpp.env to my user variable paths and to my system variable paths but it still comes up with that warning.
Can someone please shed some light on why this is happening?

Cheers

HLA91
Sounds like a failure to follow the directions in Readme.1st. The C:\DJGPP\djgpp.env should not just be added to your path, it must be a NEW variable, called DJGPP that equals C:\DJGPP\djgpp.env.
Brynet-Inc wrote:DJGPP is the DOS port of GCC/binutils... Why do people still continue using it?
And I use DJGPP, what's wrong with it? It works, why fix it if it ain't broke. What will switching to, or compiling my own, do for me that is a must have, can't live without feature worth the effort? djgpp compiles my OS, typically within 1/2 a second, and it outputs to a format that works fine for me. My OS uses dynamic coff files, and can link them in memory at runtime. I can also write utilities for my Dos partition that I multi-boot (mostly for writing my OS to the hard drive, or testing code in a mostly un-inhabbited environment). So, again I ask, what is a reason that I should stop using DJGPP?[/quote]
User avatar
codemastersnake
Member
Member
Posts: 148
Joined: Sun Nov 07, 2004 12:00 am
Contact:

Post by codemastersnake »

* May be you are not pointing to right installation directory.

You should install it in C:\DJGPP\

* May be you have not set the environment Variable correctly

Env Name: DJGPP
Points to: C:\DJGPP\DJGPP.ENV

* May be you are using the user for which the DJGPP env is not set.

Try Installing it as a global variable


[/img]
Attachments
Env variable
Env variable
untitled.GIF (38.36 KiB) Viewed 1205 times
Post Reply