mirror of
https://github.com/raysan5/raygui.git
synced 2025-12-25 10:22:33 -05:00
Added instructions to build shared library with MSVC #254
This commit is contained in:
@ -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)**
|
||||
|
||||
Reference in New Issue
Block a user