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:
- Mac os Mojave
- Apple LLVM version 10.0.1 (clang-1001.0.46.4)
- 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 >
)