Skip to content

Commit

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

0 comments on commit d4c5d92

Please sign in to comment.