-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Problem building spdlog with external fmt #3115
Comments
It may be that the definition of the fmt custom formatter refers to an older document (https://fmt.dev/8.0.0/api.html#formatting-user-defined-types). In fmt 10 document (https://fmt.dev/10.2.0/api.html#formatting-user-defined-types): #include <fmt/core.h>
enum class color {red, green, blue};
template <> struct fmt::formatter<color>: formatter<string_view> {
// parse is inherited from formatter<string_view>.
auto format(color c, format_context& ctx) const;
}; Since it is |
starting from 11.0.0, fmt requires In the release note,
we should sync with this change. |
see https://github.com/gabime/spdlog/releases/tag/v1.14.0 and https://github.com/gabime/spdlog/releases/tag/v1.14.1 disable building examples as it breaks with a pending devel/fmt update (cf gabime/spdlog#3129 and gabime/spdlog#3115)
Just installed and test fmt library (development version) with the following instructions:
It's working perfectly fine.
But I wanted my
spdlog
library to not use the bundledfmt
, so I usedSPDLOG_FMT_EXTERNAL
option with the following command:But when I tried to build it, I got this error.
No matter what compiler (gcc) version or C++ standard I use, I get the same error. What is the problem?
The text was updated successfully, but these errors were encountered: