简体   繁体   English

没有编译的可执行文件

[英]No compiled executable

I was playing around with DirectX SDK and made a small test app. 我在玩DirectX SDK,并制作了一个小型测试应用程序。 It has a very high CPU usage on my laptop where I made it and I wanted to try it on my PC. 在我生产笔记本电脑的笔记本电脑上,它具有很高的CPU使用率,因此我想在PC上进行尝试。 I went to the Debug folder but there was no executable inside the folder only .obj files and .tlog files. 我去了Debug文件夹,但是文件夹中只有.obj文件和.tlog文件,没有可执行文件。 I tried running a release compilation but that didn't change the situation - still no executable. 我尝试运行发行版编译,但这并没有改变情况-仍然没有可执行文件。

Am I doing something wrong or am I missing something? 我做错了什么还是错过了什么?

You're looking in the wrong folder. 您正在寻找错误的资料夹。 Do a search starting at the solution level (not project), or else take a closer look at the build output or project properties; 从解决方案级别(不是项目)开始进行搜索,或者仔细查看构建输出或项目属性; both of those contain the real path. 两者都包含真实路径。

If you're used to one of the other Visual Studio languages, like C#, be aware that C++ uses a different directory structure. 如果您习惯使用其他Visual Studio语言(例如C#),请注意C ++使用不同的目录结构。

By default 默认

  • In C#, the exe is under $(Project)\\bin\\Release . 在C#中,exe在$(Project)\\bin\\Release
  • In C++, it's under $(Solution)\\Release 在C ++中,它位于$(Solution)\\Release

Of course, this can be changed in the project properties to go absolutely anywhere at all. 当然,可以在项目属性中将其更改为完全不存在任何位置。 Inspecting the build log after "Rebuild All" is the surest way to find all the files. 在“全部重建”之后检查构建日志是找到所有文件的最可靠方法。

要找到已编译的.exe文件的确切位置,请在Visual Studio上打开输出窗口,并在构建它后看到exe的确切路径。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM