error LNK2038: mismatch detected for 'annotate_string': value '0' doesn't match value '1'
错误原因:
一些依赖库没有启用Address Sanitizer,要么全部启用,要么在所有工程定义如下宏:
Standard container type | Disable annotations macro | Supported in version |
---|---|---|
std::vector | _DISABLE_VECTOR_ANNOTATION | Visual Studio 2022 17.2 |
std::string | _DISABLE_STRING_ANNOTATION | Visual Studio 2022 17.6 |
参考链接: