6 messages in net.java.dev.jna.users[jna-users] JNA / Linux problem - Err...
FromSent OnAttachments
Benjamin BOUCHERAug 13, 2008 10:36 am 
Benjamin BOUCHERAug 13, 2008 11:19 am 
Timothy WallAug 13, 2008 11:44 am 
Benjamin BOUCHERAug 14, 2008 1:03 am 
Timothy WallAug 14, 2008 3:58 am 
Benjamin BOUCHERAug 14, 2008 4:42 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[jna-users] JNA / Linux problem - Error looking up functionActions...
From:Benjamin BOUCHER (bouc@gmail.com)
Date:Aug 13, 2008 10:36:03 am
List:net.java.dev.jna.users

Hi,

I am currently working on a project using a C library through JNA, it works fine under Windows, but not under linux. When I try to call a function from my JNA lib , I get the following error message :

Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: Error looking up function 'NexusInitialize': /usr/lib/libnexusSDK.so: undefined symbol: NexusInitialize

I get the same result with all functions, yet I am sure that those functions are in the .so because I can use its in C.

My interface declaration :

public interface LibNexus extends StdCallLibrary {

LibNexus INSTANCE = (LibNexus) Native.loadLibrary("nexusSDK", LibNexus.class); LibNexus SYNC_INSTANCE = (LibNexus) Native.synchronizedLibrary(INSTANCE);

short NexusInitialize();

I tried with

public interface LibNexus extends Library

but got the same result.

Need help :>