.exe unter Linux compilen
-
Hi!
Suche einen Compiler, mit dem man unter Linux .exe Dateien compilen kann, die dann unter Windows verwendet werden! Hab schonmal hier nen Thread gelesen mit Crosscompiler, aber finde diesen nicht mehr und mit meinen Googlesuchen konnte ich auch nix finden^^ Hoffe jemand kennt da einenDanke schonmal!
-
Schau mal bei Watcom rein, Gnu sollte das auch können.
-
MinGW ist nen gcc der Windows Programme erstellt und das nicht nur unter Windows.
-
Wikipedia schrieb:
GCC and cross compilation
GCC, a free software collection of compilers, can be set up to cross compile. It supports many platforms and languages. However, due to limited volunteer time and the huge amount of work it takes to maintain working cross compilers, in many releases some of the cross compilers are broken.[citation needed]
GCC requires that a compiled copy of binutils be available for each targeted platform. Especially important is the GNU Assembler. Therefore, binutils first has to be compiled correctly with the switch --target=some-target sent to the configure script. GCC also has to be configured with the same --target option. GCC can then be run normally provided that the tools, which binutils creates, are available in the path, which can be done using the following (on UNIX-like operating systems with bash):
PATH=/path/to/binutils/bin:$PATH; make
Cross compiling GCC requires that a portion of the target platform's C standard library be available on the host platform. At least the crt0, ... components of the library must be available. You may choose to compile the full C library, but that can be too large for many platforms. The alternative is to use newlib, which is a small C library containing only the most essential components required to compile C source code. To configure GCC with newlib, use the switch --with-newlib.
The GNU autotools packages (i.e. autoconf, automake, and libtool) use the notion of a build platform, a host platform, and a target platform. The build platform is where the code is actually compiled. The host platform is where the compiled code will execute. The target platform usually only applies to compilers. It represents what type of object code the package itself will produce (such as cross-compiling a cross-compiler); otherwise the target platform setting is irrelevant. For example, consider cross-compiling a video game that will run on a Dreamcast. The machine where the game is compiled is the build platform while the Dreamcast is the host platform.