fob500's Avatar, Join Date: Jul 2009
Go4Expert Member
I guess what I would be interested to know is that if there is any Program which can convert source code(in any language) into an exe file.Plz ignore if not relevant to the current thread.Any help would be appreciated
xpi0t0s's Avatar, Join Date: Aug 2004
Mentor
Quote:
Originally Posted by fob500 View Post
Ok so the problem now is that I have a running program on windows box so how do I go about getting an .exe file.When I compile it on windows the output file is it an object or exe file ?
Huh? If you've got a running program then you must have an exe file.

When you compile on ANY platform the result is an object file. Executable files are ONLY generated by linkers. Confusing the matter somewhat is the fact that many IDE's perform a one step build, compiling and linking without requiring separate commands from the user (and for Visual Studio it'll compile, link and start the program with the debugger all with one key). Also to confuse newbs is the fact that people often say compile as shorthand for "compile and link". But get it clear in your mind:

source code -> compile -> object code

object code + libraries -> linker -> executable.
fob500's Avatar, Join Date: Jul 2009
Go4Expert Member
Quote:
Originally Posted by xpi0t0s View Post
Huh? If you've got a running program then you must have an exe file.

When you compile on ANY platform the result is an object file. Executable files are ONLY generated by linkers. Confusing the matter somewhat is the fact that many IDE's perform a one step build, compiling and linking without requiring separate commands from the user (and for Visual Studio it'll compile, link and start the program with the debugger all with one key). Also to confuse newbs is the fact that people often say compile as shorthand for "compile and link". But get it clear in your mind:

source code -> compile -> object code

object code + libraries -> linker -> executable.
Alrighte that was helpfull.Thanks
anir_n's Avatar, Join Date: May 2010
Newbie Member
you can use the build funtion in any compiler like MS visual C++.
select C source file as file option
compile the C program and then buil it (clt+F7 then F7)
the .exe file will be present in the debug folder where the project file is located.
there are other linkers preent just google
subhra44's Avatar, Join Date: May 2010
Newbie Member
Quote:
Originally Posted by shabbir View Post
You are asking how to goto step2 when you have a big issue with step1.

If you have an exe I can tell you how to make an installer but unless you have an exe it would be of no help.
how can i make installer from a exe file??