From 45417f0d503005863c5471e5a9efba89df56da73 Mon Sep 17 00:00:00 2001 From: ComputerNerd Date: Mon, 7 Dec 2020 01:30:23 -0600 Subject: [PATCH] Fix undefined reference to `_imp___TrackMouseEvent@4' error. Notice for CYGWIN we are not using the comdlg32 library but are using comctl32. Changing comdlg32 to comctl32 fixed the linker error I was receiving why trying to build the library using MinGW. This change was tested in both Wine and a Windows 95 VM and I didn't receive any errors relating to functions defined in comdlg32 because it's not used. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8d52d4e5a8..6cf9866bf2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -76,7 +76,7 @@ ENDIF(CYGWIN) IF(MINGW) ADD_DEFINITIONS(-DWIN32) - SET( FLTK_PLATFORM_DEPENDENT_LIBS ole32 uuid wsock32 gdi32 comdlg32) + SET( FLTK_PLATFORM_DEPENDENT_LIBS ole32 uuid wsock32 gdi32 comctl32) ENDIF(MINGW) INCLUDE(CheckIncludeFiles)