Link std :: experimental :: file system with Xcode 9

I am using the std :: experimental :: file system with the beta version of Xcode 9.0. The compiler phase ends with OK, but the linker complains about undefined characters:

std::experimental::filesystem::v1::path::__filename() const
std::experimental::filesystem::v1::path::__filename() const
std::experimental::filesystem::v1::path::__stem() const
std::experimental::filesystem::v1::__status(std::experimental::filesystem::v1::path const&, std::__1::error_code*)

I also use std :: experimental :: filesystem :: canonical (), but the linker does not complain about what is missing.

How can I set up a project to include these missing links?

UPDATE:

I experimented with a simpler program. If I just use canonical (), then the linker complains that it is missing.

I can use std :: experimental :: optional - everything compiles, links and works fine. But "optional" is a template and probably does not include a library.

+4
1

-std= ( " ++" Xcode)?

+1

Source: https://habr.com/ru/post/1679825/


All Articles