getting exe in linux

Hi,
can we get exe in linux after compiling the cpp program. AS far I know when we
compile cpp program through g++ we always make binary .Please coorect me if I am wrong.

executable files don't have an extension on linux ( eg: you have "program", not "program.exe" )
with g++ you can get various types of output, usually you get the compiled and linked program
be specific and adding one more question in this thread

Can we get exe in linux as we get in windows after compile program

Can you provide some info about the compilation program
That's no less ambiguous. My English compiler is spewing errors left and right.

Anyways... if you're trying to make an .exe program in Linux rather than a Unix executable, then I don't think GCC will let you do it. However if you compile MinGW on Linux... apprently you can compile GCC on GNU/Linux to work as a cross compiler for Windows.

-Albatross
Last edited on
You can build GCC as a cross compiler
btw if you compile a program for Linux, the output won't end ind ".exe"
Last edited on
However if you compile MinGW on Linux...
what do you mean?
Ah, indeed? You can make GCC output .exe files? Okay... I should do that myself...

-Albatross
I think you'd have to build it from source using a custom configuration
AFAIK, MinGW is just GCC + WINAPI
Topic archived. No new replies allowed.