Subject: RE: DLL a question
From: "Jon Leichter" <[email-masked]>
To: "'Nguyen Minh Le'" <[email-masked]>
Cc: <[email-masked]>
Date: Thu, 7 Feb 2002 09:26:57 -0800

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