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