I'm trying to run some very simple code from the accepted answer for this question in VS Code: How can I get the list of files in a directory using C or C++?
However, VS Code keeps giving me errors with the filesystem library such as follows:
error: ‘filesystem’ is not a namespace-name
32 | namespace fs = std::filesystem;
I can't figure out why this is happening. I checked my version of GCC and it's listed as 9.3.0. Any help would be appreciated!