Visual Studio 2008 does not create the .exe file when creating my project. any ideas why?

I am new to visual studio and cannot find anything on Google about this. I know this is an extremely Nubian question, but I can not find any information for him.

debugging shows me everything that I write, and the assembly has no errors, so I know that the code that I write is beautiful.

the release folder does not contain .exe, even after it is built, restored, cleaned, etc.

This is a win 32 console project. The release folder contains the .obj files, manifest, build log, idb, pch and pdb files (one at a time)

+4
source share
6 answers

Some possible reasons:

  • Have you accidentally created a class library project? In this case, the output will be a DLL, not an EXE.
  • Does the output window or error list display assembly errors? In this case, you must first correct them and then create them again.
  • Have you changed the project configuration so that the output (exe) is created in a different folder than the default?
+4
source

There are not many reasons why people are wondering ... You said that you can find the build log - there will be the exact location of any output file. To make sure that you see the correct assembly log file, the output window in VS will have a link to the file created by the particular assembly creation:

1>Build log was saved at "file://c:\DevTrees\cppTest\Debug\BuildLog.htm" 1>cppTest - 0 error(s), 2 warning(s) 

If you have trouble interpreting it, post the content.

+4
source

I had the same problem; the advice given above to look at the output window was exactly what I needed - thanks. My confusion was that I looked in solution> project> Debug when VS put it in solution> Debug.

+3
source

The Release and Debug folders contain output from various build configurations.

If you look in the project properties, in the "Assembly" section you will see the "Output folder" option, and it will be different for each configuration. (You can see the settings for each configuration using the drop-down list at the top of the Project Properties window).

The Release folder will be filled only when creating the project in the Release configuration.

To go to the Release configuration, use the drop-down list on the toolbar.

EDIT . I am describing an interface for C # projects. This may be different for native code.

+1
source

Are you sure your type of project is correct? The class library project will not create an executable file. To create an executable file, there must be some kind of application project.

0
source

I had the same problem. The compilation went fine, but there was no .exe in the destination folder. (. \ Debug).

The problem was that the file containing the main () function was called "FooProject.cpp". I renamed it to "main.cpp" and then .exe was generated correctly .

In other IDEs, such as the Eclipse CDT, you do not need to have your main file named main.cpp if you have the correct main () function. This obviously does not apply to Visual C ++.

-one
source

All Articles