Updated Working on Windows (markdown)

master
kvnvallis há 11 meses
ascendente
cometimento
f6578415f9
1 ficheiros alterados com 10 adições e 0 eliminações
  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
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`

Carregando…
Cancelar
Guardar