- 执行命令 bazel build //flashroute:flashroute 时
报错:
error executing command /usr/bin/gcc @bazel-out/k8-fastbuild/bin/flashroute/flashroute-
FAILED: Build did NOT complete successfully
解决:
是系统问题“On some systems, the default version of C++ is not set to 14, in this case, you may specify it in --cxxopt
.”
将命令改为:
bazel build --cxxopt="--std=c++14" flashroute
即可