Describe the bug
A Drogon project does not compile when spdlog and fmt libraries are already installed on the project when the compilation commands are executed using MINGW32 for Windows 11.
After a little investigation, I cannot say that this behavior is an error introduced by Drogon because I may have forgotten something in the CMakefiles of the project to configure system libraries to define the UNICODE version of the access functions.
The issue may be solve if os_access definition points to the _waccess system (from io.h) call but I couldn't find the way to enable it on the project.
To add more information about how the project is configured:
Definition _WIN32 is defined to 1
Definition __MINGW32__ is defined to 1
To Reproduce
Steps to reproduce the behavior:
Clone and build the project:
git clone https://github.com/iscapla/drogon_spdlog.git
cd drogon_spdlog
mkdir build
Describe the bug A Drogon project does not compile when spdlog and fmt libraries are already installed on the project when the compilation commands are executed using MINGW32 for Windows 11. After a little investigation, I cannot say that this behavior is an error introduced by Drogon because I may have forgotten something in the CMakefiles of the project to configure system libraries to define the UNICODE version of the access functions. The issue may be solve if os_access definition points to the _waccess system (from io.h) call but I couldn't find the way to enable it on the project.
To add more information about how the project is configured:
To Reproduce Steps to reproduce the behavior:
cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_C_COMPILER:FILEPATH=C:\msys64\ucrt64\bin\gcc.exe -DCMAKE_CXX_COMPILER:FILEPATH=C:\msys64\ucrt64\bin\g++.exe -S. -B./build -G "MinGW Makefiles"
cmake --build ./build --config Debug --target all -j 22 --
Expected behavior A successful compilation.
Screenshots N/A
Desktop (please complete the following information):
Binaries uses the msys64\ucrt64 versions.
Smartphone (please complete the following information): N/A
Additional context N/A