|
From: Wiedmann, J. <joc...@so...> - 2002-04-19 14:08:48
|
Hi, I have an external program (Java) into which I want to embed a DLL created with Mingw. (More precise: A JVMPI profiler.) The JVMPI contract assumes that I have to offer a function JVM_OnLoad. "objdump -p" shows, that I have an exported function JVM_OnLoad@12 but this doesn't seem accurately what the Java executable wants. I do build my DLL with the following commands: g++ -c -shared -o simpleprofiler.o -ID:\Prg\JDK-1.3.1\include \ -ID:\Prg\JDK-1.3.1\include\win32 simpleprofiler.cc g++ -c -shared -o hashtable.o -ID:\Prg\JDK-1.3.1\include \ -ID:\Prg\JDK-1.3.1\include\win32 hashtable.cc dllwrap --dllname=simpleprofiler.dll simpleprofiler.o hashtable.o When I start my DLL with java -Xrunsimpleprofiler ... I receive the message Could not find JVM_OnLoad function in -Xrun library: simpleprofiler Any hints? Regards, Jochen |