Could someone advice this newbee? I have this C*++...
# kotlin-native
r
Could someone advice this newbee? I have this C*++* project I am trying to migrate to Kotlin (has dependencies too). I tried to write it all from scratch, but came to the conclusion that's not the right way, too much errors, to much to code before I can verify/test etc. So I decided to compile Kotlin to a dynamic C-library and load it into C*++* (as described here https://kotlinlang.org/docs/tutorials/native/dynamic-libraries.html). This works 👍 This way I can migrate one part of the C*++* project at the time. Q: Problem is that I have to migrate ALL types that are being mentioned in the part of code I want to migrate, as see now way to reference the C*++* types from Kotlin. Is there a way to reference the C*++* types from within Kotlin and compile it to C?
Is NDK a better approach? Or is Android totally different?
Anyone tried this?
Anyone used NDK with Kotlin native and C++?
d
I've used K/N with android but no C++.
r
Okay this doesn't file like the right way. There seems to little experience doing it this way, and the codebase is complex, so I'll probably run into rare exceptions. I continue the dynamic library path