You can install C libraries by copying their files to 3 locations. Then you will be able to include the headers in your project files, and compile in w64devkit with the `-l` flag followed by the name of the installed library.
- Copy headers (.h or .hpp) to `C:\raylib\w64devkit\x86_64-w64-mingw32\include\`
- Copy libraries (.lib) to `C:\raylib\w64devkit\x86_64-w64-mingw32\lib\`
- Copy executables (.dll or .exe) to `C:\raylib\w64devkit\bin\`
For example, after installing `lua54.dll` and `lua54.lib` (along with the headers), I was able to compile with `gcc main.c -o mygame -lraylib -llua54 -lopengl32 -lgdi32 -lwinmm`