Building GCC cross compiler (from “Linux” to “Windows”)

前端 未结 3 2017
野性不改
野性不改 2020-12-14 13:06

I want to build \"gcc cross-compiler\" to compile \"c/c++\" applications on \"Linux\" environment but for \"Windows\" target.

I have made this so far:

3条回答
  •  情歌与酒
    2020-12-14 13:20

    There are precompiled cross-compilers of MinGW-w64 available. This allows to compile native 32- and 64-bit Windows binaries from Linux, a two minute tutorial is available at http://www.blogcompiler.com/2010/07/11/compile-for-windows-on-linux/

    Just in case you don't want to spend a lot of time trying to build it yourself.

提交回复
热议问题