I created a new qt widget project and copied the .h/cpp files from a small project (c++20) but now it doesn't compile, I'm getting this error: 'min': identifier not found 'max': identifier not found.
I have pre-compiled header activated and my includes are added there:
#ifndef STDAFX_H
#define STDAFX_H
//#include "framework.h"
#include <QtWidgets>
#include <windows.h>
#include <cmath> // Floor
#include <vector>
#include <string>
#include <tchar.h>
#include <map>
#include <algorithm> // min/max
#include <stdlib.h> // min/max
#endif //STDAFX_H
I tried including <algorithm> <stdlib.h> but i still getting the error message.
Settings: Visual Studio 2022, win10, c++20.
I'm new to Qt im not sure if i can change the c++ version as you do in 'normal' Visual Studio projects, i mean by just changing the option here:
