----- Original Message ----- 
From: "Sisyphus"
.
.
>
> The problem is that no attempt is made to link to java's jvm.lib .... and
> I'm not currently sure of how to patch the source to fix that. (Advice on
> that gleefully accepted.)
>
> One solution is, having reached that error, to 'cd' to the 'Java' folder
in
> the Inline-Java build directory and run:
> gcc -shared -o
>
..\blib\arch\auto\Inline\Java\JNI\JNI.dll -LD:\perl58_M\5.8.8\lib\CORE -LF:\
> java\jdk1.5.0_07\lib -lperl58 -ljvm
>

Doh ... that works to the extent that a JNI.dll gets built in the right
place - but, naturally, since JNI.o was not given as an input file, it's a
useless JNI.dll that you end up with :-)

 'dmake test' still passes all tests - but, surely, that's only because
there's no tests for the JNI extension. Better to decline the invitation to
build the JNI extension at the 'perl Makefile.PL' stage, rather than to
proceed with the above (useless) kludge.

Unfortunaltely, whenever I do add 'JNI.o' to the command I still get
"undefined reference to [EMAIL PROTECTED]'". I'll try and find out
why that happens .... MinGW's gcc normally has no trouble in linking to MSVC
'.lib' files.

Cheers,
Rob

Reply via email to