如何在Linux上编译C ++以制作Windows二进制文件 [英] How to compile C++ on linux for to make a windows binary

查看:125
本文介绍了如何在Linux上编译C ++以制作Windows二进制文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:
如何使用gcc/g ++在Linux上为Windows编译?

Possible Duplicate:
Howto compile for Windows on Linux with gcc / g++?

我们这里没有Windows,如何为某些ppl编译该程序?是否有某种Wine可以在Windows或其他操作系统上运行linux程序.

We don't have windows here how can I compile this program for some ppl? Is there some kinda Wine for linux programs to run on windows or what.

推荐答案

您可以使用交叉编译器gcc-mingw

You can use cross-compiler gcc-mingw

我自己并没有在理论上使用它.

I did not use it myself and about it only theoretically.

这篇关于如何在Linux上编译C ++以制作Windows二进制文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆