Updated Working on Windows (markdown)

master
kvnvallis 11 月之前
父節點
當前提交
f6578415f9
共有 1 個文件被更改,包括 10 次插入0 次删除
  1. +10
    -0
      Working-on-Windows.md

+ 10
- 0
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 ### 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 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`

Loading…
取消
儲存