我收到错误消息:
src/HttpRouter.h:28:10: fatal error: 'string_view' file not found
当尝试编译库(uWebSockets)时,恰巧显示了它调用的编译命令:
clang++ -flto -O3 -c -std=c++17 -Isrc -IuSockets/src examples/HelloWorld.cpp
我检查了/ usr / include,仅在string_view
内发现了experimental
john@blam /usr/include $ find . | grep string_view
./c++/5/experimental/string_view.tcc
./c++/5/experimental/string_view
即使我更新到libstdc ++ 6-dev,它仍然找不到来自#include <string_view>
行的string_view库。
有什么作用?