I am doing a cross-platform C (not ++) game with both linux (main) and windows (alternate) binaries. Until now I used devcpp to compile in windows, but I have trouble getting some libraries to work right, and I heard it is possible to compile a windows binary from withing Linux. However, I don't know where to get started. The game uses a few libraries (GLEW, GL, SDL, SDL_mixer, SDL_image and Lua 5.1) that would clutter the distribution directory though, so is it possible to make a static binary with that method?
-
Take a look at the Mingw compiler.Jorge Israel Peña– Jorge Israel Peña2009-11-09 18:49:35 +00:00Commented Nov 9, 2009 at 18:49
-
What is the game? Also I use ubuntu linux as my primary OS so I'm happy to hear this, but wouldn't it be prudent to design primarily for windows due to the vastly larger userbase?Jiaaro– Jiaaro2009-11-09 18:51:20 +00:00Commented Nov 9, 2009 at 18:51
-
Looks like this is what I need. Can it build static binaries?kagaminelen– kagaminelen2009-11-09 19:57:14 +00:00Commented Nov 9, 2009 at 19:57
-
Yes it can. Ubuntu keeps mingw in their repos too.Prof. Falken– Prof. Falken2009-11-10 09:35:54 +00:00Commented Nov 10, 2009 at 9:35
-
1Does this answer your question? How to compile for Windows on Linux with gcc/g++?PiCTo– PiCTo2020-04-30 13:02:23 +00:00Commented Apr 30, 2020 at 13:02
|
Show 1 more comment