You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This problem occurs in the latest master, since the change where the printf function declarations were pulled out into a separate header (fmt/printf.h).
In trying to use the fmt::printf function in header-only mode (by defining FMT_HEADER_ONLY), I get the following error (using clang on OS X):
format.cc:507:10: error: out-of-line definition of 'fprintf' does not match any declaration in namespace 'fmt'
The problem is that while fmt/printf.h provides the required declaration, format.cc ends up being included before the declaration via fmt/format.h (which is included near the top of fmt/printf.h).
I tried to work a fix but anything I come up with ends up being quite complicated. Hopefully there's a simple solution for this.
The text was updated successfully, but these errors were encountered:
This problem occurs in the latest master, since the change where the printf function declarations were pulled out into a separate header (
fmt/printf.h
).In trying to use the
fmt::printf
function in header-only mode (by definingFMT_HEADER_ONLY
), I get the following error (using clang on OS X):The problem is that while
fmt/printf.h
provides the required declaration,format.cc
ends up being included before the declaration viafmt/format.h
(which is included near the top offmt/printf.h
).I tried to work a fix but anything I come up with ends up being quite complicated. Hopefully there's a simple solution for this.
The text was updated successfully, but these errors were encountered: