Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to build exe in Visual Studio C++

I am a .NET C# developer and trying to learn C++.

I am having issues in trying to create an exe from a console app from Microsoft Visual Studio when I do a build compile and check the Debug folder. There isn't any exe, just some manifest files and other files. I am asking this because I am not sure if this is how it works? is there any another way of doing this?

I have tried the Microsoft Visual Studio console and c:\cl test.cpp, this gives me an test.exe but can it be done from the MSVS GUI like in C#?

like image 437
newandfresh Avatar asked Dec 02 '10 13:12

newandfresh


People also ask

How do I create an executable in Visual Studio?

To build your program and create teh executable file choose Build My Project.exe from the Build menu - "My Project" represents teh name you chose for your project and the extension ".exe" is used to designate that the file being created will be an executable file.

How is .EXE file created in C#?

Next step is for making exe file. Go to → Solution explorer → Right click on your project → Properties. One Project window will display like below. Click on application tab and set your application name icon etc.

Can you program C in Visual Studio?

The Visual Studio build tools include a C compiler that you can use to create everything from basic console programs to full Windows Desktop applications, mobile apps, and more.


1 Answers

Have you checked the debug folder at the solution level? I believe this is the default target directory. The DEBUG folder in the project is for the output of temporary build files.

like image 181
Nick Avatar answered Oct 05 '22 05:10

Nick