Joe Butler
2009-09-23 13:30:03 UTC
Hi,
Am a Windows user and programmer (only use Linux for web servers, so, not
into compiling stuff from source, etc.). I would find it very useful if I
could compile some c/c++ console app code so that the compiler running on my
Windows dev machine emits a linux console app.
So, I have some c and cpp source that I currently compile with MS Dev Studio
6 to produce a Windows exe console to run on Windows. I'd like to be able
to compile the same code from Windows and produce a Linux console app. It
shouldn't be a big deal, since I can cross compile using GCC to all sorts of
embedded devices and I can see in the Linux KDevelop, I can emit Windows
apps!. Just need to know what the basic setup is to emit Linux console apps
from a Windows compiler.
Currently, I have Code::Block installed on Windows and this looks like the
most useful first step since I can specify a compiler in the Project Build
Options. But which compiler? Would prefer pre-built source (i.e. binary
distribution of compiler).
Any suggestions, thanks,
(also posted in gnu.gcc.help before I realised someone here might have an
answer)
Am a Windows user and programmer (only use Linux for web servers, so, not
into compiling stuff from source, etc.). I would find it very useful if I
could compile some c/c++ console app code so that the compiler running on my
Windows dev machine emits a linux console app.
So, I have some c and cpp source that I currently compile with MS Dev Studio
6 to produce a Windows exe console to run on Windows. I'd like to be able
to compile the same code from Windows and produce a Linux console app. It
shouldn't be a big deal, since I can cross compile using GCC to all sorts of
embedded devices and I can see in the Linux KDevelop, I can emit Windows
apps!. Just need to know what the basic setup is to emit Linux console apps
from a Windows compiler.
Currently, I have Code::Block installed on Windows and this looks like the
most useful first step since I can specify a compiler in the Project Build
Options. But which compiler? Would prefer pre-built source (i.e. binary
distribution of compiler).
Any suggestions, thanks,
(also posted in gnu.gcc.help before I realised someone here might have an
answer)