From d4c5d92e140e5b323ad18156410d114dc05d5a40 Mon Sep 17 00:00:00 2001 From: neroist Date: Wed, 17 Apr 2024 04:26:39 -0400 Subject: [PATCH] fix issue #9 --- uing/rawui.nim | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/uing/rawui.nim b/uing/rawui.nim index 835ed39..99d7d56 100644 --- a/uing/rawui.nim +++ b/uing/rawui.nim @@ -67,7 +67,14 @@ else: when defined(windows): when defined(gcc): - {.passL: "-lstdc++".} # gives warnings when passed to linker with clang + {.passL: "-lstdc++".} # gives warnings when passed to linker with clang + # `LINK : warning LNK4044: unrecognized option '/Z-reserved-lib-stdc++'; ignored` + + # whole buncha errors with clang + cpp + when defined(clang) and defined(cpp): + {.passC: "-D_CRT_SECURE_NO_WARNINGS".} + {.passC: "-Wno-int-to-pointer-cast".} + {.passC: "-Wno-microsoft-exception-spec".} when defined(clang) or defined(gcc): {.passL: "-lwindowscodecs".} # compiling with clang needs this for some reason