What is equivalent to gcc -mwindows option for cl in windows?

cl : Command line warning D9002 : ignoring unknown option '-mwindows'

It seems -mwindowsintended only for gcc, does it have a clsimilar opportunity?

+3
source share
1 answer

Perhaps it will be / subsystem for the linker
In particular / SUBSYSTEM: WINDOWS

It allows you to choose between compiling a console application and a Windows application by setting a flag in the PE header

+3
source

Source: https://habr.com/ru/post/1743684/


All Articles