0

I want to use std::filesystem(but now at least boost::filesystem), however I've been trying this for a long time, but nothing worked. I use:

  1. Mac os Mojave
  2. Apple LLVM version 10.0.1 (clang-1001.0.46.4)
  3. VSCode In my cmake file:

find_package(Boost REQUIRED COMPONENTS system thread filesystem)

And when I call current_path()

std::cout << boost::filesystem::current_path();

Error occured:

Undefined symbols for architecture x86_64:
  "boost::filesystem::detail::current_path(boost::system::error_code*)", referenced from:
      boost::filesystem::current_path() in libConfigs.a(server_info.cpp.o)
ld: symbol(s) not found for architecture x86_64

About std::filesystem I no longer dream, since there is not even a header file < filesystem >)

Lightness Races in Orbit
  • 378,754
  • 76
  • 643
  • 1,055
nnuttertools
  • 131
  • 8

0 Answers0