-
Notifications
You must be signed in to change notification settings - Fork 15.5k
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
protoc flag to set "-I $PROTOBUF_INSTALL_DIR/include" implicitly #5364
Comments
I unpacked If |
Another alternative which does not depend on
I'm not familiar C/C++ use of |
I will add my support to the first solution, ie an environment variable with the default import path. This could be configured to include multiple paths (like the PATH variable) |
We triage inactive PRs and issues in order to make it easier to find active work. If this issue should remain active or becomes active again, please add a comment. This issue is labeled |
We triage inactive PRs and issues in order to make it easier to find active work. If this issue should remain active or becomes active again, please reopen it. This issue was closed and archived because there has been no new activity in the 14 days since the |
What language does this apply to?
protoc
compilerDescribe the problem you are trying to solve.
Protobuf installations typically come with the
include
directory that has most of the necessary protobuf files for common types likegoogle.protobuf.Empty
.However, this directory is not included by default, nor is there a simple way to include them during
protoc
invocation.Describe the solution you'd like
--import-default-includes
to theprotoc
compiler to implicitly add-I $(which protoc)/../include
(this assumes unzip method, installations via package managers have different structure).Describe alternatives you've considered
stub42/protobuf-snap#1 <-- proposed setting a global
$PROTOBUF_HOME
during installation viasnap
so that users can dobut this is not a universal solution as it would only work for
snap
Additional context
nil
The text was updated successfully, but these errors were encountered: