Mail Archives: djgpp/2003/01/14/13:57:14
> Next, edited the autoexec.bat as follows:
> set PATH=3DC:\DJGPP\BIN;%PATH%
> set DJGPP=3DC:\DJGPP|DJGPP.ENV
That vertical bar should be a slash of some sort.
> Next, checked the file,"djgpp.env ", LFN is set to Y.
> Next, opened the editor "edit", wrote the "Hello world! .c
> program, saved it as .c ; and compiled it like so:
> C:\djgpp\bin\gcc-o hello.c -o hello.exe -lm.
> C:\djgpp\bin\gcc-o hello.exe hello.c.
> C:\djgpp\bin\gcc-v hello.c -o hello.exe.
> The compiler issued the following error:
> gcc.exe environment variable djgpp not defined.
>
> How do I resolve this error? I'm running Win ' 98 O/S.
You're missing the mandatory reboot-because-its-windows step. Type
"set" and see if your changes to autoexec.bat have taken effect yet.
- Raw text -