Added instructions to build shared library with MSVC #254

This commit is contained in:
Ray
2023-01-23 20:00:48 +01:00
committed by GitHub
parent 9e3c5009e4
commit 5b37ce0630

View File

@ -93,6 +93,12 @@ Provided set of icons can be reviewed and customized using [rGuiIcons](https://r
```
copy src/raygui.h src/raygui.c
gcc -o src/raygui.dll src/raygui.c -shared -DRAYGUI_IMPLEMENTATION -DBUILD_LIBTYPE_SHARED -static-libgcc -lopengl32 -lgdi32 -lwinmm -Wl,--out-implib,src/librayguidll.a
```
- **Windows (MSVC)**
```
copy src\raylib.h src\raylib.c
cl /O2 /I../raylib/src/ /D_USRDLL /D_WINDLL /DRAYGUI_IMPLEMENTATION /DBUILD_LIBTYPE_SHARED src/raygui.c /LD /Feraygui.dll /link /LIBPATH ../raylib/build/raylib/Release/raylib.lib /subsystem:windows /machine:x64
```
- **Linux (GCC)**