9 messages in net.java.dev.jna.usersRe: [jna-users] Re: UnsatisfiedLinkE...
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: [jna-users] Re: UnsatisfiedLinkError withActions...
From:Timothy Wall (twal@dev.java.net)
Date:Dec 12, 2007 8:30:20 am
List:net.java.dev.jna.users

On Dec 12, 2007, at 11:12 AM, Nicolas Vienne wrote:

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 !)

There are two prior versions tagged in source control (2.4, 2.5). 3.0 is due as soon as we get a few outstanding native libraries compiled (linux-amd64 mostly; win64 and sparc possibly).

You can obtain the source from subversion, or browse online: https://jna.dev.java.net/source/browse/jna/

There are javadoc and source zips in the "dist" directory. The "files" area of the project currently just points to the latest on the trunk.