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
DJGPP enviroment variable problem!
- Brynet-Inc
- Member
- Posts: 2426
- Joined: Tue Oct 17, 2006 9:29 pm
- Libera.chat IRC: brynet
- Location: Canada
- Contact:
Re: DJGPP enviroment variable problem!
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.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
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]Brynet-Inc wrote:DJGPP is the DOS port of GCC/binutils... Why do people still continue using it?
- codemastersnake
- Member
- Posts: 148
- Joined: Sun Nov 07, 2004 12:00 am
- Contact:
* 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]
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
- untitled.GIF (38.36 KiB) Viewed 1200 times