delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/08/27/08:52:04

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
In-reply-to: < "292623D6B0EAD04C*/c=US/admd=
/prmd=National/o=notes/ou=Americas/s=Kauffman/g=Lior/"@MHS>
(Lior DOT Kauffman AT nsc DOT com)
Subject: Re: CYGWIN application & MSVC dll
References: <
"292623D6B0EAD04C*/c=US/admd= /prmd=National/o=notes/ou=Americas/s=Kauffman/g=Lior/"@MHS>
Message-Id: <20020827125147.7B9263DCB@cavall.jtang.org>
Date: Tue, 27 Aug 2002 08:51:47 -0400 (EDT)
From: tang AT jtang DOT org (J. Tang)

>  Date: 26 Aug 2002 22:31:25 -0700
>  From: "Lior Kauffman" <Lior DOT Kauffman AT nsc DOT com>
>  Cc: cygwin <cygwin AT cygwin DOT com>
>  
>  is there are special guidelines for building the MSVC compiled DLL
>  (dlltool ?)

From Visual Studio, set the project type to be a relocable library
(DLL).  I ended up hand-editing its .def file to list the exportable
functions; for some reason __cdecl did not work for me.

>  how do I load the MSVC compiled DLL from the CYGWIN application (by
>  which command ?)

I used dlltools to load the DLL at runtime; see this older mailing list
post:

http://cygwin.com/ml/cygwin/2002-08/msg01141.html

Now if you're referring to linking to the DLL at compile time, see
http://cygwin.com/cygwin-ug-net/dll.html#DLL-LINK.  Note that I have not
personally done this yet; I have only built and used relocatable MSVC
DLLs.

I've also built and used relocatable Cygwin DLLs, but gave up after
this:  http://cygwin.com/ml/cygwin/2002-08/msg01002.html, with a
follow-up at http://cygwin.com/ml/cygwin/2002-08/msg01046.html.

-- 
Jason Tang  /  tang AT jtang DOT org  /  http://www.jtang.org/~tang

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019