Re: creating shared dlls yields undefined reference to `WinMain@16' in mingw 4.3

"BGB" <[email protected]>
Newsgroups gmane.comp.gcc.java.devel
Message-ID <[email protected]>
[first time forgot reply all]

----- Original Message ----- 
From: "Andrew Haley" <[email protected]>
To: "Daniel Walter" <[email protected]>
Cc: "Danny Smith" <[email protected]>; <[email protected]>
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.
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.