Hi,
I am using JNA, for the first time, to access native code in .dll file. I am
getting the following error.
Exception in thread "main" java.lang.UnsatisfiedLinkError: Cannot locate
function 'GetTimings'
at com.sun.jna.NativeLibrary.getFunctionAddress(NativeLibrary.java:212)
at com.sun.jna.Function.<init>(Function.java:141)
at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:199)
at com.sun.jna.Library$Handler.invoke(Library.java:155)
at $Proxy0.ScoreTimings(Unknown Source)
at com.kryterion.wa.biometrics.keystrokes.JnaTest.main(JnaTest.java:40)
I am quite sure about the function name being 'GetTimings' coz I used
StdCallFunctionMapper of JNA to get the native method name. The .dll is getting
loaded fine, but it complains about function not being in the .dll .
native method signature:
------------------------
public int GetTimings(string timings, byte[] intem, out int outTemp);
method signature in my interface which extends Library com.sun.jna.Library
--------------------------------------------------------------------------
public int GetTimings(String timings, byte[] intem, int outTemp);
Any help would be appreciated.