News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

compiling on Windows for Linux

Started by polpoint, January 19, 2007, 04:37:43 PM

Previous topic - Next topic

polpoint

Hey, somebody directed me towards code::blocks to solve my problem.

I have a program on windows (i do not have linux box installed)
that I would like to port to Linux. It uses SDL, openGL and STL only, so there are no API/OS specific calls.
I tried searching for tutorials or some help, but I only found how to compile on Linux for Windows.

Any help would be greatly appreciated!

TDragon

Generally one builds a GCC cross-compiler for whichever Linux distro one is targeting. However, it's almost always best to start by using the distro's native compiler, and only use a cross-compiler once you're absolutely certain everything is set up properly. Code::Blocks can be compiled for both Windows and Linux, and is therefore ideal for cross-platform development and deployment.
[url="https://jmeubank.github.io/tdm-gcc/"]https://jmeubank.github.io/tdm-gcc/[/url] - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

raph

If you don't want to install a linux distri or if you (for some reasons) want to work under windows, try andLinux. So you can work in windows and in linux at the same time.