JNI Probs!!!
hi,
having some real headaches trying to compile my C++ code while linking to 'jvm.dll',
this is the command i issue at the dos prompt:
"cl -Ic:\jdk1.3\include -Ic:\jdk1.3\include\win32 -MT invoker.cpp -link c:\jdk1.3\jre\bin\classic\jvm.dll"
then the output is as follows:
"Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
invoker.cpp
Microsoft (R) Incremental Linker Version 6.00.8168
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
/out:invoker.exe
c:\jdk1.3\jre\bin\classic\jvm.dll
invoker.obj
c:\jdk1.3\jre\bin\classic\jvm.dll : fatal error LNK1136: invalid or corrupt file"
obviously the most important thing here is the last bit:
"c:\jdk1.3\jre\bin\classic\jvm.dll : fatal error LNK1136: invalid or corrupt file"
don't really know why that's happening, i've been following the online tutorial on the sun site (and i've had to make alot of changes to what's there because i'm using jdk1.3 and the docs seem a bit out of date)
any suggestions or a pointer to some more up to date documentation would be greatly appreciated!!!!
many thanks and kindest regards in advance,
dug.

