简体   繁体   English

Visual Studio 2015 可以编译和运行,但我在 Release/ 和 Debug/ 中都找不到 .exe

[英]Visual Studio 2015 can compile and run but I can't find .exe in both Release/ and Debug/

Today I code as usual.今天我像往常一样编码。 Everything seems to go well in Visual Studio 2015. It can compile and run the program successfully in VS2015.在 Visual Studio 2015 中似乎一切顺利,在 VS2015 中可以成功编译和运行程序。 However, when I go to the Debug/ dir, I can't find .exe file, all I can see are below:但是,当我转到Debug/目录时,我找不到.exe文件,我只能看到以下内容:

在此处输入图片说明

It seems that the VS2015 can't link these .obj to create a .exe file, while I have no idea how to fix it. VS2015 似乎无法链接这些.obj来创建.exe文件,而我不知道如何修复它。 Is there anyone who can help?有没有人可以帮忙? Thx in advance.提前谢谢。

You should right click on your main Visual C++ project in Visual Studio, select Properties, and check the Output Directory property on the General page.您应该在 Visual Studio 中右键单击您的主要 Visual C++ 项目,选择属性,然后检查常规页面上的输出目录属性。 Also don't forget to check your build configuration and platform (eg Debug, x64) on the top of the settings page, as by the default settings those affect the output directory.另外不要忘记在设置页面的顶部检查您的构建配置和平台(例如调试、x64),因为默认设置会影响输出目录。

Visual C++ Project Settings Screenshot Visual C++ 项目设置屏幕截图

I had the same problem.我有同样的问题。 The exe is in a different "debug" folder, that is in the parent folder. exe 位于不同的“调试”文件夹中,即在父文件夹中。

As in, when I right-click on the project in visual studio and select "show in folder", it opens source\\repos<projectname><projectname> and in there is the .cpp file and a debug folder.就像,当我在 Visual Studio 中右键单击项目并选择“在文件夹中显示”时,它会打开 source\\repos<projectname><projectname> 并且其中有 .cpp 文件和调试文件夹。 But this is not the debug folder you are looking for.但这不是您要查找的调试文件夹。

Go to up a folder to sources\\repos<projectname> theres another debug folder there that contains the exe转到文件夹到 sources\\repos<projectname> 那里有另一个包含 exe 的调试文件夹

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

相关问题 如何使用Visual Studio 2015创建一个可以从我的桌面运行的.exe - How to create a .exe with visual studio 2015 that I can run from my desktop 虚幻引擎4.10.1无法编译Visual Studio 2015项目 - Unreal Engine 4.10.1 can't compile Visual Studio 2015 project Visual Studio 2015甚至无法编译Hello World程序 - Visual studio 2015 can't compile even Hello World program 如何使用 Visual Studio 2015 正确调试 MFC 容器 - How can i debug MFC container properly with visual studio 2015 如何解决 Visual Studio 2015 中的此编译错误? - How can I resolve this compile error in Visual Studio 2015? 我无法在 Visual Studio 2010 中编译 - I can't compile in Visual Studio 2010 在Visual Studio 2015中找不到C ++的模板 - Can't find template for C++ in Visual Studio 2015 Visual Studio 2015 C ++解决方案无法在系统PATH中看到svn exe - Visual Studio 2015 C++ solution can't see svn exe in system PATH 我可以在 Visual Studio 2012 中编译和调试(运行)单个 C++ 文件吗? (如何避免创建过多的项目) - Can I compile and debug (run) a single C++ file in Visual Studio 2012? (How to avoid creating too many projects) Visual Studio 2015 社区 - 未找到函数定义但可以编译 - Visual Studio 2015 community - Function definition not found but can compile
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM