You are here:

C/exe file of c++ program

Advertisement


Question
how can we create an exe file of a c++ program which can run without c++ compiler also?

Answer
Your C++ compiler will create an exe file. Once you have the exe file, you can run it on any compatible computer. You no longer need the compiler. If you change your C++ code, then you will need the compiler again to create a new exe file.

The compiler never runs the program. The compiler makes an exe and it is the exe which runs.

Look for the exe file in the directory of your source code or in a Debug or Release sub-directory. Where the exe is depends on which compiler you are using, so I cannot say for certain where you will find it. You will have to look around.

Best regards
Zlatko

C

All Answers


Answers by Expert:


Ask Experts

Volunteer


Zlatko

Expertise

No longer taking questions.

Experience

No longer taking questions.

Education/Credentials
No longer taking questions.

©2012 About.com, a part of The New York Times Company. All rights reserved.