-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Conflict with fmt #2872
Comments
This was referenced Aug 31, 2023
Since it is not an fmt bundled with spdlog, spdlog appears to be irrelevant. |
Do not include headers from the same library in multiple locations.
|
What if I need to use both spdlog and fmt/ostream.h? |
Use |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
#include
#include
#include "spdlog/fmt/bundled/format.h"
#include "fmt/ostream.h"
int main() {
printf("OK");
return 0;
}
This code can not be compiled. The errors are
/usr/local/include/fmt/ostream.h:158:1: error: 'FMT_EXPORT' does not name a type
158 | FMT_EXPORT template
| ^~~~~~~~~~
/usr/local/include/fmt/ostream.h:177:1: error: 'FMT_EXPORT' does not name a type
177 | FMT_EXPORT template <typename... T>
| ^~~~~~~~~~
/usr/local/include/fmt/ostream.h:186:1: error: 'FMT_EXPORT' does not name a type
186 | FMT_EXPORT
| ^~~~~~~~~~
/usr/local/include/fmt/ostream.h:194:1: error: 'FMT_EXPORT' does not name a type
194 | FMT_EXPORT template <typename... T>
| ^~~~~~~~~~
/usr/local/include/fmt/ostream.h:199:1: error: 'FMT_EXPORT' does not name a type
The text was updated successfully, but these errors were encountered: