From 0a934e8c01fccf7c5c5ddf106c5dffecebc1cdf3 Mon Sep 17 00:00:00 2001 From: dijunkun Date: Thu, 30 May 2024 16:33:50 +0800 Subject: [PATCH] Fix LNK1561 error on Winodws --- src/gui/main.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) 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"