From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 41073 invoked by alias); 11 Oct 2015 05:54:36 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 41057 invoked by uid 89); 11 Oct 2015 05:54:33 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.4 required=5.0 tests=AWL,BAYES_20,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: Ishtar.hs.tlinx.org Received: from ishtar.tlinx.org (HELO Ishtar.hs.tlinx.org) (173.164.175.65) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Sun, 11 Oct 2015 05:54:31 +0000 Received: from [192.168.4.12] (Athenae [192.168.4.12]) by Ishtar.hs.tlinx.org (8.14.9/8.14.4/SuSE Linux 0.8) with ESMTP id t9B5sRtC028086 for ; Sat, 10 Oct 2015 22:54:29 -0700 Message-ID: <5619F993.1030703@tlinx.org> Date: Sun, 11 Oct 2015 05:54:00 -0000 From: Linda Walsh User-Agent: Thunderbird MIME-Version: 1.0 To: cygwin@cygwin.com Subject: Re: Running a program using a DLL under Cygwin References: <22038.29093.221000.863384@woitok.gmail.com> <393201296.20151008181210@yandex.ru> In-Reply-To: <393201296.20151008181210@yandex.ru> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2015-10/txt/msg00120.txt.bz2 Andrey Repin wrote: > 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. ---- Cygwin symlinks can use native Windows format, if you put 'winsymlinks:native export' in your 'CYGWIN' env var at startup -- preferably in your Win profile. However, cygwin occasionally has some bugs in how it creates links: /tmp> touch x /tmp> ln -s x y /tmp> ll x y -rw-rw-r--+ 1 0 Oct 10 22:27 x lrwxrwxrwx 1 6 Oct 10 22:28 y -> /tmp/x /tmp> cmd /c dir ?|grep '\s[xy]' 10/10/2015 10:32 PM 0 x 10/10/2015 10:40 PM y [C:\tmp\x] /tmp> rm y /tmp> mklink x y symbolic link created for y <<===>> x tmp> cmd /c dir ?|grep '\s[xy]' 10/10/2015 10:32 PM 0 x 10/10/2015 10:43 PM y [x] Normally cygwin can create relative symlinks but for some reason using these names -- in /tmp, it did not. (if I used a name other than 'y' for the symlink like 'winlink' or 'cyglink' then they both were relative links) Go figger... Also, FWIW Cygwin 'hardlinks' are Windows 'hardlinks'. No significant difference. So you could use a windows symlink or hardlink created in cygwin to the location of your 'dll' and it "should" work (but I haven't tested it) -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple