属性-配置属性-c/c++-代码生成-运行库:多线程(/MT)
然后会发生一些诸如:
LNK2001 无法解析的外部符号 __except_handler4_common msvcrt.lib
LNK2001 无法解析的外部符号 __imp__strstr
等问题。
__except_handler4_common:
The error message is actually saying the the function __except_handler4
, defined in MSVCRT.LIB, references the undefined symbol __except_handler4_common
. So it's not your code that's making the this reference, it's Visual Studio 2015's code.
The symbol __except_handler4_common
is defined in vcruntime.lib. This file should be automatically be linked in. I'm not sure why it was