I have a GLFW and OpenGL program in C++ Visual Studio with a window. The console window popping up whenever I run the program is annoying. How do I remove it? I'm on windows but I don't want to make it windows specific, it should be able to run on other OS's.
/SUBSYSTEM
option in your project? Check under project's Property Pages -> Configuration Properties -> Linker -> System -> SubSystem.Console (/SUBSYSTEM:CONSOLE)
.Windows (/SUBSYSTEM:WINDOWS)
. To quote from the docs above: "WINDOWS
– The application doesn't require a console, probably because it creates its own windows for interaction with the user."Severity Code Description File Line Suppression State Details Error LNK2019 unresolved external symbol WinMain referenced in function "int __cdecl invoke_main(void)" (?invoke_main@@YAHXZ) D:\repos\Snail Engine\MSVCRTD.lib(exe_winmain.obj) 1
WINDOWS
subsystem to make your Windows-specific executable avoid the console window.