-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using well_known_protos in C++ #44
Comments
Due to sandboxing, just declaring In that case, you will also need to tell bazel that the cc_proto_library(
name = "b_proto_cc",
protos = [ "a/b.proto", ],
imports = [
"external/com_github_google_protobuf/src/",
],
includes = [
"@com_github_google_protobuf//:well_known_protos",
],
deps = [
"@com_github_google_protobuf//:cc_wkt_protos",
],
) In a future version of If this resolves the problem go ahead and close out the issue. If not, can you post the contents of |
I added includes lines, but it didn't work either. I am using CC and Go, so I prefer pubref but I can try cc_proto_library in google/protobuf in this case. Thanks anyways. |
OK, but I am interested in not leaving it unsolved. Any chance you can post your proto file? If you have a repo that repoduces it even better. |
Thanks for your help. One way that I found is adding home/WORKSPACE has
home/BUILD.c has
home/c/proto/a/b.proto has
|
Hi, I am building C++ code with protos using bazel. I'd like to use any.proto, one of @com_github_google_protobuf//:well_known_protos, but when I build it, I am getting the following error:
Import "google/protobuf/any.proto" was not found or had errors.
My cc_proto_library entry is:
Thanks.
The text was updated successfully, but these errors were encountered: