Protocol buffers &引用;google.protobuf.Timestamp“;未使用Protobuf v2定义
我试图在v2Protocol buffers &引用;google.protobuf.Timestamp“;未使用Protobuf v2定义,protocol-buffers,Protocol Buffers,我试图在v2.proto文件中使用时间戳 我将Protobuf v2.6.1从源代码安装到Mac OS上,并遵循自述文件中的安装说明(例如,/configure,make,make check,…) 似乎protoc安装正确,就像在我的macOS机器上一样 Import "google/protobuf/timestamp.proto" was not found or had errors. "google.protobuf.Timestamp" is
.proto
文件中使用时间戳
我将Protobuf v2.6.1从源代码安装到Mac OS上,并遵循自述文件中的安装说明(例如,/configure
,make
,make check
,…)
似乎protoc
安装正确,就像在我的macOS机器上一样
Import "google/protobuf/timestamp.proto" was not found or had errors.
"google.protobuf.Timestamp" is not defined.
$protoc--版本
libprotoc 2.6.1
但是,在添加简单的.proto
文件时
syntax = "proto2";
import "google/protobuf/timestamp.proto";
message MyMessage {
optional google.protobuf.Timestamp start_date = 1;
我要走了
Import "google/protobuf/timestamp.proto" was not found or had errors.
"google.protobuf.Timestamp" is not defined.
我还能做什么?我在protobuf安装中没有看到include/
目录