linux 安装spdlog后编译报错/usr/bin/ld: /tmp/cc61Oz0T.o: in function `std::make_unsigned::type fmt::v8::detail::to_unsigned(int)':
这是spdlog库安装后编译代码报错的典型问题。
pkg-config spdlog --cflags
和pkg-config spdlog --libs
检查头文件和库是否存在。#include "spdlog/spdlog.h"替代#include <spdlog/spdlog.h>
。