This is the mail archive of the
mailing list for the Cygwin project.
Re: Running a program using a DLL under Cygwin
- From: Andrey Repin <anrdaemon at yandex dot ru>
- To: Yucong Sun <sunyucong at gmail dot com>, cygwin at cygwin dot com
- Date: Thu, 8 Oct 2015 18:12:10 +0300
- Subject: Re: Running a program using a DLL under Cygwin
- Authentication-results: sourceware.org; auth=none
- References: <22038 dot 29093 dot 221000 dot 863384 at woitok dot gmail dot com> <CAJygYd3DLkzj=Va7uuU8-NSjUG6kog0YqBuvhDMMA=0vZwY+=Q at mail dot gmail dot com>
- Reply-to: cygwin at cygwin dot com
Greetings, Yucong Sun!
https://cygwin.com/acronyms/#TOFU pretty please...
> I think symlink is a cygwin thing. Windows won't find that DLL (just
> like you won't find it using windows explorer.)
Unless he have created a Windows symlink, that is correct.
Explorer, however, may find it, as Cygwin symlinks are Windows LNK files.
> Windows only support loading DLL from project directory, or system32
> as far as I know.
That's not correct. Windows can be told to load DLL's from multiple places,
and you can add to that by registering your DLL in AppPaths registry key.
But a bottom point of the issue is that the OP's project is poorly designed
and needs a rework in the part of finding and loading custom plugins
There should be no need to move DLL's around, least to place them in a shared
location like user's ~/bin...
With best regards,
Thursday, October 8, 2015 18:08:16
Sorry for my terrible english...
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple