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.