delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/05/28/11:14:04

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
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-Id: <4.3.1.2.20020528100521.025e8130@pop.ma.ultranet.com>
X-Sender: lhall AT pop DOT ma DOT ultranet DOT com
Date: Tue, 28 May 2002 10:11:48 -0400
To: Stefan Hansen <Stefan DOT Hansen AT gmx DOT net>
From: "Larry Hall (RFK Partners, Inc)" <lhall AT rfk DOT com>
Subject: Re: windows and cygwin compiled dll ?
Cc: cygwin AT cygwin DOT com
In-Reply-To: <12056.1022593972@www21.gmx.net>
References: <4 DOT 3 DOT 1 DOT 2 DOT 20020528092349 DOT 0260bb80 AT pop DOT ma DOT ultranet DOT com>
Mime-Version: 1.0

At 09:52 AM 5/28/2002, Stefan Hansen wrote:
> > At 07:32 AM 5/28/2002, Stefan Hansen wrote:
> > >Hi there,
> > >
> > >I want to add a, dll which I compiled under cygwin, to my MSVC++ project.
> > >If I am correct I need a lib file of this dll. How can I create this lib
> > >file ?
> > 
> > 
> > Why not just use the Cygwin .a import library?
>
>Linking whith .a (which i copy to .lib) is no problem. But during the
>execution i got an Access Violation.


Then it's unlikely that creating a .lib instead will help you.  The .lib
will be the same import library as the .a.  As a result, you'll see the 
same access violation.  If you really want to understand what's causing 
this problem, you'll want to debug it.  I'll point out as well that there
are messages in the email archives that discuss some of the issues and 
pitfalls of adding gcc-generated DLLs to MSVC EXEs.  There can be subtle
problems with this.  You may want to review the email archives to see if 
any of these previous discussions are pertinent to your case.

BTW, I redirected the discussion back to the list, since this is worthwhile
information for the email archives.


Larry Hall                              lhall AT rfk DOT com
RFK Partners, Inc.                      http://www.rfk.com
838 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX


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