Closed yanzixiang closed 2 years ago
make it to compile,but I thinks it is not the right way, can anyone give me a better way ?
You can add /DNOMINMAX=1 as a compiler flag or you can include json_struct.h. Or you define #define NOMINMAX 1 at the top of the cpp files it should also work. You could include json_struct.h before you include Qt or any other header. I had a quick look at the Qt headers and it seems they are defining NOMINMAX before including Windows.h.
I have #define NOMINMAX 1, but I can NOT compile this either,
using vs 2022 and qt5. How can I find where are minx and max macro is defined and disable it ?