4

Xcode 10.2 には<filesystem>ヘッダーが含まれるようになりました。しかし、 を使用してコードを記述してstd::filesystemいるときに、余分なリンク エラーが多数発生します。

Undefined symbols for architecture x86_64:
  "std::__1::__fs::filesystem::path::__filename() const", referenced from:
      std::__1::__fs::filesystem::path::filename() const in dump_zip.cpp.o
      std::__1::__fs::filesystem::path::filename() const in libxp_parse.a(zipped.cpp.o)
      std::__1::__fs::filesystem::path::remove_filename() in libxp_parse.a(zipped.cpp.o)
      std::__1::__fs::filesystem::path::has_filename() const in libxp_parse.a(zipped.cpp.o)
      std::__1::__fs::filesystem::path::has_filename() const in libxp_parse.a(acf.cpp.o)

ファイルシステムをサポートするために追加のライブラリをリンクする必要があると思いますが、それが何であるか、どこにあるかを特定できません。それが何と呼ばれているか分かりますか?

EDIT:libc ++はそれlibc++fsが必要であると言いますが、少なくともデフォルトの検索ディレクトリでは、Xcodeで配布されていないようです。

4

1 に答える 1