technomage
technomage

Reputation: 525

Cross compile using GNU as to Windows executable from Linux box

Is there anyway to tell GNU as to generate Windows PE executable file from Linux? I know you can use Cygwin or MingW,but sometime I don't have access to windows machine.

Upvotes: 1

Views: 529

Answers (1)

Gunther Piez
Gunther Piez

Reputation: 30419

You need a toolchain targetting Windows and hosted on Linux.

Such things do exist, look at http://sourceforge.net/apps/trac/mingw-w64/wiki/download%20filename%20structure for intance. You will need something like `mingw-w64-bin_x86_64-linux*`` for a mingw targeting Win64 and hosted on Linux x86_64.

Upvotes: 1

Related Questions