You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks a lot for this excellent library, helped me a lot.
But I encountered a sudden problem.
On Windows platform, after enabling wchar_t and external fmtlib support in spdlog, when compiling with C++20 option in MSVC 17.3.6, fmt throws a compilation error.
spdlog ( 1.10.0#1) and fmtlib (9.1.0) are all installed via vcpkg(x64-windows) with lasted port comfigurations.
Message as follows:
Error C7595: "fmt:: v9:: basic_format_string<wchar_t, const tm&>:: basic_format_string": The call to an instant function is not a constant expression.
I saw the comments here, but I still tried to modify it to fmt::runtime , it compiles successfully at this time, it seems that the comments here are a bit outdated? Has the new version of MSVC resolved the contradiction between wchar_t and fmt?
I tried to reproduce the above problem externally with the following minimal code. On my local PC, the following code using MSVC 17.3.6 will throw the same error (not modified to fmt::runtime ).
Since I don't know about other platforms and the specific requirements for compiler versions, I would like to ask if it is possible to modify this to fmt::runtime to solve the problem?
The text was updated successfully, but these errors were encountered:
YunchengLiu
changed the title
compile error on Windows wiht external fmtlib
compile error on Windows with external fmtlib and MSVC 17.3.6
Oct 15, 2022
Thanks a lot for this excellent library, helped me a lot.
But I encountered a sudden problem.
On Windows platform, after enabling wchar_t and external fmtlib support in spdlog, when compiling with C++20 option in MSVC 17.3.6, fmt throws a compilation error.
spdlog ( 1.10.0#1) and fmtlib (9.1.0) are all installed via vcpkg(x64-windows) with lasted port comfigurations.
Message as follows:
The wrong location is:
spdlog/include/spdlog/sinks/daily_file_sink.h
Line 81 in d011332
I saw the comments here, but I still tried to modify it to
fmt::runtime
, it compiles successfully at this time, it seems that the comments here are a bit outdated? Has the new version of MSVC resolved the contradiction between wchar_t and fmt?I tried to reproduce the above problem externally with the following minimal code. On my local PC, the following code using MSVC 17.3.6 will throw the same error (not modified to
fmt::runtime
).Since I don't know about other platforms and the specific requirements for compiler versions, I would like to ask if it is possible to modify this to
fmt::runtime
to solve the problem?The text was updated successfully, but these errors were encountered: