1

Is it possible to convert c++ source code to exe file...if yes please let me know the open source software which i can use for the same.

2
  • 4
    Sure! You pay me $1000 to do it. I will perform some magical incantations and your code will be transformed. NOTE: I only guarantee success if your code is compilable with a standard compliant C++ compiler and I do not make any statement or guarantee about the usability of the resulting transformation, only that it will be an exe (AND it will be in EXE format, not just renamed). Commented Dec 29, 2010 at 17:48
  • I'll lowball the bidding and do it for $600US. Commented Dec 29, 2010 at 18:51

5 Answers 5

6

Yes, you can use GNU C++ compiler: http://gcc.gnu.org/

Sign up to request clarification or add additional context in comments.

4 Comments

i want to compile my program from dos emulator...and for that my program needs to be in executable format...thats why i want to convert my source code to exe file
OK; you're still looking for a compiler.
@aoss You don't need to compile it in dos to make the executable run in dos.
People still use DOS? I thought we'd hunted down all those responsible and those still using it, and executed them all by firing squad.
4

Detailed list

GCC is recommended. MinGW for Windows port.

Comments

3

You are looking for an open-source C++ compiler. A compiler (e.g. GNU) is exactly what you want to have: "Transforming" C++ source code to a binary executable file. ;)

Comments

2

You're looking for a compiler, such as GCC.

Comments

2

They're right, you don't need to compile your program in DOS to run the .exe file in DOS. I use jGrasp for my C++ development.

Here is the link to download jGrasp (Click "Download jGrasp" on the right of the screen).

Some like DevC++, in which case here is the direct link that should start the download of DevC++.

Regardless of which you choose, you can develop your program in either environment, compile it (which produces your .exe file), then you can run it from within the environment, OR if you'd rather you can run it from the DOS prompt by going into the folder (from within DOS) that contains your project (where the compiler should have produced your .exe file) and typing in "a.exe" then click enter.

This is how you do it if you compiled in jGrasp, I know. I haven't developed in DevC++, but I assume it is similar, if not the same.

Hope this helps!

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.