Q; I use Kotlin native to create a shared lib which I use in a C++ project. I can now call the "kotlin code" from C++ which is available in the shared lib, but can I also do it the other way around; call C++ code from Kotlin code? Or wouldnt that work because of the mutual (?) dependency; A needs B and B needs A
e
Etienne
01/22/2020, 11:27 PM
I think the first issue is you can only call C from Kotlin.
o
olonho
01/23/2020, 6:14 AM
So far Native can only interop with C directly, but C-wrapped C++ library shall work
r
Robert
01/23/2020, 7:37 AM
Yes, I could make a wrapper. But it sounds to me I'm making things too complex
e
Etienne
01/23/2020, 4:06 PM
well, circular dependencies are a flag for sure, but that might just be a signal that you have a hidden “C” lib that both “A” and “B” need…
Etienne
01/23/2020, 4:09 PM
Guess I’m trying to say, module splitting is one issue, language interops is another.