From f6578415f93507be888c7e853772f151df2da394 Mon Sep 17 00:00:00 2001 From: kvnvallis <3499307+kvnvallis@users.noreply.github.com> Date: Sat, 29 Jun 2024 19:08:15 -0700 Subject: [PATCH] Updated Working on Windows (markdown) --- Working-on-Windows.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Working-on-Windows.md b/Working-on-Windows.md index 120ba7c..552ba13 100644 --- a/Working-on-Windows.md +++ b/Working-on-Windows.md @@ -126,3 +126,13 @@ This will output `a.exe` to the current directory, where you can run it with `./ ### Build ONE example using msvc/cl cl gdi32.lib msvcrt.lib raylib.lib winmm.lib filename.c -Ic:\path\to\raylib\include /link /libpath:c:\path\to\raylib\lib /NODEFAULTLIB:libcmt + +## Install additional libraries in w64devkit + +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`