Consuming a generated dynamic library


#1

Hi!
I generated a native shared library using the “produce shared” option, like so:
kotlinc -produce dynamic simple.kt
kotlinc (1.2.40-dev-610) generates a “libdynamic.so” shared library that I am trying to use from C, but I get a signal SIGSEV in `ReleaseRef(ObjHeader const*) + 155.

Question is, is there any example on how to use a kotlinc generated shared library from plain C code?
TIA!


#2

There’s an example of reverse interop here.