Author Topic: compiling on Windows for Linux  (Read 3144 times)

polpoint

  • Guest
compiling on Windows for Linux
« 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!

Offline TDragon

  • Lives here!
  • ****
  • Posts: 943
    • TDM-GCC
Re: compiling on Windows for Linux
« Reply #1 on: January 19, 2007, 04:56:22 pm »
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.
https://jmeubank.github.io/tdm-gcc/ - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

Offline raph

  • Almost regular
  • **
  • Posts: 242
Re: compiling on Windows for Linux
« Reply #2 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. So you can work in windows and in linux at the same time.