6 messages in net.java.dev.jna.usersRe: [jna-users] JNA / Linux problem -...
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:Re: [jna-users] JNA / Linux problem - Error looking up functionActions...
From:Timothy Wall (twal@dev.java.net)
Date:Aug 14, 2008 3:58:56 am
List:net.java.dev.jna.users

If they're static C++ functions (i.e. don't require a "this" pointer) then you can use a FunctionMapper to specify the conversion from unmangled to mangled (I started a C++ name mangler but never finished it).

If you've already done this on w32 then I guess you won't have problems, although I'm surprised you didn't have the same problem on w32.

Alternatively you can write a C-only wrapper DLL.

On Aug 14, 2008, at 4:03 AM, Benjamin BOUCHER wrote:

Thanks for the tips :

$ nm /usr/lib/libnexusSDK.so | grep NexusInitialize 0001a3e4 T _Z15NexusInitializev

Functions names are mangled..... How can I make it to work anyway ? (I precise that I just have the .so .a and the .h, I can't recompile the lib by myself)