I am having a problem building a program that uses
#include <filesystem>
My situation is the following:
I have Ubuntu 20.04
In my system:
g++ --version
g++ (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
With this I can build a simple program with filesystem with
gcc -o test test.cpp -std=c++1z -lstdc++ -lstdc++fs
However, I have also a docker container.
Inside this docker container I have
g++ --version
g++ (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
When I try to build here the program I got
fatal error: filesystem: No such file or directory
#include <filesystem>
Does g++ 7.5.0 support filesystem?