Closed SlavaC1 closed 1 year ago
The first symbols is defined in https://github.com/fmtlib/fmt/blob/13156e54bf91e44641ce3aac041d31f9a15a8042/include/fmt/format-inl.h#L101
and similarly for other symbols. Please provide a repro, ideally on godbolt.
Thanks for the reply. I saw the file you've mentioned, but wanted to understand some concepts to make sure I'm not missing something.
I intent to use fmt bundled with spdlog as part of spdlog. I intent to use it "headers only", in my understanding no cpp files need to be included in the project or compiled. I just need to include the headers like so:
#define SPDLOG_HEADER_ONLY
#define FMT_HEADER_ONLY
#include <spdlog/common.h>
#include <spdlog/spdlog.h>
#include <spdlog/async.h>
#include <spdlog/logger.h>
#include <spdlog/fmt/xchar.h>
#include <spdlog/fmt/bundled/printf.h>
#include <spdlog/sinks/rotating_file_sink.h>
#include <spdlog/sinks/stdout_color_sinks.h>
On Windows x64 everything compiles and runs without problems. On Mac unfortunately, I'm getting the errors above when compiling with XCode 13 for arm64 and x64.
Can't provide a repo unfortunately because our project is not on github.
I wasn't able to repro the issue on Mac and not familiar with spdlog bundling mechanism to comment whether you are using it correctly.
I'm getting following errors when building on Mac with XCode for M1 and x86_64: