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
Dominaezzz
05/30/2019, 10:37 PM
Weird, it should link automatically.
Dominaezzz
05/30/2019, 10:37 PM
Are you using
X64
or
X86
target?
d
Daniel Baird
05/30/2019, 10:42 PM
X64
Daniel Baird
05/30/2019, 10:42 PM
Ah. I think I found what I need.
-lrpcrt4
appears to fix it.
d
Dico
05/31/2019, 1:51 AM
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