[英]How do I compile C++ files from the command-line on Windows with VC++2008?
I'm curious to find a way to compile .cpp
files from the Windows command prompt. 我很好奇,想找到一种从Windows命令提示符下编译.cpp
文件的方法。 Is there a way to do so with Visual Studio? 有没有办法用Visual Studio做到这一点? The only compiler I've got is VC++2008. 我唯一拥有的编译器是VC ++ 2008。 So can I define VC++ to be my system's compiler? 那么我可以将VC ++定义为系统的编译器吗?
There is Visual Studio 2008 Command Prompt item under the start menu item All Programs -> Microsoft Visual Studio 2008 -> Visual Studio Tools . 在开始菜单项“ 所有程序”->“ Microsoft Visual Studio 2008”->“ Visual Studio工具”下,没有Visual Studio 2008命令提示符项。 It will launch a command prompt with the environment correctly configured to enable you to run cl.exe
, link.exe
, etc. 它将在正确配置环境的情况下启动命令提示符,以使您能够运行cl.exe
, link.exe
等。
Some useful links: 一些有用的链接:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.