Jonne, it’s not building on Manjaro Linux (based on Arch).
I changed the Linker settings, because they are located somewhere else.
Do I need to do something else to?
Thanks for trying it out. Yep, I see from your compiler error output, that you are running into the min/max problem reported by @krp and @Drakker.
The problem comes from min/max becoming a part of the standard library in GCC versions 6 and above. I have not yet found a satisfactory solution to it.
EDIT: go to project build options, and then to the tab #defines
Add
DISABLEAVRMIN
at the end of the defines and see if that changes the outcome