Closed edidada closed 2 months ago
Bot detected the issue body's language is not English, translate it automatically.
Title: vs2022 tbox 1.7.5 xmake compilation error
Note: If you use vague expressions such as `not working/no effect/problem/error' when asking a question, but do not provide any relevant auxiliary information according to the template below, there will be absolutely no feedback.
error: log2f.c src\tbox\libm\log2f.c(45): error C2220: The following warning is considered an error
in src\tbox\libm\log2f.c
Expected results
xmake compiled successfully
If possible, please try to attach error output information during the running of the program.
Please provide compilation and running environment information.
Please provide any additional information to help us diagnose the issue.
xmake.lua 里 error 警告关了
Bot detected the issue body's language is not English, translate it automatically.
The error warning in xmake.lua is turned off
怎么关闭xmake.lua的警告?
add_rules("mode.debug", "mode.release")
if is_plat("windows") then
add_cflags("/W0", {force = true})
-- add_cxxflags("/W0", {force = true}) -- 如果是C++代码
else
add_cflags("-w")
-- add_cxxflags("-w") -- 如果是C++代码
end
target("your_target_name")
set_kind("binary")
add_files("src/*.c")
chatgpt 的回复?
描述问题
error: log2f.c src\tbox\libm\log2f.c(45): error C2220: 以下警告被视为错误
xmake编译成功
错误信息
如果可能,请尽量附加程序运行过程中的错误输出信息。
相关环境
请提供编译和运行环境信息。
其他信息
请提供其他附加信息帮助我们诊断问题。