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.
- 4Sure! 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).Edward Strange– Edward Strange2010-12-29 17:48:00 +00:00Commented Dec 29, 2010 at 17:48
- I'll lowball the bidding and do it for $600US.Zac Howland– Zac Howland2010-12-29 18:51:55 +00:00Commented Dec 29, 2010 at 18:51
5 Answers
Yes, you can use GNU C++ compiler: http://gcc.gnu.org/
4 Comments
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
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!