Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to compile window Program under wingw-Linux-helloworld

2025-03-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article shows you how to compile window programs under wingw-Linux-helloworld, the content is concise and easy to understand, it will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.

Wingw introduction

Http://www.mingw.org/wiki/linuxcrossmingw

Work to use a program that supports linux and windows, win is cross-compiled under linux, using wingw, start to record a simple practice

Install wingw

Under linux, install the compiler

Compile and run $cat helloworld.c # include void main () {printf ("Hello World!");} $i686-w64-mingw32-gcc helloworld.c

Running

$wine a.exe Hello Worldwide% attention

When installing wine, use the new package on the official website

When using wine to run the program for the first time, the automatic configuration process will always report errors, which has not been carefully studied.

The above is how to compile window programs under wingw-Linux-helloworld, have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 298

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report