From 5b37ce0630eeebad3cafcd8bb7b1cfb2511a691c Mon Sep 17 00:00:00 2001 From: Ray Date: Mon, 23 Jan 2023 20:00:48 +0100 Subject: [PATCH] Added instructions to build shared library with MSVC #254 --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index c2ebced..c57292a 100644 --- a/README.md +++ b/README.md @@ -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)**