This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: Problems exporting my DLL functions...
- From: tang at jtang dot org (J. Tang)
- To: cygwin at cygwin dot com
- Date: Mon, 19 Aug 2002 23:50:42 -0400 (EDT)
- Subject: Re: Problems exporting my DLL functions...
- References: <3D5F1721.2808F1A3@gmx.net>
> Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
> Mail-Followup-To: cygwin@cygwin.com
> Date: Sun, 18 Aug 2002 05:40:17 +0100
> From: Lostmind <lostmind@gmx.net>
>
> Ok, what I want is to write a simple DLL...
<snip>
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@jtang.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/