-
Hello i just started using spdlog and run into a strange issue.
but if i call it with an argument as follows:
it all works and no linker error. I am a bit at a loss here what the reason for this could be. Any hint would be welcome Thanks a lot. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
When spdlog/include/spdlog/logger.h Lines 91 to 94 in 0613dbc However, in the link error message, |
Beta Was this translation helpful? Give feedback.
-
yes i was sure that i am missing something. The trick in the end was as i am using fmt also as a package to a) to put fmt first to be loaded by CPM.cmake as dependency before spdlog and No more linker errors. I guess there must have been some conflict concerning the fmt lib Thanks for your reply in any case |
Beta Was this translation helpful? Give feedback.
yes i was sure that i am missing something. The trick in the end was as i am using fmt also as a package to
a) to put fmt first to be loaded by CPM.cmake as dependency before spdlog and
b) set the SPDLOG_FMT_EXTERNAL flag.
No more linker errors. I guess there must have been some conflict concerning the fmt lib Thanks for your reply in any case
Have a good day.