#ifdef MYDLL_EXPORT #define MYDLL_EXPORT extern "C" _declspec(export) #else #define MYDLL_EXPORT extern "C" _declspec(import) #endif
vs中属性->链接器->输入->模块定义文件中写入def文件名/链接->命令行中/DEF:xx.def
https://blog.csdn.net/u011555996/article/details/80293812