From 8e02ca2e22a1c33bedf44fe9e190652abad9db64 Mon Sep 17 00:00:00 2001 From: neroist Date: Wed, 17 Apr 2024 04:30:09 -0400 Subject: [PATCH] fix issue #10 --- uing/rawui.nim | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/uing/rawui.nim b/uing/rawui.nim index 99d7d56..edda5fb 100644 --- a/uing/rawui.nim +++ b/uing/rawui.nim @@ -67,8 +67,11 @@ else: when defined(windows): when defined(gcc): - {.passL: "-lstdc++".} # gives warnings when passed to linker with clang - # `LINK : warning LNK4044: unrecognized option '/Z-reserved-lib-stdc++'; ignored` + # gives warnings when passed to linker with clang (all 3) + {.passL: "-lstdc++".} + + {.passL: "-static-libgcc".} + {.passL: "-static-libstdc++".} # whole buncha errors with clang + cpp when defined(clang) and defined(cpp): @@ -77,6 +80,8 @@ else: {.passC: "-Wno-microsoft-exception-spec".} when defined(clang) or defined(gcc): + {.passL: "-static".} + {.passL: "-lwindowscodecs".} # compiling with clang needs this for some reason {.passL: "-lwinspool".} {.passL: "-lcomdlg32".}