简体   繁体   中英

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. However, when I go to the Debug/ dir, I can't find .exe file, all I can see are below:

在此处输入图片说明

It seems that the VS2015 can't link these .obj to create a .exe file, while I have no idea how to fix it. 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. 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.

Visual C++ Project Settings Screenshot

I had the same problem. The exe is in a different "debug" folder, that is in the parent folder.

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. 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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