9 messages in net.java.dev.jna.usersRe: UnsatisfiedLinkError with
FromSent OnAttachments
Nicolas VienneDec 12, 2007 2:48 am 
Timothy WallDec 12, 2007 4:42 am 
Nicolas VienneDec 12, 2007 5:31 am 
Timothy WallDec 12, 2007 6:10 am 
Nicolas VienneDec 12, 2007 7:02 am 
Timothy WallDec 12, 2007 7:29 am 
Timothy WallDec 12, 2007 7:55 am 
Nicolas VienneDec 12, 2007 8:12 am 
Timothy WallDec 12, 2007 8:30 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: UnsatisfiedLinkError withActions...
From:Nicolas Vienne (ikar@tagazok.net)
Date:Dec 12, 2007 8:12:21 am
List:net.java.dev.jna.users

Timothy Wall <twalljava@...> writes:

GCC and VCPP generate the same stdcall symbols. How are you exporting yours?

The JNA tests generate the symbols via "__declspec(dllexport)" preceding each function, and symbols with a preceding underscore are found properly.

What is your OS and version (type "ver" in a command window)?

Microsoft Windows XP [Version 5.1.2600]. I'm using visual studio 6 to build my dll for testing (with the right stdcall settings) I export my functions using "__declspec(dllexport)" and that leads to "_add@8" symbol for instance.

Can you give me a sample of code that is known to work with underscored symbols
?

On Dec 12, 2007, at 10:29 AM, Timothy Wall wrote:

I'll double check the gcc vs MSVC-generated symbols, and augment StdCallFunctionMapper if necessary. In the meantime, just make your own functionmapper that extends StdCallFunctionMapper that prepends the underscore.

I've already done it and it works fine. (Where can we find the source code and all files for this project ? It tooks me some time to find the code of StdCallFunctionMapper !)