Skip to content

Commit

Permalink
fix issue #10
Browse files Browse the repository at this point in the history
  • Loading branch information
neroist committed Apr 17, 2024
1 parent d4c5d92 commit 8e02ca2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions uing/rawui.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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".}
Expand Down

0 comments on commit 8e02ca2

Please sign in to comment.