1

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?

6
  • Take a look at the Mingw compiler. Commented 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? Commented Nov 9, 2009 at 18:51
  • Looks like this is what I need. Can it build static binaries? Commented Nov 9, 2009 at 19:57
  • Yes it can. Ubuntu keeps mingw in their repos too. Commented Nov 10, 2009 at 9:35
  • 1
    Does this answer your question? How to compile for Windows on Linux with gcc/g++? Commented Apr 30, 2020 at 13:02

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.