DLL a question

Jon Leichter jonleichter@mediaone.net
Thu Feb 7 09:29:00 GMT 2002


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@cygwin.com [mailto:cygwin-owner@cygwin.com]On Behalf
> Of McLeod, John
> Sent: Thursday, February 07, 2002 7:37 AM
> To: cygwin@cygwin.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@msn.com]
> Sent: Thursday, 7 February 2002 5:04 a.m.
> To: cygwin@cygwin.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/



More information about the Cygwin mailing list