This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Make command

Hi everyone, I am trying to compile this program (https://github.com/dincarnato/draco). I arrive until the step were I type make -j4 but I get this error:

[  0%] Building CXX object src/CMakeFiles/args_generate.dir/args_generate.cpp.o
In file included from /home/atabaz/draco/src/args_impl.hpp:6:0,
                 from /home/atabaz/draco/src/args_def.hpp:3,
                 from /home/atabaz/draco/src/args_generate.cpp:1:
/home/atabaz/draco/src/cte/string.hpp:5:23: fatal error: string_view: No such file or directory
compilation terminated.
src/CMakeFiles/args_generate.dir/build.make:75: recipe for target 'src/CMakeFiles/args_generate.dir/args_generate.cpp.o' failed
make[2]: *** [src/CMakeFiles/args_generate.dir/args_generate.cpp.o] Error 1
CMakeFiles/Makefile2:192: recipe for target 'src/CMakeFiles/args_generate.dir/all' failed
make[1]: *** [src/CMakeFiles/args_generate.dir/all] Error 2
Makefile:100: recipe for target 'all' failed
make: *** [all] Error 2

Any idea about how to solve it?

Thank you very much!

c compile

For sure, no offense because I ask also in here. I understand that this things spend it's time to find the error and I am very grateful for answering me in GitHub forum. Asking here is just to look for anyone that maybe could also help

1 answer

string_view: No such file or directory

the compiler needs a file string_view.h or string_view.hh . This header requires a c++ compiler handling c++17 ( https://en.cppreference.com/w/cpp/header/string_view).

see https://stackoverflow.com/questions/64141078/compile-c-file-in-linux-terminal-string-view-no-such-file-or-directory

You'll need to update your compiler. std::string_view is not available in GCC until version 7.

Log in to answer this question.