diff --git a/coding/compile_commands.md b/coding/compile_commands.md new file mode 100644 index 0000000..b4491d3 --- /dev/null +++ b/coding/compile_commands.md @@ -0,0 +1,12 @@ +# Compile Commands + +My preferred compile commands to quickly look up + +## Programming languages +* **C** - `gcc -std=gnu99 -Werror -Wfatal-errors -Wall -Wpedantic blub.c -o blub` + * if necessary, remove `-Wpedantic`, since it warns for features definitely included by using `gnu99` as compiler +* **C++** - `g++ -Wall -c blob.cpp blub.cpp` -> `g++ -Wall -o blub blob.o blub.o` + * `blob.cpp` gets linked (blub.cpp would likely start with something like `#include "blob.h"`) + +## Other languages +* **LaTeX** - `lualatex blub.tex`