Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 21994

Linking to stdc++fs with C++20 still necessary when using filesystem?

$
0
0

I began using experimental::filesystem when it had just come out and I was advised to link in stdc++fs using target_link_libraries(MyTarget stdc++fs) in CMake. My programme builds either way but may I be breaking something/ doing something unnecessary if I leave out the extra link command?

This question here was asked three years ago and seems to assume that linking in stdc++fs was necessary.

Edit: compiler version is g++-9 (Homebrew GCC 9.3.0_1) 9.3.0 and CMake version is 3.16.

Many thanks!


Viewing all articles
Browse latest Browse all 21994

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>