Where does the cinterop tool store a generated klib file for a C library?
z
zt
11/11/2022, 5:02 AM
They are stored in build/libs/<target>
n
napperley
11/11/2022, 9:26 PM
I discovered that the klib file for the program is stored in build/classes/kotlin/linuxX64/main/klib for the linuxX64 target, which is confusing. There is no sign of the klib file for the C library. Presumably a klib file for the C library isn't generated if no symbols from the C library are used in the Kotlin Native program. Inside IntelliJ the C library is listed in the External Libraries section (as a klib file), but there is no option to open a File Manager that points to the directory where the klib is located 😦.