Cheat on the GNU Compile Collection (GCC) language extensions and command line utilities.
- Introduction
- Extensions
- Types
- Language
- Attribute
- Variable
- Function
- asm
- Built-in functions
- cpp
- Internals
WIP
This will only cover C specifics. Generic ELF manipulation tools like ld
(which can work across any language) are not included.
Cross compiling means to compile a program for a different OS or architecture than the one the compiler is running.
GCC cannot cross compile for windows from Linux (TODO check).
This can be done with MinGW (TODO how).
Error messages that are difficult to interpret for newbs:
struct has incomplete type = struct undefined
. You forgot to include some header.