Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 X-Sender: cwilson AT frontal DOT ibb DOT gatech DOT edu To: Patrick Reuter cc: cygwin AT cygwin DOT com Subject: Re: Creating libraries In-Reply-To: <3A895962.8955A330@uni-hohenheim.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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