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 To: cygwin AT cygwin DOT com In-reply-to: <3D5F1721.2808F1A3@gmx.net> (message from Lostmind on Sun, 18 Aug 2002 05:40:17 +0100) Subject: Re: Problems exporting my DLL functions... References: <3D5F1721 DOT 2808F1A3 AT gmx DOT net> Message-Id: <20020820035042.B98873DC3@cavall.jtang.org> Date: Mon, 19 Aug 2002 23:50:42 -0400 (EDT) From: tang AT jtang DOT org (J. Tang) > Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm > Mail-Followup-To: cygwin AT cygwin DOT com > Date: Sun, 18 Aug 2002 05:40:17 +0100 > From: Lostmind > > Ok, what I want is to write a simple DLL... As I have discovered, the instructions in the FAQ et al are HORRIBLY out of date, due to General Meanness (TM). gcc now has a '-shared' flag that makes DLL creation much easier. Invoke it like so: gcc -o mydll.dll -shared file1.o file2.o file3.o -- Jason Tang / tang AT jtang DOT org / http://www.jtang.org/~tang -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/