P3help wantedteam-Documentationteam-Rules-CPPtype: documentation (cleanup)
仓库指标
- Star
- (25,384 star)
- PR 合并指标
- (平均合并 22天 20小时) (30 天内合并 77 个 PR)
描述
Documentation URL: https://docs.bazel.build/versions/4.1.0/cpp-use-cases.html
The sections Including external libraries and Writing and running C++ tests are untestable in the current state.
- The
./test/hello-test.ccfile includes#include "lib/hello-greet.h", but nowhere was hello-greet mentioned. I guessed it was referring to the structure in stage3 of the previous tutorial, buthello-greet.hin that tutorial is inmain/and not/lib.
I ended up creating a directory structure like

which managed to work, but it would be nice to add this to the github cpp-tutorial, maybe as a 4th stage.
- The other problem is that the first WORKSPACE + gtest.BUILD (without the strip_prefix) in https://docs.bazel.build/versions/4.1.0/cpp-use-cases.html#including-external-libraries didn't compile for me. I get the error:
