From ffd11d09958fdfb13acf7cfbbb5e2c7c83fad499 Mon Sep 17 00:00:00 2001 From: Seth Hamilton Date: Mon, 15 Sep 2025 11:57:06 -0500 Subject: [PATCH] Need the -LD flag for both configs to build a DLL. More: https://learn.microsoft.com/en-us/cpp/build/reference/md-mt-ld-use-run-time-library?view=msvc-170 --- build.bat | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.bat b/build.bat index a1a562f..d327c4c 100644 --- a/build.bat +++ b/build.bat @@ -2,11 +2,11 @@ SET flags=-Od -ZI -MDd SET config=Debug IF "%1" == "release" ( - SET flags=-O2 -MD -LD + SET flags=-O2 -MD SET config=Release ) SET srcs=src\* mkdir bin obj -cl %srcs% ext\glfw\build\src\%config%\glfw3.lib kernel32.lib user32.lib Gdi32.lib Shell32.lib -I inc -I ext\glm -I ext\glfw\include %flags% -std:c++20 -MP -Fo:obj\\ -Fe:bin\\LivePlotter.dll +cl %srcs% ext\glfw\build\src\%config%\glfw3.lib kernel32.lib user32.lib Gdi32.lib Shell32.lib -I inc -I ext\glm -I ext\glfw\include %flags% -std:c++20 -MP -LD -Fo:obj\\ -Fe:bin\\LivePlotter.dll COPY /Y assets\* bin COPY /Y assets\shaders\* bin