User forums > Using Code::Blocks

compiling on Windows for Linux

(1/1)

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.

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.

Navigation

[0] Message Index

Go to full version