Create a Windows executable with Winelib?

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Bloomer
Newbie
Newbie
Posts: 2
Joined: Mon Nov 23, 2020 11:36 am

Create a Windows executable with Winelib?

Post by Bloomer »

Hello everybody,

Is it possible to somehow use Wine (or Winelib) to produce a binary that can be executed by Windows? My operating system for development is GNU/Linux, but the question is also applicable for people programming under Android or macOS.

It would be nice to be able to port my program to Windows without having to install or use Windows myself, because I don't like it. The programming language I use is standard C99.
spoon0042
Level 6
Level 6
Posts: 572
Joined: Thu Dec 24, 2009 11:00 am

Re: Create a Windows executable with Winelib?

Post by spoon0042 »

You can read more on winelib here: https://wiki.winehq.org/Winelib_User's_Guide

I'm not certain but I don't think that's what you're looking for if you just want to build a windows binary. There is mingw for that and in fact wine uses that to build its PE parts.
Bloomer
Newbie
Newbie
Posts: 2
Joined: Mon Nov 23, 2020 11:36 am

Re: Create a Windows executable with Winelib?

Post by Bloomer »

Indeed, mingw is what I was looking for. Thank you.
Locked