本文介绍了在Visual Studio 2010中编译C不创建.EXE文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我可以在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 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.pdbContents of the Debug folder under the main folder of the project:cl.command.1.tlogCL.read.1.tlogCL.write.1.tlogConsoleApp.Build.CppClean.logConsoleApp.exe.embed.manifestConsoleApp.exe.embed.manifest.resConsoleApp.exe.intermediate.manifestConsoleApp.lastbuildstateConsoleApp.logConsoleApp.objConsoleApp_manifest.rclink-cvtres.read.1.tloglink-cvtres.write.1.tloglink.1504-cvtres.read.1.tloglink.1504-cvtres.write.1.tloglink.1504.read.1.tloglink.1504.write.1.tloglink.command.1.tloglink.read.1.tloglink.write.1.tlogmt.command.1.tlogmt.read.1.tlogmt.write.1.tlogrc.command.1.tlogrc.read.1.tlogrc.write.1.tlogstdafx.objvc100.idbvc100.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文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
07-08 01:25