Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

filesystem is part of the c++17 standard #7

Open
KatieTheMathematician opened this issue Oct 6, 2022 · 1 comment
Open

filesystem is part of the c++17 standard #7

KatieTheMathematician opened this issue Oct 6, 2022 · 1 comment

Comments

@KatieTheMathematician
Copy link

The cmakelists.txt file specifies c++17 but then includes stdc++fs in the target_link_libraries. Both simple.cpp and benchmark.cpp use std::experimental::filesystem. This fails to build with gcc 9.4.0 on Ubuntu. Removing stdc++fs from the target_link_libraries and using std::filesystem fixes the error.

@delaram-mz
Copy link

I had the same problem and this fix really helped me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants