Join Slack
Powered by
How do I link and include a static library? The on...
# kotlin-native
m
martmists
02/05/2022, 2:37 AM
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
Landry Norris
02/05/2022, 7:44 PM
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
4
Views
Open in Slack
Previous
Next