On Wed, 18 Aug 2004 16:35:25 +0200, Michael Gerdau wrote:
>> You need to convert the jvm.lib to gcc's .a format. Use the 'reimp'
>> tool from http://mywebpage.netscape.com/yongweiwu/, link against the
>> converted library and everything will work.
> That was my first idea as well. However according to the documentation at
> http://www.spacejack.org/games/mingw/ which is refered to from
> http://www.mingw.org/docs.shtml this is not required.
As far as I understand (from Wu Yongwei's excellent articles) it's an
"issue" with libraries in stdcall vs. non-stdcall format. I almost fell
off my chair laughing when I read about this entire linkage wanking on
Windows, but all I know is that I couldn't get my app linked against the
JDK's jvm.lib no matter which way (renamed as UNIX style libjvm.a for -l,
linked with full path, whatever). After reimp'ing it just worked.
Also note that the Wiki pages mention the terms "sometimes", "try" and
"should" quite a bit. I also had success writing my own .def file and
creating my own .lib with dlltool but reimp'ing the original seems much
more sane and repeatable , considering that the whole process should not
exist in the first place. IMHO reimp should really be part of the compiler
bundle so that people don't have to hunt it down first.
That's all I know :)