fatal error: filesystem: No such file or directory [closed]

It seems you have to include <filesystem> like this:

#include <experimental/filesystem>

Don’t forget to add -lstdc++fs as a GCC flag!

Here is the proof:
Coliru

If that doesn’t work, then that probably means that you don’t have filesystem in your configuration.

Also, as @MartinR. pointed out, the experimental is no longer needed in GCC 8+.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)