This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: is "/lib" needed in PATH?


On Thu, 21 Jul 2005, Linda W wrote:

> I have been putting "/lib" in my windows path (along with "/bin").

To answer the question in the subject: no, /lib isn't needed in $PATH.

> Do I need to specify cygwin's "lib" dir so it will load the "DLL's", or
> do the cygwin binaries internally "know" (add?) lib to the path to search.

For precisely this reason, Cygwin's DLLs that are loaded via the Windows
dynamic loading mechanisms are in /bin.  There shouldn't be any "linked"
DLLs in /lib.

> I.e. I want to be able to call some cygwin based utils (like bash) from
> Windows.  Normally with windows programs, directories containing DLL's
> that are needed by Window's Programs need to have the DLL dir in the
> path (unless it is in same dir as the EXE).  Is this also true for
> cygwin EXE's or does cygwin handle apart from (in spite of) the normal
> rules for locating DLL's?
>
> If this is in the FAQ, I've forgotten it...

If a program places its DLL under /lib, it should modify the environment
appropriately so that the Windows loader finds it, or use the Cygwin
loading mechanisms (i.e., dlopen()).

Which DLLs in /lib cause problems for you if /lib isn't in the $PATH?
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]