awalol

awalol

github

Kotlin Native 运行时不显示控制台

Kotlin/Native run without console#

链接设置#

build.gradle.kts 加入链接设置

kotlin {
    val nativeTarget = mingwX64("native")
    nativeTarget.apply {
        binaries {
            executable {
//                linkerOpts("-mwindows")
                linkerOpts("-Wl,--subsystem,windows")
                // 二选一,貌似两种方法都可以
            }
        }
    }
}
Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.