Closed AImixAE closed 2 months ago
Bot detected the issue body's language is not English, translate it automatically.
Title: XMake will produce LNK 1104 error when building under Windows system
我在我的项目里也没有找到任何以.lib
为后缀的文件
Bot detected the issue body's language is not English, translate it automatically.
I didn't find any files with the suffix
.dll
in my project.
你的动态库没导出符号,自己参考上面的回复导出下
Bot detected the issue body's language is not English, translate it automatically.
Your dynamic library does not export symbols. Please refer to the reply above to export them yourself.
使用__declspec(dllexport)
时就好了,谢谢!
Bot detected the issue body's language is not English, translate it automatically.
It's fine when using
__declspec(dllexport)
, thank you!
Xmake 版本
v2.9.4+master.21ae0fa44
操作系统版本和架构
Windows 11 23H2 64位
描述问题
我的项目先 构建了一个动态库 ,随后再构建exe程序,但是在链接DLL时就会报错
LNK 1104
但是在 Linux 环境下使用xmake b
不会出现问题期待的结果
之后在 Windows 平台下可以顺利的build
工程配置
附加信息和错误日志
xmake f -m debug -v
xmake b main