'Can I control the "prefix" and exported names of functions of a Kotlin native shared library?
I want to build a shared library in Kotlin/Native that conforms to a predefined naming scheme (JNI, in this particular case, but no, I don't want to compile Kotlin to JVM bytecode). The docs on the Kotlin site show the Kotlin code in a "package example" and then the generated C-exported functions are function pointers that are nested inside of "kotlin.root.example". What I'd like is an equivalent to an "extern C" capability for a standalone function in Kotlin/Native. Am I missing something?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
