mirror of
https://github.com/libretro/cpp-cheat.git
synced 2025-04-08 14:02:03 +00:00
GCC
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
Scope
This will only cover C specifics. Generic ELF manipulation tools like ld
(which can work across any language) are not included.
Cross compile
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).
Infamous error messages
Error messages that are difficult to interpret for newbs:
struct has incomplete type = struct undefined
. You forgot to include some header.