Set the target platform for cross compilation
Syntax
Parameters
platform
The target platform. (See below)
Description
The
-target compiler option is used to create an executable for a platform which is different from the host on which the source code is being compiled and linked. Appropriate libraries and cross compilation tools (assembler, linker) must be installed in the /lib/ and /bin/ directories for cross compilation to work.
This option is only available if the compiler was built with cross compilation support.
Possible targets:
cygwin
darwin
dos
freebsd
linux
netbsd
openbsd
win32
xbox
Platform Differences
- Only available in versions fbc that have had cross compilation support enabled at configure time before building the compiler. Not all binary distributions will have the same cross compilation targets supported.
- The FreeBASIC package for DOS can be used as a cross compilation tool set when compiling from Windows to a DOS target.
See also