This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
Re: Creating libraries
- To: Patrick Reuter <preuter at uni-hohenheim dot de>
- Subject: Re: Creating libraries
- From: Charles Wilson <cwilson at ece dot gatech dot edu>
- Date: Tue, 13 Feb 2001 10:39:34 -0500 (EST)
- cc: cygwin at cygwin dot com
On Tue, 13 Feb 2001, Patrick Reuter wrote:
> Hi, and thanks already for the help from yesterday,
>
> Unfortunately I still have a problem compiling libraries under Windows
> using cygwin with gcc.
>
> I don't want (or do I have to ?) create .dll files but .lib libraries.
Okay, in the case of static libraries, cygwin is unix-like: statlibs end
in .a and are traditional archives (built using 'ar [options] name
objs....'
To link, you use -L$(PATH) -lname, where the library is called:
lib{name}.a
(actually, there is a complicated precedence order having to do with dll
import libs, static libs, and 'direct-to-dll' linking, but we won't get
into that here)
--Chuck
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple