Reputation: 21
Is it possible to compile a Win32 program on a Linux computer without the use of an emulator or Wine or anything?
Upvotes: 2
Views: 370
Reputation: 283614
Yes.
For more infomation, google "gcc crosscompile win32".
The first hit is Building a Cross compiler for Windows on Linux
Upvotes: 2
Reputation: 315
Yes it is possible, C++ was designed to compile the same code on multiple platforms, however take notice: if you have windows specific system calls/commands in your program they won't work on Linux and vice-versa.
Upvotes: -1
Reputation: 253
Yes, sure it is possible. You have to use a cross-compiler toolchain. You can find a good gcc cross toolchain both for 32 and 64 bit targets at the following address http://www.drangon.org/mingw/
Upvotes: 0