mirror of
https://github.com/raysan5/raylib.git
synced 2025-12-25 10:22:33 -05:00
Updated Working on Windows (markdown)
@ -64,7 +64,7 @@ int main() {
|
||||
```
|
||||
|
||||
5. Compile in w64devkit.exe console:
|
||||
> `gcc -o raylibhelloworld.exe raylibhelloworld.c -lraylib -lopengl32 -lgdi32 -lwinmm`
|
||||
> `gcc -o raylibhelloworld.exe raylibhelloworld.c -lraylib -lgdi32 -lwinmm`
|
||||
|
||||
6. Run:
|
||||
> `./raylibhelloworld.exe`
|
||||
@ -98,9 +98,8 @@ The instructions below are focused on compiling raylib using Notepad++ as the ed
|
||||
Just open `raylib/src/raylib.h` source file on Notepad++ and execute (F6) the script `raylib_source_compile`
|
||||
|
||||
## A note on dependencies
|
||||
Raylib includes all of it's own external dependencies on windows. There are 3 system libraries that need to be linked to raylib for a game to work.
|
||||
Raylib includes all of it's own external dependencies on windows. There are only 2 system libraries that need to be linked to raylib for a game to work.
|
||||
|
||||
* OpenGL32: This is the Windows interface to the OpenGL API that raylib uses for drawing.
|
||||
* GDI32: This is the interface to the window setup and drawing functions that raylib and GLFW need to work on Windows.
|
||||
* WinMM: This is contains the high resolution timer code used by GLFW for precise timing in the game loop.
|
||||
|
||||
@ -126,4 +125,4 @@ This will output `a.exe` to the current directory, where you can run it with `./
|
||||
|
||||
### Build ONE example using msvc/cl
|
||||
|
||||
cl gdi32.lib kernel32.lib msvcrt.lib opengl32.lib raylib.lib shell32.lib user32.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
|
||||
|
||||
Reference in New Issue
Block a user