Hey @hfhbd, thanks for sharing your repo! It really helped me out a lot. I wasn't able to get the specific configuration you have there to work with Ktor. The def file config seems to pick up a different compiler , or the postrgres binaries have an issue, I have no idea. What does work for me with Ktor is creating the link file separately (the .a file) and then using the def file to link that to the Kotlin Native code. Works like a charm.