我们的团队正在将整个基线从 VS2008 迁移到 VS2012。有超过 400 个 C++ 项目。有 6 个 C++ 项目显示连线错误,例如:
1>------ Rebuild All started: Project: SSLT, Configuration: Release Win32 ------
1> stdafx.cpp
1> ???
1>c1xx : fatal error C1083: Cannot open source file: '???': No such file or directory
1> ??????????????????????????????
1>c1xx : fatal error C1083: Cannot open source file: '??????????????????????????????': No such file or directory
All files which are the parameters of cl.exe seems in wrong encoding, and cl.exe can't find them.
Firstly, i think it must be encode issues of .vcxproj, so i save as other encoding style. But still happens.
Then i re-upgrade these projects with such issue, but always build error.
最后我把项目平台工具集改回VS2008,然后build pass。所以我认为这不是因为项目文件编码格式。我不知道他们在使用 2012 编译器时有什么问题。这些项目使用 2008 编译器构建没有错误。我从 VS2010 了解到,项目格式发生了很大变化,所以我找不到任何线索。