大家好:
系统为xp64位英文版。
先前装有vs2008。现安装vs2010 beta2,全部安装,没有排除vc x64选项。安装一切顺利。
安装完成后进行简单的编译测试。代码如下。
auto i = 0;
cout<<i<<endl;
分别进行32位编译和64位编译。
32位错误如下:
1>------ Build started: Project: Test, Configuration: Debug Win32 ------
1>Build started 1/18/2010 2:22:36 PM.
1>_PrepareForBuild:
1> Touching "Debug\Test.unsuccessfulbuild".
1>ClCompile:
1> Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86
1> Copyright (C) Microsoft Corp 1984-1998. 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 10.00.21003.01
1> Copyright (C) Microsoft Corporation. All rights reserved.
1>
1> /out:?.exe
1> ?
1>LINK : fatal error LNK1104: cannot open file '?.exe'
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:00.09
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
64位错误如下:
1>------ Build started: Project: Test, Configuration: Debug X64 ------
1>Build started 1/18/2010 2:23:02 PM.
1>_PrepareForBuild:
1> Touching "X64\Debug\Test.unsuccessfulbuild".
1>ClCompile:
1> Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86
1> Copyright (C) Microsoft Corp 1984-1998. 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 10.00.21003.01
1> Copyright (C) Microsoft Corporation. All rights reserved.
1>
1> /out:?.exe
1> ?
1>LINK : fatal error LNK1104: cannot open file '?.exe'
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:00.06
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
切换用户后,重新进行测试及编译,错误如下。
32位
1>------ Build started: Project: AutoKeywordTest, Configuration: Debug Win32 ------
1> Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86
1> Copyright (C) Microsoft Corp 1984-1998. 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 10.00.21003.01
1> Copyright (C) Microsoft Corporation. All rights reserved.
1>
1> /out:
1> ?.exe
1>LINK : fatal error LNK1146: no argument specified with option '/out:'
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
64位
1>------ Build started: Project: AutoKeywordTest, Configuration: Debug X64 ------
1> Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86
1> Copyright (C) Microsoft Corp 1984-1998. 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 10.00.21003.01
1> Copyright (C) Microsoft Corporation. All rights reserved.
1>
1> /out:
1> ?.exe
1>LINK : fatal error LNK1146: no argument specified with option '/out:'
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
还望大牛赐教。