delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/05/06/13:22:05

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.20020506130941.0261d870@pop.ma.ultranet.com>
X-Sender: lhall AT pop DOT ma DOT ultranet DOT com
Date: Mon, 06 May 2002 13:19:22 -0400
To: Scott Fell <fell AT godzilla3 DOT geg DOT mot DOT com>, cygwin AT cygwin DOT com
From: "Larry Hall (RFK Partners, Inc)" <lhall AT rfk DOT com>
Subject: Re: How to create LIB from DLL
In-Reply-To: <Pine.SOL.4.05.10205061001520.27462-100000@eenie0.geg.mot.c
om>
References: <1020703867 DOT 17457 DOT ezmlm AT cygwin DOT com>
Mime-Version: 1.0

At 01:06 PM 5/6/2002, Scott Fell 1-0546 wrote:
>THE SETUP:
>I'm new to Visual Studio (please don't hate me for using MS products), so
>I could be doing something fundamentally wrong (I've done c++ on unix for 
>4ish years, and I just transitioned over to PC-land)... 
>
>I have cygwin1.dll, nothing else.


Why?  Just run setup and pick the Cygwin package.  This will give you the
DLL, the import library, and some other stuff.  You can use that import 
library if you want.


>THE PROBLEM:
>I want to link some code in VSC++ to the cygwin1.dll file, but I don't
>have an improt library (cygwin1.lib) file to go with it.  As I understand
>it, I *MUST* have the lib to make the link work.
>
>WHAT I'VE TRIED:
>I tried doing an 'nm cygwin1.dll....' command w/sed & all that, BUT it
>seemed to respond as though cygwin1.dll had been stripped.
>
>WHAT I'M PONDERING:
>SO: I am left wondering: Is there a DEF and a LIB out there for
>cygwin1.dll?  If not, how do I generate them myself without having to
>re-compile the cygwin1 dll?
>
>Any help would be much appreciated...


I can't say whether any of this will work for you or not, based on the 
information you've given.  However, I will caution you that using Cygwin 
in the way that you describe requires great care and perhaps some advanced
knowledge to do anything but the most basic of tasks.  In other words, you
should consider what you're doing as an "advanced topic".  You may want to
review discussions in the email archives on the idea of mixing VC++ libs
and Cygwin.  You may need to become familiar with Cygwin internals to 
understand what problems you might have and their possible solutions. 
Again, how much of this is relevant is dependent on your intended use.
Also, keep in mind that Cygwin is licensed under the GPL so any application
you link with it will be too, in case that affects your efforts.

Good luck,


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