您的位置:首页 > 运维架构

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.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐