I’m trying to bridge a C++ library to Kotlin/Nativ...
# kotlin-native
k
I’m trying to bridge a C++ library to Kotlin/Native by creating a C intermediary. The c++ project is compiled using gradle’s 
cpp-library
. Unfortunately it seems that this grade plugin doesn’t support mixed C/C++ sourcesets for compilation. So, does Kotlin cintertop work when a header file doesn’t use any C++ features, but the implementation is in C++? Is it even possible to implement a C header files with C++? I’m a total C++ noob. Any help is appreciated 🙂
🚫 2
n
Kotlin's C Interop only covers the C programming language, which includes C libraries that include header and library files, and C libraries that only include headers although these libraries should be avoided if possible (they are difficult to work with).