are there any example projects running c++ code us...
# kotlin-native
a
are there any example projects running c++ code using kotlin/native as a shared lib?
b
You mean via cpp/c interop bridge?
a
basically when kotlin/native compiles to the shared library, compiler outputs .dll and .h files. but i am having trouble adding them to the c++ project. it would be wonderful if there is a project that uses kotlin as a library
b
I'm not aware of any, but at this stage it's not a kotlin project that you're consuming. It's just a regular c lib so google around on that
I mean post-compilation
a
yeah already tried linking with msvc but getting weird error that linker can't determine the language of the dll. i guess i will try to use mingw
b
Ah, yes. Kn uses mingw for windows. I personally limit my interactions with it via msys2 only
Or try to avoid windows in general 😀
✅ 2
a
got it working with the msvc. i have accidentally skipped the part for windows in the official docs. everything is working fine
🎉 2
b
Can you link to the docs you've skipped for the future reference?