diff --git a/src/gui/main.cpp b/src/gui/main.cpp index 1c9d906..f1e84b9 100644 --- a/src/gui/main.cpp +++ b/src/gui/main.cpp @@ -1,3 +1,11 @@ +#ifdef _WIN32 +#ifdef REMOTE_DESK_DEBUG +#pragma comment(linker, "/subsystem:\"console\"") +#else +#pragma comment(linker, "/subsystem:\"windows\" /entry:\"mainCRTStartup\"") +#endif +#endif + #include "connection.h" #include "log.h" #include "main_window.h"