【发布时间】:2014-10-07 16:22:47
【问题描述】:
我想在 windows 7、visual studio 2010 中使用编译 cpp 源文件
Microsoft (R) C/C++ Optimizing Compiler Version 16.00.40219.01 for x64
当我执行以下操作时
>cl /EHs main.cpp -o test
我明白了
cl : Command line warning D9035 : option 'o' has been deprecated and will be removed in a future release
好吧,很公平。我已经检查了这个页面/Fe (Name EXE File)。这个选项对我不起作用。它给了我这个错误
cl : Command line warning D9024 : unrecognized source file type 'test', object file assumed
main.cpp
Microsoft (R) Incremental Linker Version 10.00.40219.01
Copyright (C) Microsoft Corporation. All rights reserved.
/out:main.exe
main.obj
test
LINK : fatal error LNK1181: cannot open input file 'test.obj'
现在我应该如何激活这个选项?我总是觉得难以阅读MSDN Library。这根本不友好。
【问题讨论】:
标签: c++ visual-studio-2010 compiler-construction windows-7 exe