Is it possible for cinterop to also compile the li...
# kotlin-native
h
Is it possible for cinterop to also compile the library I'm referencing instead of only generating the bridge code?
o
you mean C library? in theory, it is possible for simple case, although it is somewhat an abuse of technology. Just
#include
everything you need to the .def file
h
I'll give it a shot. In my case its just a bunch of small .c/.h file "libraries", nothing complex. Setting up a build environment just feels overkill to compile a few lines of c in this case
It does indeed work 👍
d
Wow, that's awesome. You #include d C source files?
h
Yes, you have to include both .h and .c files after a line with three dashes (---)