This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]