Is it possible to call klib functions from an shar...
# kotlin-native
f
Is it possible to call klib functions from an shared library?
o
.klib is Kotlin/Native compile time concept, it is not intended for runtime. But once shared objects generation is implemented (not hard, just producing PIC code and passing -shared to the system linker) one could create DSO from Kotlin code and call it from another DSO, using
ExpprtForCppRuntime
annotation. But note, that we are not in favpur of passing Kotlin objects this way, as object layout may change