Skip to content
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

Error: ‘fmt::v11::detail::type_is_unformattable_for<XTP_POSITION_DIRECTION_TYPE, char> _’ has incomplete type when using spdlog headers #3334

Open
shilkazx opened this issue Feb 2, 2025 · 2 comments

Comments

@shilkazx
Copy link

shilkazx commented Feb 2, 2025

System
Archlinux x64
GCC 14.2.1
cmake 3.31.5

Spdlog
I use git clone get latest version

Bug details
Error occurred when I compile another project which need spdlog headers. The cmake result is:

......
***.cpp:495:33:   required from here
  495 |                         std::string key = fmt::format("{}-{}", code.c_str(), position->position_direction);
/git/spdlog/include/spdlog/fmt/bundled/base.h:2235:45: error: ‘fmt::v11::detail::type_is_unformattable_for<XTP_POSITION_DIRECTION_TYPE, char> _’ has incomplete type
 2235 |     type_is_unformattable_for<T, char_type> _;
@gabime
Copy link
Owner

gabime commented Feb 2, 2025

Please provide code to reproduce and compiler info

@shilkazx
Copy link
Author

shilkazx commented Feb 3, 2025

Please provide code to reproduce and compiler info

I'm sorry that I'm not a c++ expert/daily user, and I'd not use spdlog before. So I need more time to study and write a POC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants