1.

Solve : How to convert .cpp to .exe?

Answer»

Hi I am wondering if there is a WAY to convert .cpp to .exe using c++ code,
if not can you give me a link to a program that can do it for me?

thanks in ADVANCE,

batchmaster60um... no


there is NOTHING that converts a CPP to an executable. not even a C++ compiler does that.
a compiler turns the CPP source into an object file, which is then linked with the C runtime as well as any other object files that comprise the program, into the final executable.

there is no way to do this directly through code unless you WRITE a C++ compiler and a Linker.

you could, however, USE the SYSTEM() command to INVOKE the compiler and linker for the file.could you give me an example?



Discussion

No Comment Found