I have been building ART from master with no problem (Windows 11 with up-to-date MSYS2) but recently getting an error message with pathutils.cc. Anyone having the same issue?
Cheers
[207/308] Building CXX object rtgui/CMakeFiles/art.dir/pathutils.cc.obj
FAILED: rtgui/CMakeFiles/art.dir/pathutils.cc.obj
C:\msys64\ucrt64\bin\c++.exe -DART_LCMS2_FAST_FLOAT -DART_USE_CTL -DART_USE_LIBRAW -DART_USE_OCIO -DART_WIN32_UCRT -DGUIVERSION -DNDEBUG -DRT_FFTW3F_OMP -DWIN32 -DWITH_MIMALLOC -D_DNDEBUG -D_WIN32 -D__MINGW32__ -IC:/msys64/home/dtrtuser/programs/code-art/build/rtgui -IC:/msys64/ucrt64/include/giomm-2.4 -IC:/msys64/ucrt64/lib/giomm-2.4/include -IC:/msys64/ucrt64/include/glibmm-2.4 -IC:/msys64/ucrt64/lib/glibmm-2.4/include -IC:/msys64/ucrt64/include/glib-2.0 -IC:/msys64/ucrt64/lib/glib-2.0/include -IC:/msys64/ucrt64/include/sigc++-2.0 -IC:/msys64/ucrt64/lib/sigc++-2.0/include -IC:/msys64/ucrt64/include/gtkmm-3.0 -IC:/msys64/ucrt64/lib/gtkmm-3.0/include -IC:/msys64/ucrt64/include/atkmm-1.6 -IC:/msys64/ucrt64/lib/atkmm-1.6/include -IC:/msys64/ucrt64/include/gdkmm-3.0 -IC:/msys64/ucrt64/lib/gdkmm-3.0/include -IC:/msys64/ucrt64/include/gtk-3.0 -IC:/msys64/ucrt64/include/cairo -IC:/msys64/ucrt64/include/atk-1.0 -IC:/msys64/ucrt64/include/pangomm-1.4 -IC:/msys64/ucrt64/lib/pangomm-1.4/include -IC:/msys64/ucrt64/include/cairomm-1.0 -IC:/msys64/ucrt64/lib/cairomm-1.0/include -IC:/msys64/ucrt64/include/pango-1.0 -IC:/msys64/ucrt64/include/pixman-1 -IC:/msys64/ucrt64/include/fribidi -IC:/msys64/ucrt64/include/harfbuzz -IC:/msys64/ucrt64/include/freetype2 -IC:/msys64/ucrt64/include/gdk-pixbuf-2.0 -IC:/msys64/ucrt64/include/libpng16 -IC:/msys64/ucrt64/include/webp -IC:/msys64/ucrt64/include/lensfun -IC:/msys64/ucrt64/include/librsvg-2.0 -IC:/msys64/ucrt64/include/libxml2 -IC:/msys64/usr/local/include/CTL -IC:/msys64/ucrt64/include/OpenEXR -IC:/msys64/ucrt64/include/Imath -std=c++11 -ffp-contract=off -Werror=unused-label -fno-math-errno -Wl,--stack,4194304 -Wall -Wuninitialized -Wno-deprecated-declarations -Wno-unused-result -fopenmp -Werror=unknown-pragmas -O3 -DNDEBUG -std=c++11 -ffp-contract=off -Werror=unused-label -fno-math-errno -Wl,--stack,4194304 -Wall -Wuninitialized -Wno-deprecated-declarations -Wno-unused-result -fopenmp -Werror=unknown-pragmas -MD -MT rtgui/CMakeFiles/art.dir/pathutils.cc.obj -MF rtgui\CMakeFiles\art.dir\pathutils.cc.obj.d -o rtgui/CMakeFiles/art.dir/pathutils.cc.obj -c C:/msys64/home/dtrtuser/programs/code-art/rtgui/pathutils.cc
C:/msys64/home/dtrtuser/programs/code-art/rtgui/pathutils.cc: In function 'Glib::ustring getExecutablePath(const char*)':
C:/msys64/home/dtrtuser/programs/code-art/rtgui/pathutils.cc:90:5: error: 'WCHAR' was not declared in this scope
90 | WCHAR exnameU[512] = {0};
| ^~~~~
C:/msys64/home/dtrtuser/programs/code-art/rtgui/pathutils.cc:91:31: error: 'exnameU' was not declared in this scope; did you mean 'exname'?
91 | GetModuleFileNameW (NULL, exnameU, 511);
| ^~~~~~~
| exname
C:/msys64/home/dtrtuser/programs/code-art/rtgui/pathutils.cc:91:5: error: 'GetModuleFileNameW' was not declared in this scope
91 | GetModuleFileNameW (NULL, exnameU, 511);
| ^~~~~~~~~~~~~~~~~~
C:/msys64/home/dtrtuser/programs/code-art/rtgui/pathutils.cc:92:26: error: 'CP_UTF8' was not declared in this scope
92 | WideCharToMultiByte (CP_UTF8, 0, exnameU, -1, exname, 511, 0, 0 );
| ^~~~~~~
C:/msys64/home/dtrtuser/programs/code-art/rtgui/pathutils.cc:92:5: error: 'WideCharToMultiByte' was not declared in this scope
92 | WideCharToMultiByte (CP_UTF8, 0, exnameU, -1, exname, 511, 0, 0 );
| ^~~~~~~~~~~~~~~~~~~
[214/308] Building CXX object rtgui/CMakeFiles/art.dir/options.cc.obj
In file included from C:/msys64/ucrt64/include/shlobj.h:124,
from C:/msys64/home/dtrtuser/programs/code-art/rtgui/options.cc:42:
C:/msys64/ucrt64/include/shobjidl.h: In function 'HRESULT SHLoadLibraryFromItem(IShellItem*, DWORD, const IID&, void**)':
C:/msys64/ucrt64/include/shobjidl.h:32969: note: '-Wmisleading-indentation' is disabled from this point onwards, since column-tracking was disabled due to the size of the code/headers
32969 | if (SUCCEEDED(hr))
C:/msys64/ucrt64/include/shobjidl.h:32969: note: adding '-flarge-source-files' will allow for more column-tracking support, at the expense of compilation time and memory
ninja: build stopped: subcommand failed.