delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/02/07/12:29:46

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
Delivered-To: mailing list cygwin AT cygwin DOT com
From: "Jon Leichter" <jonleichter AT mediaone DOT net>
To: "'Nguyen Minh Le'" <leminh2004 AT msn DOT com>
Cc: <cygwin AT cygwin DOT com>
Subject: RE: DLL a question
Date: Thu, 7 Feb 2002 09:26:57 -0800
Message-ID: <CIENIMJIOHKBPJEFFFOBEECKCEAA.jonleichter@mediaone.net>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0)
In-Reply-To: <DBE33597F580D511B59B0000F863178C09B0B4@dreaex.drea.dnd.ca>
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000

Here's a method that I have used successfully:

- Build your Cygwin DLL. Whether you build the DLL with dlltool, dllwrap, or
libtool, a .def file should be produced in the process.

- Use MSVC's command line tool "lib" with the /def option and your .def file
to generate an MSVC-style .lib import library.

- Link your MSVC project with the .lib import library.

Jon

> -----Original Message-----
> From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com]On Behalf
> Of McLeod, John
> Sent: Thursday, February 07, 2002 7:37 AM
> To: cygwin AT cygwin DOT com
> Cc: 'Nguyen Minh Le'
> Subject: RE: DLL a question
>
>
> The "DLL Stuff" download dllhelpers-0.2.9.tar.bz2
> at http://www.neuro.gatech.edu/users/cwilson/cygutils/V1.1/dll-stuff/
> has examples of making DLL's with C, C++, and Fortran under Cygwin.
>
> I don't have a simple example of using these with Microsoft
> Visual C/C++, but if by luck you have access to RSI's (proprietary)
> IDL 5.5 product ( http://www.rsinc.com/ ) their "CALL_EXTERNAL"
> example contains source code to make a VC DLL, and this
> example can be compiled on CYGWIN (following the examples in "DLL STUFF")
> and the resulting DLL used by the IDL "CALL_EXTERNAL" function.
>
> Hope this helps, John
>
> -----Original Message-----
> From: Nguyen Minh Le [mailto:leminh2004 AT msn DOT com]
> Sent: Thursday, 7 February 2002 5:04 a.m.
> To: cygwin AT cygwin DOT com
> Subject: DLL a question
>
>
> Hi All,
> Could you tell me a example in writing dll in Cygwin and use it in VC
> (windows).
> Thank you,
> Nguyen
>
>
> --
> 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/
>
>
> --
> 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/
>


--
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