Hi folks, I'm currently trying to create a UUID on...
# kotlin-native
d
Hi folks, I'm currently trying to create a UUID on windows and i'm running into some undefined reference issues. `undefined reference to
__imp_UuidCreate'
This method exists in platform.windows. I'm assuming i'm just missing a linker flag, but I'm not sure how to determine what linker flag I need. I have already added
-luuid
. Any thoughts?
d
Weird, it should link automatically.
Are you using
X64
or
X86
target?
d
X64
Ah. I think I found what I need.
-lrpcrt4
appears to fix it.
d
You can find the binary that defines a function by going to the corresponding Microsoft api documentation and scrolling to the table at the bottom of the page
👍 1