在Visual Studio 2010中编译C不创建.EXE文件 [英] Compiling C in Visual Studio 2010 Not Creating .EXE File
问题描述
我可以在Visual Studio 2008中调试一个C程序并构建它。但是,构建过程似乎不会在它建立的文件夹中留下.exe。无论我选择释放还是调试。 .exe可以发送到别的地方吗?
I'm able to debug a C program in Visual Studio 2008 and build it. However, the build process doesn't seem to leave an .exe in the folder it builds in. Regardless of if I choose Release or Debug. Could the .exe be sent somewhere else? How can I tell?
项目主文件夹下Debug文件夹的内容:
cl.command.1.tlog
CL.read.1.tlog
CL.write.1.tlog
ConsoleApp.Build.CppClean.log < br>
ConsoleApp.exe.embed.manifest
ConsoleApp.exe.embed.manifest.res
ConsoleApp.exe.intermediate.manifest
ConsoleApp.lastbuildstate
ConsoleApp.log
ConsoleApp.obj
ConsoleApp_manifest.rc
link-cvtres.read.1.tlog < br>
link-cvtres.write.1.tlog
link.1504-cvtres.read.1.tlog
link.1504-cvtres.write.1。 tlog
link.1504.read.1.tlog
link.1504.write.1.tlog
link.command.1.tlog
link.read.1.tlog
link.write.1.tlog
mt.command.1.tlog
mt.read。 1.tlog
mt.write.1.tlog
rc.command.1.tlog
rc.read.1.tlog
rc.write.1.tlog
stdafx.obj
vc100.idb
vc100.pdb
Contents of the Debug folder under the main folder of the project:
cl.command.1.tlog
CL.read.1.tlog
CL.write.1.tlog
ConsoleApp.Build.CppClean.log
ConsoleApp.exe.embed.manifest
ConsoleApp.exe.embed.manifest.res
ConsoleApp.exe.intermediate.manifest
ConsoleApp.lastbuildstate
ConsoleApp.log
ConsoleApp.obj
ConsoleApp_manifest.rc
link-cvtres.read.1.tlog
link-cvtres.write.1.tlog
link.1504-cvtres.read.1.tlog
link.1504-cvtres.write.1.tlog
link.1504.read.1.tlog
link.1504.write.1.tlog
link.command.1.tlog
link.read.1.tlog
link.write.1.tlog
mt.command.1.tlog
mt.read.1.tlog
mt.write.1.tlog
rc.command.1.tlog
rc.read.1.tlog
rc.write.1.tlog
stdafx.obj
vc100.idb
vc100.pdb
推荐答案
右键单击项目节点并打开属性页: -
Right click the project node and open the property page:-
在配置属性中的常规节点中。
您将看到两个字段: -
In General node in Configuration Properties.
There you'll see two fields:-
- 输出目录
- 目标扩展程序。
如果目标扩展名是.exe,那么事情就好了。
查看Output DIrectory,你会找到可执行文件。
编辑: - 你看错了地方。
你必须看这里(一个例子): -
- You are looking at wrong place. You have to see here (an example):-
C:\Documents and Settings\USER\My Documents\Visual Studio 2010\Projects\C\The_c\Debug
您在这里看到了
C:\Documents and Settings\USER\My Documents\Visual Studio 2010\Projects\C\The_c\The_c\Debug
这是当前目录之上的两个目录。
That is two directory above the present directory.
这篇关于在Visual Studio 2010中编译C不创建.EXE文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!