This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problems exporting my DLL functions...


>  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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]