Compiling a console application. Kotlin native


Is it possible to build an executable file that will not flash when the console starts up?Perhaps there are compilation parameters?
val console: HWND? = GetConsoleWindow();
ShowWindow(console, SW_HIDE)
The console is removed, but it hangs for half a second at startup.


Пожалуйста не пишите на русском в англоязычном форуме. Используйте телеграм или слак.




Add something like linkerOpts("-mwindows") to your build script.


Are you saying “konanc -linkerOpts (” -mwindows “)”? In the “-help” about anything like not seen.


That sysntax for gradle, for konanc use -linker-options -mwindows


Thanks guy, this is hiding the console. Where did you find out where I can see the other parameters?