一、fatal error LNK1295: '/OPT:NOREF' not compatible with '/LTCG:incremental' specification; link without '/LTCG:incremental'函数
Properties -> General -> Whole Program Opt -> "No Whole Program Opt"spa
二、error LNK2019:unresolved external symbol __imp__fprintf referenced in function _ShowError ci
Properties -> Linker -> Input -> Additional Dependencies -> 添加 “legacy_stdio_definitions.lib;” rem
//出现这个问题的缘由是vs2015默认编译时将许多标准库采用内联方式处理,于是没有能够连接的标准库文件,因此要专门添加标准库文件来连接标准库中的函数。it
三、error LNK2019: unresolved external symbol __imp____iob_func referenced in function _ShowErrorio
在源文件中添加: extern "C" { FILE __iob_func[3] = { *stdin,*stdout,*stderr }; }编译