Can I use C++ with Kotlin?

I am thinking of making a PS1 emulator for android and ios with Kotlin multiplatform. I have experience with C++ but none with Kotlin. Can I use Kotlin/swift for the UI but for the backend I will use c++? Like c++ will represent the emulator and Kotlin/swift will represent the user interface. Is this possible?

2 Likes

Yes, it’s possible, though you’ll need to create bindings to translate between Swift/Kotlin and C++. There are libraries that exist to help you do this, but it is a huge complication.

2 Likes