Reputeless / PerlinNoise

Header-only Perlin noise library for modern C++ (C++17/C++20)
MIT License
673 stars 77 forks source link

Error in Visual studio 2019 #12

Closed OliverEncoded closed 2 years ago

OliverEncoded commented 2 years ago

I've been using C++ for a couple of weeks now and wanted to make some world generation, so this seemed to be really great I created a PerlinNoise.hpp and pasted in your code, and no errors except three, all on lines like the one shown below, I'm using Visual Studio 2019 with SFML so I'm just wondering if this is only for G++? Thanks :D

Screenshot_1

Reputeless commented 2 years ago

This library requires C++17, so you need to set the compiler flag /std:c++17. The default setting in Visual Studio 2019 is /std:c++14.

OliverEncoded commented 2 years ago

aah ok, got it thanks 😄