delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
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: | Tue, 20 Aug 2002 14:31:42 +0200 |
From: | "Gerrit P. Haase" <gp AT familiehaase DOT de> |
Reply-To: | "Gerrit @ cygwin" <cygwin AT cygwin DOT com> |
Organization: | Esse keine toten Tiere |
X-Priority: | 3 (Normal) |
Message-ID: | <39336161164.20020820143142@familiehaase.de> |
To: | Lostmind <lostmind AT gmx DOT net> |
CC: | cygwin AT cygwin DOT com |
Subject: | Re: Problems exporting my DLL functions... |
In-Reply-To: | <3D5F33EC.5F9A8D24@gmx.net> |
References: | <3D5F1721 DOT 2808F1A3 AT gmx DOT net> |
<20020820035042 DOT B98873DC3 AT cavall DOT jtang DOT org> <3D5F33EC DOT 5F9A8D24 AT gmx DOT net> | |
MIME-Version: | 1.0 |
Hallo Lostmind, Am Sonntag, 18. August 2002 um 07:43 schriebst du: >> > 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 >> > First, thanx for your answer... > but it says: > gcc: unrecognized option `-shared' ...maybe my version is too old - I > will look for a newer version today! You'll need the latest version of binutils since -shared is a command for the linker. Though updating GCC cannot harm if you use an older version. > But I don't really understand the "-shared" flag - perhaps because i do > not know very much about the compiler. I have only one file (khook.c) i > want to compile to a dll... that would be my file1.o (khook.o)?!? gcc -o khook.o -c khook.o gcc -shared -o mydll.dll khook.o > But what are file2.o and file2.o in this case - from where do they come > where do they go ? :-) Other files for your DLL if you want to include others too. > And what parameters do I need for the dlltool after that? dlltool is deprecated, you don't need it, its all done by GCC and the linker. Gerrit -- "All faults& bugs are mine - Robert" from squid/acinclude.m4, Sun Apr 21 05:21:21 2002 -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |