You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

使用Edition语法编译Protobuf定义失败求助

Edition语法编译Protobuf定义失败求助

嘿,我最近在编译一份Protobuf定义文件时碰了壁,想请大家帮忙看看问题出在哪。我写的.proto文件内容是这样的:

edition = "2023";
package example_proto;
import "google/protobuf/cpp_features.proto";

message BidAsk {
    required double bid = 1;
    required double ask = 2;
    required string timestamp = 3 [features.(pb.cpp).string_type = VIEW];
}

我对照着官方文档的要求来写的,感觉语法和配置都没毛病,但就是编译不通过,有没有大佬能指点一下呀?

备注:内容来源于stack exchange,提问作者user2138149

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.13 16:10:28