-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Patch 1.15.1 breaks build for MSVC v140 #3336
Comments
Not recognizing spdlog/include/spdlog/fmt/bundled/base.h Lines 742 to 743 in f355b3d
Maybe the source code has been changed? |
Yes, the file has changed significantly since the last release: The entire class If I remove the
Note sure what the implication of this is: Maybe its a configuration issue, there is a lot of |
The above comment was meant to ask you to check if Since this source code was copied from the fmt repository, you should request that it be fixed in the fmt repository. |
Thanks for the quick reaction. I was not aware that this part of the code comes from a different repository. I confirmed the latest version of fmtlib indeed comes with the same problem. I created a new issue fmtlib/fmt#4346 |
The linked upstream issue in
|
If it is a compiler bug, the second solution would be the only way. |
For the second solution, you can define a CMake variable Lines 91 to 92 in f355b3d
|
I just confirmed this solution works. Following the discussion in the linked issue of fmtlib, the first bad commit is fmtlib/fmt@761d35f. This means that fmtlib 11.0.2 is the last working version for MSVC v140. Build spdlog with fmtlib 11.0.2 and MSVC v140Step 1: Build fmtlib
Step 2: Build spdlog with external fmtlib
Thanks for your help! |
Issue
Since version 1.15.1 the MSVC v140 build breaks with the attached errors.
Details
static_assert(...)
in line 743, a new error appears when compilingexample.cpp
(details in comments)System
Visual Studio 2022 (17.12.4) with extension MSVC v140 - VS 2015 C++-Buildtools (v14.00)
Steps to reproduce
git checkout v1.15.1
cmake -T v140 -S . -B build/ && cmake --build build/
The text was updated successfully, but these errors were encountered: