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
Post Reply
Bloomer
Newbie
Newbie
Posts: 2
Joined: Mon Nov 23, 2020 11:36 am

Create a Windows executable with Winelib?

Post by Bloomer » Mon Nov 23, 2020 12:39 pm

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 5
Level 5
Posts: 450
Joined: Thu Dec 24, 2009 11:00 am

Re: Create a Windows executable with Winelib?

Post by spoon0042 » Wed Nov 25, 2020 12:29 pm

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 » Wed Nov 25, 2020 11:20 pm

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

Post Reply