X-Spam-Check-By: sourceware.org Message-ID: <000301c695d2$6d70fd30$ab01a8c0@loiscxf> From: "cxf" To: "cygwin" 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 Content-Type: text/plain; format=flowed; charset="gb2312"; reply-type=original Content-Transfer-Encoding: 7bit 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: List-Archive: List-Post: List-Help: , 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/