fmtlog icon indicating copy to clipboard operation
fmtlog copied to clipboard

VS2022 编译报错

Open tiantianaixuexi opened this issue 1 year ago • 1 comments

1>ShineLibhv.cpp 1>G:\C++Project\ShineLibhv\third\include\fmtlog\fmtlog.h(595,32): error C2589: “(”:“::”右边的非法标记 1>G:\C++Project\ShineLibhv\third\include\fmtlog\fmtlog.h(598,1): message : 查看对正在编译的 类 模板 实例化“std::vector<fmt::v9::basic_format_argfmt::v9::format_context,std::allocator<fmt::v9::basic_format_argfmt::v9::format_context>>”的引用 1>G:\C++Project\ShineLibhv\third\include\fmtlog\fmtlog.h(721,2): message : 查看对正在编译的 类 模板 实例化“fmtlogT<__>”的引用 1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.35.32215\include\vector(497,5): fatal error C1903: 无法从以前的错误中恢复;正在停止编译

感觉是和 minwindef.h 的 max 宏冲突了

image

tiantianaixuexi avatar Apr 07 '23 05:04 tiantianaixuexi