public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Creating libraries
@ 2001-02-13  6:57 Patrick Reuter
  2001-02-13  7:39 ` Charles Wilson
  0 siblings, 1 reply; 2+ messages in thread
From: Patrick Reuter @ 2001-02-13  6:57 UTC (permalink / raw)
  To: cygwin, cwilson

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.

Libraries (.a, .so) which I use under Linux I integrate using -L$(PATH)
in the linking stage. Is there no counterpart for Windows, for example
using .lib files ?

Thanx!
Patrick



--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Creating libraries
  2001-02-13  6:57 Creating libraries Patrick Reuter
@ 2001-02-13  7:39 ` Charles Wilson
  0 siblings, 0 replies; 2+ messages in thread
From: Charles Wilson @ 2001-02-13  7:39 UTC (permalink / raw)
  To: Patrick Reuter; +Cc: cygwin

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-02-13  7:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-13  6:57 Creating libraries Patrick Reuter
2001-02-13  7:39 ` Charles Wilson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).