Originally Posted by fob500
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.