-
Notifications
You must be signed in to change notification settings - Fork 365
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
Compile error on MacOS #150
Comments
luamake -cc clang-17 |
感谢,在我的case下是 |
后续编译遇到这个错误,怎么解? |
还有这个编译错误,和上面那个错误,都跟 |
bee有个检测,如果你的编译器支持charconv/format就用编译器的,不支持就用bee自带的。检测是用了c++的feature test,但clang(准确地说是libc++)在这方面做到比较糟糕,明明还不支持,或者不完全支持就开始定义这个宏。 我没有你的环境,所以不知道具体的原因。你可以尝试通过检查libc++的版本的方式来决定激活这些功能。可能会比feature test更准确。 |
需要我提供哪些环境信息,一起定位下原因 |
或者可以细说下这个怎么操作吗,对c++及其编译不是很熟 |
对于format的错误,你可以看这个文件https://github.com/actboy168/bee.lua/blob/master/bee/nonstd/format.h 看起来是你的编译器是支持std::format的,但现在的检测代码却认为不支持。 |
System: MacOS 13.0
看起来像是luamake 使用了系统的/usr/bin/clang , 而这个版本的clang不支持c++20。<-- 个人判断是这个原因
验证了下,确实是clang版本的问题,用macports 装的clang-17 ,可以正常执行编译命令
luamake 如何指定用特定版本或目录的clang呢?
The text was updated successfully, but these errors were encountered: