newandfresh
newandfresh

Reputation: 309

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#?

Upvotes: 20

Views: 58538

Answers (2)

Madhur Ahuja
Madhur Ahuja

Reputation: 22661

Did it compile successfully ? Also, check your active configuration if its debug or Release ?

Also, check the output path to double check the location of executable.

It works the same as C#, so there is no need for command line.

Upvotes: 2

Nick
Nick

Reputation: 25799

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.

Upvotes: 26

Related Questions