|
|
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.
Also if by chance you have stumbled upon this issue maybe while researching how to get FLTK to run on older versions of Windows you can build FLTK 1.1 with Cmake using something similar to the command below
mkdir build
cd build
cmake -DMINGW=ON -DBUILD_SHARED_LIBS=OFF -DBUILD_EXAMPLES=ON -DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_USE_PTHREADS=OFF -DUSE_OPENGL=OFF -DCMAKE_FIND_ROOT_PATH=/usr/i686-w64-mingw32 -DBUILD_TESTING=ON -DCMAKE_SYSTEM_NAME=Windows -DCMAKE_C_COMPILER=/usr/bin/i686-w64-mingw32-gcc -DCMAKE_CXX_COMPILER=/usr/bin/i686-w64-mingw32-g++ -DCMAKE_CXX_FLAGS_MINSIZEREL="-DPNG_NO_CONSOLE_IO -DNOMINMAX -DWINVER=0x0400 -Os -s -DNDEBUG" -DCMAKE_C_FLAGS_MINSIZEREL="-DPNG_NO_CONSOLE_IO -DNOMINMAX -DWINVER=0x0400 -Os -s -DNDEBUG" -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_AR=/usr/bin/i686-w64-mingw32-gcc-ar -DCMAKE_RANLIB=/usr/bin/i686-w64-mingw32-gcc-ranlib -DCMAKE_NM=/usr/bin/i686-w64-mingw32-gcc-nm -DCMAKE_EXE_LINKER_FLAGS="-static-libstdc++ -static-libgcc" ..
As long as you disable large file support in libstdc++ you can use the latest version of MinGW to build FLTK 1.1 (after applying this patch plus my other three patches) and the final EXEs will run on Windows 95 and later.
You can view, comment on, or merge this pull request online at:
https://github.com/fltk/fltk/pull/171
Commit Summary
- Fix undefined reference to `_imp___TrackMouseEvent@4' error.
File Changes
Patch Links:
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.
[ Direct Link to Message ] | |
|
| |