What do the "subsystem,windows" options do in gcc?

Viewed 63

I've looked at the man pages for gcc, but still cant find doc on what the "subsystem,windows" options do, as in:

g++.exe foo.o ... -Wl,-subsystem,windows

I'm running only in Windows, and linking C++ code. I can guess maybe what "windows" is, but would like to see some documentation.

1 Answers

Thank you contributors. With your help I was able to figure this out. In my case, -subsystem,windows tells ld to not open a "Console". In my case, the "Console" is where my C printf() commands come out.

So actually this is a terrible option for debugging!

Related