https://kotlinlang.org logo
#kotlin-native
Title
# kotlin-native
k

Krystian

09/19/2023, 5:59 PM
I'm working with a C lib that has a the same function name
CloseWindow()
as windows
libuser32
which gives the following error:
lld-link: error: duplicate symbol: CloseWindow
but that's fine. Easy way to fix it is by ensuring my library is called first, but as it's a static lib I'm unable to simply call it
-lmylib
within
linkerOpts
because it complains it doesn't exist? How can I somewhat force K/N to link my lib first? I want to point out that I'm only using provided
platform.windows
code provided by Jetbrains.
One way I'm thinking of is by passing
-Wl,--allow-multiple-definition
would this be classified as safe thing to do? 🤔
2 Views