Compiling a console application. Kotlin native


#1

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


#2

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


#3

Ok


#4

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


#5

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


#6

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


#7

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