-
Notifications
You must be signed in to change notification settings - Fork 173
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
Compile error on ubuntu: error: ‘format’ is not a constant expression #731
Comments
Thanks for the report, |
fmt (GNU coreutils) 8.32 libfmt8 8.1.1+ds1-2 |
Just got this testing on macOS on Sonoma.
I guess
Time to update the version check in |
I also get this after updating, so maybe a new issue to review
|
Which was fixed by:
|
I've having a compile error on ubuntu boxes while trying to compile a custom chat application.
The problem came from the
logger->warn("Public address changed: {}", addrs);
line inside thegetDhtConfig
method ( copied from dhtchat.cpp example )same error on ubuntu 21.04 and 22.04
Solved wrapping the format string in
fmt::runtime
to disable compile-time checksin logger.h file
changed this:
to this:
Don't now if this can cause problems, but now is compiling fine.
The text was updated successfully, but these errors were encountered: