I wonder how hard it would be for cinterop to supp...
# kotlin-native
k
I wonder how hard it would be for cinterop to support obj-c++? for instance, the only difference in my header files is that the forward declarations use namespacing. I understand it would be more problematic if there were c++ headers included.
i
Not sure what do you mean but it's already supported
k
to my knowledge objective-c is supported
obj-c++ is a little different
Task :cinteropPhonenumbersIos FAILED
Exception in thread "main" java.lang.Error: c_interop/libPhoneNumber_iOS.framework/Headers/AWPhoneNumberMatch.h131: error: unknown type name 'namespace' at org.jetbrains.kotlin.native.interop.indexer.UtilsKt.ensureNoCompileErrors(Utils.kt:145) at org.jetbrains.kotlin.native.interop.indexer.IndexerKt.indexDeclarations(Indexer.kt:938) at org.jetbrains.kotlin.native.interop.indexer.IndexerKt.buildNativeIndexImpl(Indexer.kt:928) at org.jetbrains.kotlin.native.interop.indexer.NativeIndexKt.buildNativeIndex(NativeIndex.kt:56) at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.processCLib(main.kt:245) at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.interop(main.kt:36) at org.jetbrains.kotlin.cli.utilities.InteropCompilerKt.invokeInterop(InteropCompiler.kt:88) at org.jetbrains.kotlin.cli.utilities.MainKt.main(main.kt:18)
looks like I can probably get what I want with categories and "private" headers