Mail Archives: djgpp/1998/06/21/07:12:04
On 17 Jun 1998, Alberto Chessa wrote:
> gxx -I<new-include-dir> -L<new-lib-dir> -l<your-new-lib> ....
> (note: uppuer case i for include path)
> or edit DJGPP.env and add them there
^^^^^^^^^^^^^^
No, please do NOT edit DJGPP.ENV! Its syntax is cryptic, and without a
very good knowledge of how things are set up in DJGPP, you will do more
damage than you can imagine. Things will just stop working for you, and
you won't know why.
If you need to add directories to your library path, just set
LIBRARY_PATH in the environment, like this:
set LIBRARY_PATH=c:/mylib
You don't need to mention the standard DJGPP lib subdirectory: DJGPP.ENV
is set up in a way that whatever you put in the envoronment will be
*prepended* to the standard directories. Just add the above line to
AUTOEXEC.BAT (if it should be permanent) and reboot, that's it!
Everybody, please try to avoid telling people to edit their DJGPP.ENV,
even if you personally think it's easy (it isn't). Too many newbies were
tempted to do it, and then were badly burned by that. It is not needed
in 99% of the cases, like the example above shows.
- Raw text -