Page 1 of 1
DJGPP enviroment variable problem!
Posted: Sun Mar 16, 2008 8:56 am
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
Posted: Sun Mar 16, 2008 9:18 am
by Brynet-Inc
DJGPP is the DOS port of GCC/binutils... Why do people still continue using it?
Posted: Sun Mar 16, 2008 9:21 am
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)
Re: DJGPP enviroment variable problem!
Posted: Sun Mar 16, 2008 10:03 am
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]
Posted: Sun Mar 16, 2008 5:14 pm
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]