📝 added a collection of my preferred compile commands for quick lookup

main
Isabell Pflug 2 years ago
parent f8e669f4d8
commit 3fb32a6bcd

@ -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`
Loading…
Cancel
Save