It's like no matter what changes I make to what, i...
# kotlin-native
a
It's like no matter what changes I make to what, it still gives me that linker error. I have no idea what's going on
But here's the thing. It's recognized. When I try calling a function from the library (hidapi) like hid_init without the parentheses, it tells me "function invocation expected". When add the parentheses, that's where it gives me the linker error. So it's as if kotlin native isn't able to properly link hidapi.dll to my project
The cinterop tool generates the hidapi.klib as well as the stubs just fine. But when linking the klib to the hidapi.dll, it just doesn't happen. Unless I'm missing the point?
Ah I missed a bit in the docs
I had forgotten to include
-linker-options <libLoc>
in my kotlinc-native call
It now generates a .exe but when I run the .exe, I get an error message saying that my dll was not found
m
On Windows .dll must be in same dir with .exe, or in dir listed in system PATH
a
Ah thank you
It finally works
I can't believe it that simple