delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/06/21/07:12:04

Date: Sun, 21 Jun 1998 14:11:07 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Alberto Chessa <achessa AT fiar DOT finmeccanica DOT it>
cc: djgpp AT delorie DOT com
Subject: Re: How/Where new libraries?
In-Reply-To: <01bd99be$c88f1c60$92c809c0@chessa>
Message-ID: <Pine.SUN.3.91.980621140431.5335G-100000@is>
MIME-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019