This is the mail archive of the
mailing list for the Cygwin project.
Re: Problems exporting my DLL functions...
> > Mailing-List: contact email@example.com; run by ezmlm
> > Mail-Followup-To: firstname.lastname@example.org
> > Date: Sun, 18 Aug 2002 05:40:17 +0100
> > From: Lostmind <email@example.com>
> > Ok, what I want is to write a simple DLL...
> 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!
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)?!? But
what are file2.o and file2.o in this case - from where do they come
where do they go ? :-) And what parameters do I need for the dlltool
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html