Closed baderouaich closed 3 years ago
I'm also failing to compile on mingw32-w64:
c++.exe (x86_64-posix-seh-rev0, Built by MinGW-W64 project) 8.1.0
Same errors, plus one macro (?) error:
frontend\debug/../pfd.h:1284:21: error: 'FOS_PICKFOLDERS' was not declared in this scope
ifd->SetOptions(FOS_PICKFOLDERS);
All of these seem to be coming from ShlObj.h
and ShObjIdl.h
. Microsoft back at it again with its broken libraries!
I encountered the same issue and as a workaround I just commented those lines; therefore, the windows sdk bloatware is not needed :smile: It probably uses an older Win32 API, but looks just fine for me. Here's the header I used (it is based on a slightly older version of the header). The extension is txt due to github restrictions.
Thanks for the feedback. I have disabled the use of IFileDialog
for old versions of mingw64. Note that more recent versions (e.g. 10.3.0) have correct headers and compile fine.
Hello Sam, Thank you for this cool library! its really useful. i had an issue compiling in Windows 10 using Mingw x64, compilers version that i tried are 9.3.0, 10.1.0 and 10.2.0, all failed with
error: invalid use of incomplete type 'IFileDialog' {aka 'struct IFileDialog'}
although it works perfectly with the msvc v142 compiler and other platforms like linux... looks like the issue is with the windows version of mingw from http://winlibs.com/ i found similar issue occured with the Qt5 here may be usefulfull error info