- Dec
- 39
- 0
I downloaded the latest SDK (from https://jpsoft.com/downloads/sdk/sdk.zip)
trying to use the built x64\Release\Plugin.dll for anything. It does not work since
all public functions are exported with C++names!
Here is the output from dumpbin -exports x64\Release\Plugin.dll:
1 0 00001060 ?GetPluginInfo@@YAPEAUPLUGININFO@@XZ
2 1 000010D0 ?InitializePlugin@@YAHXZ
3 2 000010D0 ?ShutdownPlugin@@YAHH@Z
4 3 0000112C ?UNKNOWN_CMD@@YAHPEA_W@Z
5 4 000010F0 ?_hello@@YAHPEA_W@Z
6 5 000010D4 ?f_reverse@@YAHPEA_W@Z
7 6 00001144 ?key@@YAHPEAUKEYINFO@@@Z
8 7 00001114 ?remark@@YAHPEA_W@Z
The provided Plugin.def is not used by Plugin.vcxproj as far I can see.
So I created a simple GNU-makefile (targeting cl or clang-cl) instead. Attached.
But IMHO using both a .def-file and __declspec(dllexport) is like wearing both a belt
and braces.
trying to use the built x64\Release\Plugin.dll for anything. It does not work since
all public functions are exported with C++names!
Here is the output from dumpbin -exports x64\Release\Plugin.dll:
1 0 00001060 ?GetPluginInfo@@YAPEAUPLUGININFO@@XZ
2 1 000010D0 ?InitializePlugin@@YAHXZ
3 2 000010D0 ?ShutdownPlugin@@YAHH@Z
4 3 0000112C ?UNKNOWN_CMD@@YAHPEA_W@Z
5 4 000010F0 ?_hello@@YAHPEA_W@Z
6 5 000010D4 ?f_reverse@@YAHPEA_W@Z
7 6 00001144 ?key@@YAHPEAUKEYINFO@@@Z
8 7 00001114 ?remark@@YAHPEA_W@Z
The provided Plugin.def is not used by Plugin.vcxproj as far I can see.
So I created a simple GNU-makefile (targeting cl or clang-cl) instead. Attached.
But IMHO using both a .def-file and __declspec(dllexport) is like wearing both a belt
and braces.