场景:
1.vs2010在Release模式下链接使用第3方库时出现以下错误,第3方并没有源代码,所以这个问题并不能重新以新的编译器编译.
LINK : fatal error C1047: The object or library file 'A.lib' was created with an older compiler
than other objects; rebuild old objects and libraries
临时解决办法:
" Release模式下->属性->常规->项目默认值->全程序优化->使用链接时间代码生成:::->无全程序优化
I solved the problem by turning off all optimisation in release configuration
网上找了比较久解决方案,参考了以下的,能解决: