-
Notifications
You must be signed in to change notification settings - Fork 26
Description
I try to build hashcobra howver I get the following error:
make -C third-party/libtomcrypt make[1]: Entering directory '/home/debian/hashcobra/third-party/libtomcrypt' make[1]: Nothing to be done for 'library'. make[1]: Leaving directory '/home/debian/hashcobra/third-party/libtomcrypt' g++ -O3 -Wall -Wextra -std=c++17 -lstdc++fs -march=native -s -Ithird-party/libtomcrypt/src/headers -o hashcobra hashcobra.o -Lthird-party/libtomcrypt -lrocksdb -ltomcrypt /usr/bin/ld: hashcobra.o: in function std::filesystem::__cxx11::path::path<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::filesystem::__cxx11::path>(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::filesystem::__cxx11::path::format) [clone .constprop.101]':
hashcobra.cpp:(.text+0xb90): undefined reference to std::filesystem::__cxx11::path::_M_split_cmpts()' /usr/bin/ld: hashcobra.o: in function main':
hashcobra.cpp:(.text.startup+0x24f7): undefined reference to std::filesystem::status(std::filesystem::__cxx11::path const&)' /usr/bin/ld: hashcobra.cpp:(.text.startup+0x2705): undefined reference to std::filesystem::status(std::filesystem::__cxx11::path const&)'
collect2: error: ld returned 1 exit status
make: *** [Makefile:16: hashcobra] Error 1`
The issue on other forums seems to be solved by adding -lstdc++fs to the build command however I still get the same error.
Any help would be much appreciated.