This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: creating shared dlls yields undefined reference to `WinMain@16' in mingw 4.3
- From: "BGB" <cr88192 at hotmail dot com>
- To: "Andrew Haley" <aph at redhat dot com>, "Daniel Walter" <d2walter at hotmail dot com>
- Cc: "Danny Smith" <dansmister at gmail dot com>, <java at gcc dot gnu dot org>
- Date: Thu, 18 Dec 2008 21:42:00 +1000
- Subject: Re: creating shared dlls yields undefined reference to `WinMain@16' in mingw 4.3
- References: <BLU138-DAV9D09A737E6E1E07A4933D80F30@phx.gbl> <494A22FA.7010500@redhat.com>
[first time forgot reply all]
----- Original Message -----
From: "Andrew Haley" <aph@redhat.com>
To: "Daniel Walter" <d2walter@hotmail.com>
Cc: "Danny Smith" <dansmister@gmail.com>; <java@gcc.gnu.org>
Sent: Thursday, December 18, 2008 8:16 PM
Subject: Re: creating shared dlls yields undefined reference to `WinMain@16'
in mingw 4.3
Daniel Walter wrote:
Thank you for all the help on this. For anyone who is searching the
archives for MinGW gcj information, I will summarize.
1. If you are trying to build a dll in MinGW, you may need to make a
dummy WinMain function.
This is wrong, though. Surely someone knows if Windows has something
like dlsym().
yes, one thing worth looking into is Tool Help.
http://msdn.microsoft.com/en-us/library/ms686837(VS.85).aspx
as well as:
http://msdn.microsoft.com/en-us/library/ms683199(VS.85).aspx
http://msdn.microsoft.com/en-us/library/ms683212.aspx
it is up to the reader to figure out how to use all this (sadly, nowhere
near as simple to make work as dlsym).
apparently it is possible to make all this work, though granted I was not
aware of all this when I wrote my stuff, so I had ended up using a much more
"manual" set of approaches when implementing my symbol lookup (manually
loading and processing the binary...).
or such...
Andrew.