Hi,
> `nanopb_generator -C nanopb.proto` itself produces a .pb.c that can't find
> `google_protobuf_field_descriptor_proto_type_t` as no where
> `google/protobuf/descriptor.pb.h` is included.
Normally all imported .proto files generate corresponding includes of .pb.h files.
There are two proto files that are on default exclusion list, because
usually there is no need to include nanopb.proto or descriptor.proto in
the compiled C code, even though they are needed by protoc.
Custom includes of those or other files can be added by adding this near
the beginning of a .proto (or equivalently in .options file or -s on
command line):
option (nanopb_fileopt).include = 'foobar.h';
--
Petteri