Consuming a generated dynamic library


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 “” 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?


There’s an example of reverse interop here.