Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: "Jon Leichter" To: "'Nguyen Minh Le'" Cc: Subject: RE: DLL a question Date: Thu, 7 Feb 2002 09:26:57 -0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: 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/