Is it possible for cinterop to also compile the library I'm referencing instead of only generating the bridge code?
o
olonho
03/28/2019, 12:55 PM
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
Hauke Radtki
03/28/2019, 12:56 PM
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
Hauke Radtki
03/28/2019, 1:07 PM
It does indeed work 👍
d
Dico
03/29/2019, 10:08 AM
Wow, that's awesome. You #include d C source files?
h
Hauke Radtki
04/02/2019, 8:08 AM
Yes, you have to include both .h and .c files after a line with three dashes (---)