delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/09/29/17:56:25

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <3BB6427F.8010108@ece.gatech.edu>
Date: Sat, 29 Sep 2001 17:51:59 -0400
From: Charles Wilson <cwilson AT ece DOT gatech DOT edu>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.2) Gecko/20010726 Netscape6/6.1
X-Accept-Language: en-us
MIME-Version: 1.0
To: "Asbenson, Lyndell L" <lyndell DOT l DOT asbenson AT intel DOT com>
CC: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
Subject: Re: DLL Win 2000
References: <31A90D7E3560D511AC7400A0C96B2730012BF294 AT fmsmsx59 DOT fm DOT intel DOT com>


Asbenson, Lyndell L wrote:

> I have national instruments drivers for a GPIB device and all that they
> offer
> is DLLs and Language interfaces for Borland C++ or Microsoft C++. I have
> also
> look at your DLL conversion process 5 steeps. Is there any tool that will
> convert a DLL 32 bit to a static library where I could use this in the
> Cygwin
> environment?


Sort of.  You can create an gcc-style import library for the DLL (search 
for help/docu on 'dlltool' for more information).  This import lib will 
work with both cygwin's gcc and with mingw's gcc.

However, the odds are that any code you write must be compiled with the 
'gcc -mno-cygwin' option of cygwin's compiler, or you should just use 
the mingw compiler.  The reason for this is that the NI DLL *probably* 
was built to depend on msvcrt.dll, not cygwin1.dll.  Since both of these 
provide runtime services - and you can only have one runtime lib for a 
given app - your app will also have to be linked against msvcrt.dll (not 
cygwin1.dll)  Ergo, -mno-cygwin (or just use mingw comiler, not cygwin 
compiler).  You can check the dependencies of your NI DLL thus:
  cygcheck my_ni_dll.dll

--Chuck


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