Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22269

How to fix compat.cc:22:23: fatal error: string_view: No such file or directory #include

$
0
0

I'm trying to compile Kaldi with Make under Kaldi/tools, and in the open-fst compilation it's failing and here's the error message

compat.cc:22:23: fatal error: string_view: No such file or directory #include <string_view>                       ^compilation terminated.Makefile:473: recipe for target 'compat.lo' failedmake[3]: *** [compat.lo] Error 1make[3]: Leaving directory '/tools/kaldi/tools/openfst-1.8.4/src/lib'Makefile:370: recipe for target 'install-recursive' failedmake[2]: *** [install-recursive] Error 1make[2]: Leaving directory '/tools/kaldi/tools/openfst-1.8.4/src'Makefile:419: recipe for target 'install-recursive' failedmake[1]: *** [install-recursive] Error 1make[1]: Leaving directory '/tools/kaldi/tools/openfst-1.8.4'Makefile:64: recipe for target 'openfst_compiled' failedmake: *** [openfst_compiled] Error 2mkhelfi1@b01:/tools/kaldi/tools$ g++ --versiong++ (Debian 6.3.0-18+deb9u1) 6.3.0 20170516Copyright (C) 2016 Free Software Foundation, Inc.This is free software; see the source for copying conditions.  There is NOwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.mkhelfi1@b01:/tools/kaldi/tools$ mkhelfi1@b01:/tools/kaldi/tools$ echo '#include <string_view>> int main() { std::string_view s("test"); return 0; }'> test_sv.cppmkhelfi1@b01:/tools/kaldi/tools$ g++ -std=c++17 test_sv.cpp -o test_svtest_sv.cpp:1:23: fatal error: string_view: No such file or directory #include <string_view>                       ^compilation terminated.

My GCC version: gcc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516and i cant update it is there any fix ?

I wanted to lower the openfst version but don't know if it will cause compatibility issues


Viewing all articles
Browse latest Browse all 22269

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>