[英]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),因为默认设置会影响输出目录。
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.