X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; q=dns; s=default; b=HOfjfDt5Z9Cyh520GuJa1U1p/LAPx0gCGsQGbBYOf7d CEvkqakwV4pTPR+Pdc4VYYllpt0wvIeWNX3iHbTlx8KElWifiFmTXz4KhVdQN5iA xGSY5V09PtOv0I8u597YadnnZzB2wd/xL0izj6+4fc1QCGhxACRKAqSOUmt2GcF0 = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; s=default; bh=T6rQDBTXb8LYBEinHW6+BVliUiE=; b=r9kjFikPk6IzOKHhV YQlSBWfmPYf/vo9ebILUPaxcaq3aeQo5WouE7XBtPPjS+m1H+A21641b+KYn7z2m jZh4f0wytK/iefTIQbhydkZIKL1JocVmNjTHdxjX6+ExLbN6mMgRhUJpvYCg3S8H oTgGz+0tUtUm4YSDCInkxR0D20= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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 Message-ID: <5619F993.1030703@tlinx.org> Date: Sat, 10 Oct 2015 22:54:27 -0700 From: Linda Walsh User-Agent: Thunderbird MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Running a program using a DLL under Cygwin References: <22038 DOT 29093 DOT 221000 DOT 863384 AT woitok DOT gmail DOT com> <393201296 DOT 20151008181210 AT yandex DOT ru> In-Reply-To: <393201296.20151008181210@yandex.ru> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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