Closed L-Super closed 1 year ago
I tried to change uint
to uint_
, it build successfully
template <typename Float>
constexpr auto exponent_mask() ->
typename dragonbox::float_info<Float>::carrier_uint {
using uint_ = typename dragonbox::float_info<Float>::carrier_uint;
return ((uint_(1) << dragonbox::float_info<Float>::exponent_bits) - 1)
<< num_significand_bits<Float>();
}
As far as the first error message is concerned, this is a problem that has already been resolved in the fmt library (not released). See: fmtlib/fmt#2809
However, the compiler reports warning C4459.
This is not a bug because you are handling compiler warnings as errors by the compile option /WX
(C2220).
Remove the /WX
option or add the /wd4459
option and ignore the warning.
See: https://learn.microsoft.com/en-us/cpp/build/reference/compiler-option-warning-level?view=msvc-170
Or use pragma
to suppress warning C4459
.
#pragma warning(push)
#pragma warning(disable: 4459)
#include <spdlog/spdlog.h>
#pragma warning(pop)
Thank you very much! I just found the answer too fmtlib/fmt#3137
env:
code:
When I use Clion and MSVC complier build Qt application , it build failed.Error information:
When I changed CMakeLists.txt:
The error info:
I tried two versions (V1.11.0 and V1.10.0), but both had the same results. I don't know the reason