首页 > Linux操作系统 > Linux操作系统 > Windows 下用 MinGW 中的 GCC 编译 dll
1, 在方法前面加 __declspec(dllexport), 比如:
__declspec(dllexport) void test(void);
2, 编译连接的时候加上参数:-L. -ltstdll
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/419718/viewspace-918465/ ,如需转载,请注明出处,否则将追究法律责任。