Is there a way to integrate some .dll files or .ex...
# kotlin-native
p
Is there a way to integrate some .dll files or .exe files into a KN windows binary? Right now I have to include the libraries in the same folder.
d
I don't think that's possible in general (even outside K/N). You can bundle static libraries into your KLIBs and binaries.
p
I see, is it possible to install those using an Installer? I don't think KN supports this right now.
d
Oh, I understand what you're asking now. I'll try and find you a link.
p
There seem to be some possibilities available for C# for example
d
iirc, C# Dll are kinda like Kotlin's KLIBs. They are not native binaries.
p
Yeah maybe, but they are getting an executable in the end that includes the dll file
That's all I need. Otherwise I have to leave the dll files in the same folder as the executable or write/find an Installer that makes it possible.
d
Do you not have any
.lib
or
.a
files?
m
See
tetris
sample - it creates fully statically linked
Copy code
.exe
<https://github.com/JetBrains/kotlin-native/tree/master/samples/tetris|https://github.com/JetBrains/kotlin-native/tree/master/samples/tetris>
p
I have
.lib
.dll
and
.exe
files
m
Well, then either find same lib from msys2 distribution instead of your random libs, or make installer.