-
-
Notifications
You must be signed in to change notification settings - Fork 787
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add_deps不能自动链接 #5046
Labels
Comments
Title: add_deps cannot be automatically linked |
贴下完整 -vD logs,并且提供一个可复现的 example project |
Post the complete -vD logs and provide a reproducible example project |
他说的可能是这种情况: -- xmake.lua
target('foo', function()
set_kind('object')
add_files('foo.c')
before_build(function(T)
io.writefile(
'foo.c',
[[
void foo() {}
]]
)
end)
end)
target('shared', function()
set_kind('shared')
add_deps('foo')
end)
target('add_deps', function()
set_kind('binary')
add_files('main.c')
add_deps('shared')
before_build(function(T)
io.writefile(
'main.c',
[[
extern void foo();
int main() {
foo();
}
]]
)
end)
end)
链接 add_deps 时没有 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Xmake 版本
v2.9.1+HEAD.0c79f6162
操作系统版本和架构
Windows 8.1
描述问题
我的xmake.lua如下
执行后部分输出如下:
在
target("eyyc")
中有add_deps("radicalite_shared")
继承动态库依赖,然而生成的编译命令中并没有-L
和-l
,linker也不会链接这个库,导致链接失败。在v2.7.5版本中似乎没有此问题。
期待的结果
linker能够链接通过add_deps依赖的动态库
工程配置
见“描述问题”
附加信息和错误日志
(
*****
是我在输出后手动遮蔽的目录,对问题无影响)The text was updated successfully, but these errors were encountered: