-
-
Notifications
You must be signed in to change notification settings - Fork 359
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
尝试用 ziglang toolchain 编译 LCUI 报错:lld-link: undefined symbol #309
Comments
问题解决了? |
还是这个
|
lc-soft
changed the title
尝试用 ziglang toolchain 编译LCUI
尝试用 ziglang toolchain 编译 LCUI 报错:lld-link: undefined symbol
Jun 24, 2024
有试过用 xmake 指定 zig 工具链来编译吗? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
编译步骤类似xmake.lua
1)编译 lib/ 目录下每个子lib 得到(static libary)
2)编译LCUI得到最终的静态库(依赖子库顺序与xmake.lua一致)
3)编译example/hello demo
C:\Users\dcyno\.zig\0.12.0\zig.exe build-exe D:\Dev-cpp\Project\lcui-quick-start\vendor\LCUI\examples\hello\src/main.c -llcui -ODebug -I D:\Dev-cpp\Project\lcui-quick-start\vendor\LCUI\include -L D:\Dev-cpp\Project\lcui-quick-start\vendor\LCUI\zig-out\lib -Mroot -lc
build.zig 代码:
4)报错:
请问一下这个
error: lld-link: undefined symbol
与库链接时顺序有关吗?The text was updated successfully, but these errors were encountered: