How do I link and include a static library? The on...
# kotlin-native
m
How do I link and include a static library? The only "documentation" I can find is vague mentions of stuff on youtrack and files on github that don't exist anymore, e.g. https://github.com/JetBrains/kotlin-native/blob/master/FAQ.md#q-how-do-i-create-a-static-library-or-an-object-file
l
You should be able to use the cinterop feature. In your .def file, use the staticLibraries field like shown in https://kotlinlang.org/docs/native-c-interop.html#include-a-static-library-in-your-klib