Expected top-level statement (e.g. "message") 解决方案
2013-03-20 14:57
232 查看
Make sure that you do not use a non-ASCII encoding with your text file. The protoc.exe compiler will complain with the following message:
tutorial/addressbook.proto:1:1: Expected top-level statement (e.g. "message").
The best way to fix this is with Visual Studio. Open the proto file and select "File" -> "Save as...". From the save dialog click the down arrow next to the save button and select "Save with Encoding". Select
the "US-ASCII" codepage (near the bottom) and click save.
相关文章推荐
- Protobuf的奇怪问题解决--Expected top - level statement (e.g "message")
- 解决scanInfo.proto:1:1: Expected top-level statement (e.g. "message").问题
- Hadoop报错 " Message missing required fields: callId, status"解决方案
- 【jsp】Fragment "/index.do?method=top" was not found at expected path
- proto-lua-gen 转换proto文件错误 Expected top-level statement <e.g ."message">.
- Why is the "DEBUG: Error 2836" message generated in the DB2 V8, V9.1, or V9.5 installation log file on Windows system?
- 用"SELECT TOP"实现分页
- char amessage[] = "the time";与char *pmessage = "the time";区别
- vmware报“内部错误”("internal error")的解决方案
- DW中出现 "以下翻译器没有被装载,由于错误:xxxx.htm:有不正确的设置信息" 问题的解决方案
- 未能在"设计"视图中打开.在""块中,以不同方式将值括起来的解决方案汇总
- Microsoft Visual C++ 6.0 (SP6) 中can not open include file "afxres.h"问题的解决方案
- WF activity xaml error: compiler error(s) encountered processing expression "xx" identifier expected
- 安装SqlServer2000出现"有挂起的操作"的解决方案
- 对路径" "的访问被拒绝XP中IIS下asp.net程序错误提示解决方案
- 解决方案"System.InvalidOperationException: 配置有 NoSecurityChanges 标志的 AppDomainManager 修改了 AppDomain 的安全状
- message from server: "Host 'xxx' is not allowed to connect to this MySQL server"
- object of abstract class type "我的类" is not allowed 解决方案
- VBA-"找不到工程或库" 解决方案
- VC:cannot open file "mfc42u.lib"的解决方案