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

service_template fmt::join build error on MacOS #689

Open
tkhanipov opened this issue Sep 5, 2024 · 2 comments
Open

service_template fmt::join build error on MacOS #689

tkhanipov opened this issue Sep 5, 2024 · 2 comments

Comments

@tkhanipov
Copy link

I followed the tutorial but got compilation error, see https://stackoverflow.com/questions/78935510/no-member-named-join-in-namespace-fmt#comment139204286_78935510

@shad0w-jo4n
Copy link

shad0w-jo4n commented Oct 7, 2024

I have the same issue after updating toolchain to 15 version:

./cmake-build-release/_deps/userver-src/universal/include/userver/utils/traceful_exception.hpp:52:25: error: no member named 'back_inserter' in namespace 'std'
   52 |     fmt::format_to(std::back_inserter(ex.GetMessageBuffer()), "{}", data);

I tried to fix it manually, then:

cmake-build-release/_deps/userver-src/universal/include/userver/utils/checked_pointer.hpp:52:5: error: no member named 'abort' in namespace 'std'; did you mean simply 'abort'?
   52 |     std::abort();

And etc.

@Basiliuss
Copy link
Contributor

Adding missing #include <fmt/ranges.h> in ~10 files helped in my case.

robot-piglet pushed a commit that referenced this issue Oct 22, 2024
Added missing `#include <fmt/ranges.h>`. Without them the build on macOS fails with multiple `error: no member named 'join' in namespace 'fmt'`.

Issue: #689

Tests: протестировано CI

Pull Request resolved: #720
commit_hash:12f2d7b53b5b29e186fe8232fc638be5ff167779
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

3 participants