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 Date: Mon, 9 Jun 2003 23:12:49 +0100 From: Elfyn McBratney X-X-Sender: elfyn AT ellixia Reply-To: cygwin AT cygwin DOT com To: JS cc: cygwin AT cygwin DOT com Subject: Re: Help! (creating a dynamically linked shared library) In-Reply-To: <20030609215113.72715.qmail@web21506.mail.yahoo.com> Message-ID: References: <20030609215113 DOT 72715 DOT qmail AT web21506 DOT mail DOT yahoo DOT com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 AT is DOT ubertales DOT co DOT 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/