This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: Help! (creating a dynamically linked shared library)
- From: Elfyn McBratney <elfyn at is dot ubertales dot co dot uk>
- To: JS <etoilee_nuit at yahoo dot com>
- Cc: cygwin at cygwin dot com
- Date: Mon, 9 Jun 2003 23:12:49 +0100
- Subject: Re: Help! (creating a dynamically linked shared library)
- References: <20030609215113.72715.qmail@web21506.mail.yahoo.com>
- Reply-to: cygwin at cygwin dot com
On Mon, 9 Jun 2003, JS wrote:
> These are the commands I used to create the .lib and
> exports.o files:
>
> gcc -c function.c
> dlltool -e exports.o -l function.lib function.o
> gcc function.o exports.o -o function.dll
^^^^^^^^^^^^^^
You need to add the `-shared' flag after invocation of gcc eg.,
`gcc -shared' for shared libs.
--
Elfyn McBratney (mailto:spambot@is.ubertales.co.uk)
Systems Administrator
ABCtales.com / Ubertales.co.uk
--
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/