在Ubuntu上编译生成Windows程序
来源:互联网 发布:阿里巴巴代销传淘宝 编辑:程序博客网 时间:2024/06/18 17:27
安装mingw32
`$ sudo apt-get install mingw32
我的是ubuntu16.04,没有找到mingw32
,如果源里面没有mingw32
的话,打开/etc/apt/sources.list
$sudo vim /etc/apt/sources.list
加上一行
deb http://us.archive.ubuntu.com/ubuntu trusty main universe
然后
$sudo apt-get update$sudo apt-get install mingw32
编译
自己编一个简单的C/C++程序,如
#include <iostream>#include <string>using namespace std;int main(void){ cout<<"hello"<<endl; string a; cin>>a; return 0;}
然后就用i586-mingw32msvc-g++
编译,用法和g++
是一样的
$i586-mingw32msvc-g++ hello.cpp -o hello.exe
阅读全文
0 0
- 在Ubuntu上编译生成Windows程序
- rust 交叉编译平台: 在ubuntu上编译windows程序
- 在linux 上编译生成windows上运行的exe程序,交叉编译环境的配置( 平台:gentoo linux)
- 在Linux上交叉编译windows程序
- libjingle在windows和ubuntu-linux上编译方法
- 在Ubuntu和Windows上编译libcurl支持https
- 如何在windows编译生成嵌入式linux程序的代码
- 在qt creator 编译 ubuntu 上的多媒体程序
- 在Linux&ubuntu上编译C语言程序
- <JAVA>如何在ubuntu上编译和运行java程序
- 在Windows平台上使用GCC编译C程序
- 扫盲回帖系列之3——在windows下编译生成的程序为什么不能在ubuntu下运行呢?
- 在ubuntu上编译skia
- 在ubuntu上编译chrome
- 在ubuntu上编译chrome
- 在ubuntu上编译chrome
- 在Windows上编译jabberd2
- 在windows上编译scite
- Java 多线程-线程异常处理
- xynuoj 求两个数中的较大者
- Mybatis快速入门
- u3d
- 【Web开发技术】Web开发、Tomcat组成结构、技术介绍
- 在Ubuntu上编译生成Windows程序
- 20170725
- 专访平安科技首席科学家肖京:平安智能化的甜蜜与辛酸
- 手机访问PC站自动跳转手机站
- 范围for语句
- Palindrome Names Kattis
- Python中numpy和pandas中axis浅谈
- (DP,二维背包)Watch The Movie--HDOJ
- sony vegas pro 13 v13.0.453中文版