Q; I use Kotlin native to create a shared lib whic...
# kotlin-native
r
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
I think the first issue is you can only call C from Kotlin.
o
So far Native can only interop with C directly, but C-wrapped C++ library shall work
r
Yes, I could make a wrapper. But it sounds to me I'm making things too complex
e
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…
Guess I’m trying to say, module splitting is one issue, language interops is another.