在本地命令提示符下使用vc ++命令编译链接并运行exe [英] compiling linking and running exe using vc++ commands from native command prompt

查看:114
本文介绍了在本地命令提示符下使用vc ++命令编译链接并运行exe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我试图从本机命令提示符而不是vc ++命令提示符下使用vc ++命令(CL.exe)编译c ++/c程序.我为以下路径设置了路径...



i am trying to compile c++/c programs using vc++ commands (CL.exe) from native command prompt instead of vc++ command prompt. i did path setting for the following paths......

Path:
C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin
C:\Program Files\Microsoft Visual Studio 9.0\VC\bin
C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE

Include:
C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include
C:\Program Files\Microsoft Visual Studio 9.0\VC\include
C:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\include

lib:
C:\Program Files\Microsoft SDKs\Windows\v6.0A\Lib
C:\Program Files\Microsoft Visual Studio 9.0\VC\lib



但是我仍然在使用includeoptions/I时面临问题...

--->在为上述文件设置路径之后,我可以运行小的c语言程序以及链接并生成的.exe.

如何从本机命令提示符下运行生成的.exe.

请建议我............



but still i am facing facing problem while using includeoptions /I.....

---> after setting paths for above files i am able to run small addition c program and an linked and generated .exe .

how to run this generated .exe from native command prompt .

please suggest me ............

推荐答案

如果使用Visual Studio构建项目,则可以从项目中检查命令行特性.只需复制您看到的内容,然后在命令行中运行它即可.然后,您可以通过在命令提示符下键入其名称来以相同的方式运行该程序.
If you use Visual Studio to build a project you can check the command line from the project properties. Just copy what you see and run it at the command line. You then run the program the same way by typing its name at the command prompt.


这篇关于在本地命令提示符下使用vc ++命令编译链接并运行exe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆