| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
| List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT sources DOT redhat DOT com |
| Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
| Date: | Tue, 13 Feb 2001 10:39:34 -0500 (EST) |
| From: | Charles Wilson <cwilson AT ece DOT gatech DOT edu> |
| X-Sender: | cwilson AT frontal DOT ibb DOT gatech DOT edu |
| To: | Patrick Reuter <preuter AT uni-hohenheim DOT de> |
| cc: | cygwin AT cygwin DOT com |
| Subject: | Re: Creating libraries |
| In-Reply-To: | <3A895962.8955A330@uni-hohenheim.de> |
| Message-ID: | <Pine.GSO.4.20.0102131036350.4146-100000@frontal.ibb.gatech.edu> |
| MIME-Version: | 1.0 |
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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |