I have usually been using c++11 in the past, and using the “-std=c++11” flag with manual compilation and make files to do so. Now I want to use the filesystem library, which requires c++17 or beyond.
This should not be an issue by my understanding, as my g++ version is 11.4.0.
I tried changing the flag in my make file to “-std=c++17” but this didn’t work, as I got a compilation error about “filesystem not naming a type” and some path references to c++11. Then I tried manually, and got the same thing.
terminal result from manual compilation
What gives?
Elliot Lacinai is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.