Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-Id: <4.3.1.2.20020403111055.02672cf8@pop.ma.ultranet.com>
X-Sender: lhall@pop.ma.ultranet.com
Date: Wed, 03 Apr 2002 11:13:58 -0500
To: Suhanthan Vanniyasingam <Suhanthan@eRunway.com>
From: "Larry Hall (RFK Partners, Inc)" <lhall@rfk.com>
Subject: RE: Creating Static Libraries
Cc: "'cygwin@cygwin.com'" <cygwin@cygwin.com>
In-Reply-To: <40F39C234319D611BCCB00B0D0D1CB336092E9@ENETSLMAILI>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"

Right.  If you want a static library, you have to build one.  An import 
library is not the same as a static library.  In general, there's no reason 
you can't build a static library of you want one. 

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



At 10:46 PM 4/2/2002, Suhanthan Vanniyasingam wrote:
>Hi Larry,
>
>Thankyou for your reply.
>
>I'm asking can we create static libraries(LIBs) rethar than dynamic
>libraries(DLLs). I think the import library cannot be used alone as a static
>library. Is it?
>
>Thank You,
>
>Regards,
>Suhanthan, V.
>
>Suhanthan Vanniyasingam
>www.eRunway.com
>
>
>-----Original Message-----
>From: Larry Hall (RFK Partners, Inc) [mailto:lhall@rfk.com]
>Sent: Tuesday, April 02, 2002 9:54 PM
>To: Suhanthan Vanniyasingam; 'cygwin@cygwin.com'
>Subject: Re: Creating Static Libraries
>
>
>At 02:47 AM 4/2/2002, Suhanthan Vanniyasingam wrote:
> >  
> >Hi,
> >
> >I'm new to cygwin. I have found that we can create DLLs using 
> >Cygwin. So What abouts *.lib s? 
> >
> >Is there any relationship between *.a created with cygwin and *.lib? 
>
>
>Yes.  If the *.a is an import library (stubs referencing a DLL) rather than
>a static library, the format is the same as the *.lib.
>
>
> >Is it possible to use these *.a libraries with VC++?
>
>
>Generally, so long as you don't use dynamic memory (or if you do, you need
>to
>be very careful about freeing it in the same library as it's allocated - 
>better to just stay away from it).
>
>
>
>Larry Hall                              lhall@rfk.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/

