delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <448D68F7.8050800@byu.net> |
Date: | Mon, 12 Jun 2006 07:15:35 -0600 |
From: | Eric Blake <ebb9 AT byu DOT net> |
User-Agent: | Thunderbird 1.5.0.4 (Windows/20060516) |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com, chenxiaof AT is DOT iscas DOT ac DOT cn |
Subject: | Re: static library in linux and Cygwin |
References: | <000801c68dd2$00014690$ab01a8c0 AT loiscxf> |
In-Reply-To: | <000801c68dd2$00014690$ab01a8c0@loiscxf> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to cxf on 6/11/2006 9:40 PM: > Hello,everyone: > I compile the static library in cygwin just like in linux,but when I > link my program with the Library, it did not find the function included > in the library. Are there any difference between linux and cygwin when > using and compiling the static library. Details, please. What link line did you use, and what was the error? Most likely, you made the rookie mistake of not listing the -l options last. Linux allows lazy linking, where symbols can be undefined if not found at link time (which is what happens if you list the -l first), but Windows .dlls are not so forgiving. - -- Life is short - so eat dessert first! Eric Blake ebb9 AT byu DOT net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.1 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEjWj384KuGfSFAYARAod9AKCF1FQh5JiF0ZkdxtF3Y0RSkfNhTQCfdzvW KlfUbgwEm0bFo99oWegXmBE= =4gDd -----END PGP SIGNATURE----- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |