Calling a dll in my kotlin multiplatform project

I am developing a multiplatform project with kotlin, and now i need to call a dll inside my kotlin native common module and share it to my two platforms: iOS(.framework) and Windows(JVM).

Does anybody know how to do it?

1 Like

I have the same problem. I create methods with kotlin native. Can I call a dll file inside of this code and after call this method on the common main folder?

To use existing C-written shared libraries, I can recommend you this way. One got to follow steps from this tutorial, it explains some basic concepts. Also it will be helpful to take a look on the /samples/ folder in the Kotlin/Native repository.