I am trying to do a cinterop on the rocksdb header...
# kotlin-native
j
I am trying to do a cinterop on the rocksdb headers. It fails on
#include <map>
with exception:
/include/rocksdb/db.h:13:10: fatal error: 'map' file not found
. This is the .h file: https://github.com/facebook/rocksdb/blob/master/include/rocksdb/db.h . What am I doing wrong? (This cinterop thing is new to me so maybe I am missing something obvious)
d
Kotlin/Native doesn't have C++ interop (yet).
j
Ah that explains it. So only pure C and Objective-C support? Is there anything publicly said if C++ interop is considered?
I discovered the c bindings for Rocksdb that seems to have what I need. https://github.com/facebook/rocksdb/blob/master/include/rocksdb/c.h It works through the cinterop. 🎉
And reading through K/N issues it seems that basic C++ support is considered and someone is willing to implement wrappers. But I can see I don't need to expect something soon. https://github.com/JetBrains/kotlin-native/issues/2835
d
Yeah, pretty much.