This is similar to where I got stuck yesterday
# kotlin-native
c
This is similar to where I got stuck yesterday
Thanks but I’m trying to understand the mechanics of calling into native libraries.
i
Looks like your problem is due to a default behavior of cinterop. By default it doesn't generate stubs for declarations already existing in the platform libs. In your case the
sin
function is already included into
platform.posix
so cinterop doesn't include it into your library. You may use the
-nodefaultlibs
flag of cinterop to change this behavior and generate stubs for all declarations. In this case you should see a long list of functions in the
klib contents
output instead of just package names.