X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: =?ISO-8859-15?Q?Hans-Bernhard_Br=F6ker?= Newsgroups: comp.os.msdos.djgpp Subject: Re: A question about gcc's LIBRARY_PATH and /dev/env/DJDIR Date: Sat, 21 Dec 2013 14:54:47 +0100 Lines: 46 Message-ID: References: <52B57658 DOT 2070801 AT gmx DOT de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.dfncis.de oAaJZ9jktzQWN25OZZ1C0QSZIFNuK1onzX+/PfbYDHzvxNGIVRx2GYh3+C Cancel-Lock: sha1:UDwUV9AmOlssI6DmSpXfs5anzKY= User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 In-Reply-To: <52B57658.2070801@gmx.de> Bytes: 2992 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On 21.12.2013 12:07, Juan Manuel Guerrero wrote: > These are: > /dev/env/DJDIR/net/watt/inc for headers. > /dev/env/DJDIR/net/watt/lib for libraries. Not really. They're actually something like d:\somewhere\djgpp\net\watt\inc d:\somewhere\djgpp\net\watt\lib > set C_INCLUDE_PATH=/dev/env/DJDIR/net/watt/inc > set LIBRARY_PATH=/dev/env/DJDIR/net/watt/lib It's been an astonishingly long time since I thought about this, but I I'm not convinced you're supposed to put /dev/env/DJDIR type paths into the external configuration, i.e. into host system environment variables. Note how none of the other directories in the gcc -print-search-dirs output is using /dev/env/DJDIR paths, but rather absolute paths with driver letters. If memory serves, back in the day I used to put such not-quite-standard include and library paths into djgpp.env. As an additional benefit, that avoids burdening the environment variable space. > I have read the gcc info doc and it tells that LIBRARY_PATH is a > colon separated list of directories to search for linker files if > they cannot be found using GCC_EXEC_PREFIX. Well, for DJGPP you better make that a semicolon-separated list of absolute paths. > I have assumed that these directories are absolute paths and not > relative paths to the current partition or am I missing something? The gcc info doc doesn't know about DOS. On Unix, which is what it does know about, there's only one directory tree, and thus all paths are either absolute (if they start with a /), or relative to the current working directory (if they don't). On Microsoft platforms these look like "d:\dir" and "dir", respectively. But "thanks" to drive letters, these platforms have a two more types of path specifications: paths relative to the current working drive, but otherwise absolute ("\dir"), and paths relative to _another_ drive's current working directory ("d:dir"). Those have their uses, too, but hardly for use in static configuration like environment variables.