delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <000301c695d2$6d70fd30$ab01a8c0@loiscxf> |
From: | "cxf" <chenxiaof AT is DOT iscas DOT ac DOT cn> |
To: | "cygwin" <cygwin AT cygwin DOT com> |
Subject: | How to Create Static library or dll file not depending on cygwin's dll |
Date: | Thu, 22 Jun 2006 16:04:03 +0800 |
MIME-Version: | 1.0 |
X-Mailer: | Microsoft Outlook Express 6.00.2900.2869 |
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 |
I have a source file "crypto.c",in this file I use the functions which in openssl library. So I compile the file with the following command gcc -c crypto.c gcc -shared -mno-cygwin -o crypto.dll crypto.o -lcrypto But the compiled dll file "crypto.dll" depends on the cygcrypto-0.9.8.dll, can I have any methods compile a dll file not depending on the cygcrypto-0.9.8.dll. Another question: I want compile the static library,so using the following command : gcc -c crypto.c gcc -static -o crypto.lib crypto.o -lcrypto. That will give a error. how to compile the static library? -- 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 |