views:

461

answers:

2

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?

+1  A: 

Take a look at the Mingw compiler.

Jorge Israel Peña
Looks like this is what I need. Can it build static binaries?
kagaminelen
Yes it can. Ubuntu keeps mingw in their repos too.
Amigable Clark Kant
A: 

Also, take a look at this generic cross-compiling question earlier on SO.

Amit