bazelbuild/bazel

[bazel.build] Problem with /start/cpp

Open

#28.670 geöffnet am 14. Feb. 2026

Auf GitHub ansehen
 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Java (4.465 Forks)batch import
P2help wantedteam-Documentationteam-OSSteam-Rules-CPPtype: documentation (cleanup)

Repository-Metriken

Stars
 (25.384 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 11T 12h) (44 gemergte PRs in 30 T)

Beschreibung

Page link:

https://bazel.build/start/cpp

Problem description (include actual vs expected text, if applicable):

The BUILD file on the page doesn't match what's in the GitHub repository for the examples.

This caused me to get errors when I tried to set up my own project and didn't understand that you needed to have load() in there. The errors I saw did tell me about load, but I wasn't sure why I needed it, when the example on the page didn't include it.

Where do you see this issue? (include link to specific section of the page, if applicable)

https://bazel.build/start/cpp#understand-build https://github.com/bazelbuild/examples/blob/main/cpp-tutorial/stage1/main/BUILD

Any other information you'd like to share?

No response

Contributor Guide