在没有宏或.def文件的dll中自动导出所有符号,或.def文件
安装cmake版本3.3.2015021-g9cd2f或更高版本,包括“ extort”。 to your CMakeLists.txt file.Create a Visual Studio project using CMake.
Compile the project, and all symbols will be exported automatically.
Note:
When using this method, ensure that /GL (Whole Program Optimization) is not启用。Additional Tips
Use __declspec(dllexport) or __cdecl导出c函数的导出宏以消除名称杂交。使用静态库来导出符号,然后解析并提取它们以在.def文件中使用。
免责声明: 提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请说明详细缘由并提供版权或权益证明然后发到邮箱:[email protected] 我们会第一时间内为您处理。
Copyright© 2022 湘ICP备2022001581号-3