Skip to content

mingw[clang] 安装 glfw 时,on_test 链接失败 #9918

Description

@Pentalimbed

checking for Microsoft C/C++ Compiler (x64) ... ok
checking for Microsoft Visual Studio (x64) version ... 2022
checking for Mingw SDK ... C:/msys64/ucrt64 (x86_64-w64-mingw32-)
note: install or modify (m) these packages (pass -y to skip confirm)?
in xmake-repo:
-> glfw 3.4 [toolchains:"mingw[clang]", runtimes:"MD", license:zlib]
please input: y (y/n/m)

=> install glfw 3.4 .. failed

C:/msys64/ucrt64/bin/ld: C:\Users~\AppData\Local\Temp.xmake\260506_9974b41377aed4e4d826b0aa1aec815b.o:__cpp__9974b41377aed4e4d826b0aa1aec815b.c:(.text+0x5): undefined reference to glfwInit' C:/msys64/ucrt64/bin/ld: C:\Users\~\AppData\Local\Temp\.xmake\260506\_9974b41377aed4e4d826b0aa1aec815b.o:__cpp__9974b41377aed4e4d826b0aa1aec815b.c:(.text+0xa): undefined reference to glfwTerminate'
C:/msys64/ucrt64/bin/ld: C:\Users~\AppData\Local\Temp.xmake\260506_9974b41377aed4e4d826b0aa1aec815b.o:__cpp__9974b41377aed4e4d826b0aa1aec815b.c:(.text+0x32): undefined reference to `__main'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
if you want to get more verbose errors, please see:
-> C:\Users~\AppData\Local.xmake\cache\packages\2605\g\glfw\3.4\installdir.failed\logs\install.txt
error: install failed!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions