Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: polpoint on January 19, 2007, 04:37:43 pm

Title: compiling on Windows for Linux
Post by: polpoint on January 19, 2007, 04:37:43 pm
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!
Title: Re: compiling on Windows for Linux
Post by: TDragon on January 19, 2007, 04:56:22 pm
Generally one builds a GCC cross-compiler (http://gcc.gnu.org/install/) 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.
Title: Re: compiling on Windows for Linux
Post by: raph on January 22, 2007, 07:02:27 pm
If you don't want to install a linux distri or if you (for some reasons) want to work under windows, try andLinux (http://wiki.gp2x.org/wiki/AndLinux). So you can work in windows and in linux at the same time.