aoss
aoss

Reputation: 27

c++ source code to exe

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.

Upvotes: 1

Views: 10027

Answers (5)

AmbiguousX
AmbiguousX

Reputation: 1704

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!

Upvotes: 2

Flinsch
Flinsch

Reputation: 4341

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. ;)

Upvotes: 3

moinudin
moinudin

Reputation: 138357

Detailed list

GCC is recommended. MinGW for Windows port.

Upvotes: 4

SLaks
SLaks

Reputation: 887469

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

Upvotes: 2

JooMing
JooMing

Reputation: 932

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

Upvotes: 6

Related Questions