【发布时间】:2012-03-25 19:56:31
【问题描述】:
我尝试将 Visual C++ 2005 的(工作)平台工具集的副本添加到 C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\PlatformToolsets\v71,替换所有有道理。
但是当我尝试编译我的项目时,输出结果令人失望:
1> Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.6030 for 80x86
1> Copyright (C) Microsoft Corporation 1984-2002. All rights reserved.
1>
1> cl ÿþ/
1>
1>cl : Command line warning D4024: unrecognized source file type 'ÿþ/', object file assumed
1> Microsoft (R) Incremental Linker Version 7.10.6030
1> Copyright (C) Microsoft Corporation. All rights reserved.
1>
1> /out:.exe
1> ■/
1>LINK : fatal error LNK1181: cannot open input file ' ■/.obj'
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
在我看来像是一个字符集问题,但有没有人让它工作?
【问题讨论】:
-
只是好奇...您是否启用了增量链接?
-
您是否确保所有来源对于该版本都是正确的?
-
@Aleks 存在一个针对 vs2003 的解决方案/vcproj 文件,并且可以正常编译。这不是源代码问题,肯定是编译器调用方式隐藏的。
-
在你的问题中你提到了“Visual C++ 2005”,但在标题中你提到了“Visual C++ 2003”。 (您问题中的版本号也指向 2003 年。)
标签: c++ visual-studio visual-c++ msbuild visual-studio-2003