protobuf | 19 Dec 05:32 2014

Issue 683 in protobuf: Protocol buffers java

Status: New
Owner: liujisi <at> google.com
Labels: Type-Defect Priority-Medium

New issue 683 by bisteni... <at> gmail.com: Protocol buffers java
https://code.google.com/p/protobuf/issues/detail?id=683

I have a .java class created by RestaurantBestLocationDTO.proto called  
RestaurantBestLocationDTOOuterClass so i make a api get call to my server
with content-type application/x-protobuf then i got a message but i can  
find the way to parse this message into a  
RestaurantBestLocationDTOOuterClass list

im doing something like this

Parser<List<RestaurantBestLocationDTOOuterClass>> parserData;
List<RestaurantBestLocationDTOOuterClass> list =  
parserData.parseFrom(inputStream);

obviously it says that the error is nullpointer exception because  
parserData is null
but i cant get an Instance because is an Inferface

so can i do to get what i want?

i just need to parse the response and get the list

What is the expected output? What do you see instead?
I want to get a List of RestaurantBestLocationDTOOuterClass

(Continue reading)

Myriachan | 17 Dec 01:05 2014
Picon

Patch: Fix Visual Studio error message formatting

Currently, if protoc is a custom Visual Studio build tool and fails to compile a .proto due to a syntax error or whatever, Visual Studio won't show its error messages.  This is because of not following Visual Studio's formatting of error messages.

Melissa

--
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+unsubscribe <at> googlegroups.com.
To post to this group, send email to protobuf <at> googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.
Attachment (fix-msvs-error-msg.patch): text/x-diff, 1149 bytes
Nikhil Vyawahare | 16 Dec 13:02 2014
Picon

proto buffer file size control

Hello All,
What are the functionality to use in protocol buffer to control the file size in which I am writing serialized data.
I want the maximum file size to 5MB and then to start writing the new file.
How this can be achieve in coded output stream

Thanks and Regards
Nikhil 

--
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+unsubscribe <at> googlegroups.com.
To post to this group, send email to protobuf <at> googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.
John Sun | 16 Dec 08:47 2014
Picon

Mutable pointer not consistent with official doc.

Hi all, 

As said in the official document [C++ Generated Code::Singular String Fields]:

But in my test, the string pointed by the returned pointer just has the default value. My test environment is Win764bit, Visual Studio 2013.
Here is my test:

Message definition:

Test code:(without set the string field before use its mutable pointer)

Result:

Why? Please notice me if I misunderstood the doc.


--
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+unsubscribe <at> googlegroups.com.
To post to this group, send email to protobuf <at> googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.
尚鹏飞 | 15 Dec 11:04 2014
Picon

how to use protobuff in libevent?

Now , I’m writing a server based on libevent. As I know libevent support a evbuffer to send and receive data from socket, but I don’t want to another copy when I put or get data from evbuffer using protobuff. How to using protobuff to avoid another copy? I know the io::ZeroCopyInputStream and io::ZeroCopyOutputStream but not know how to combine it with evbuffer. Is there any example ?

--
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+unsubscribe <at> googlegroups.com.
To post to this group, send email to protobuf <at> googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.
Nishant Nagalia | 12 Dec 19:07 2014
Picon

Wireshark and Google Protobuf debugging

Hi,

We are using protobuf in our satellite gateway for sending and receiving data. We want to debug UDP packets carrying protobuf messages. We want to see the protobuf message in Wireshark. We found a protobuf plugin version 0.5 but it works with a very old version of wireshark (1.0.2).  We are right now having issues in getting this older version of wireshark to work on our Linux machines. Couple of questions:

1. Is there any other way other than wireshark to debug these packets?
2. Can we get a new protobuf plugin or information on how to modify this protobuf plugin to make it work with latest version of wireshark?

A quick reply would be really appreciated.

Thanks,
Nishant

--
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+unsubscribe <at> googlegroups.com.
To post to this group, send email to protobuf <at> googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.
Feng Xiao | 11 Dec 05:51 2014
Picon

Protobuf Buffers v3.0.0-alpha-1

Hi all,

I just published protobuf v3.0.0-alpha-1 on our github site:

This is the first alpha release of protobuf v3.0.0. In protobuf v3.0.0, we will add a new protobuf language version (aka proto3) and support a wider range of programming languages (to name a few: ruby, php, node.js, objective-c). This alpha version contains C++ and Java implementation with partial proto3 support (see below for details). In future releases we will add support for more programming languages and implement the full proto3 feature set. Besides proto3, this alpha version also includes two other new features: map fields and arena allocation. They are implemented for both proto3 and the old protobuf language version (aka proto2).

We are currently working on the documentation of these new features and when it's ready it will be updated to our protobuf developer guide. For the time being if you have any questions regarding proto3 or other new features, please post your question in the discussion group.

CHANGS
=======
Version 3.0.0-alpha-1 (C++/Java):

  General
  * Introduced Protocol Buffers language version 3 (aka proto3).

    When protobuf was initially opensourced it implemented Protocol Buffers
    language version 2 (aka proto2), which is why the version number
    started from v2.0.0. From v3.0.0, a new language version (proto3) is
    introduced while the old version (proto2) will continue to be supported.

    The main intent of introducing proto3 is to clean up protobuf before
    pushing the language as the foundation of Google's new API platform.
    In proto3, the language is simplified, both for ease of use and  to
    make it available in a wider range of programming languages. At the
    same time a few features are added to better support common idioms
    found in APIs.

    The following are the main new features in language version 3:

      1. Removal of field presence logic for primitive value fields, removal
         of required fields, and removal of default values. This makes proto3
         significantly easier to implement with open struct representations,
         as in languages like Android Java, Objective C, or Go.
      2. Removal of unknown fields.
      3. Removal of extensions, which are instead replaced by a new standard
         type called Any.
      4. Fix semantics for unknown enum values.
      5. Addition of maps.
      6. Addition of a small set of standard types for representation of time,
         dynamic data, etc.
      7. A well-defined encoding in JSON as an alternative to binary proto
         encoding.

    This release (v3.0.0-alpha-1) includes partial proto3 support for C++ and
    Java. Items 6 (well-known types) and 7 (JSON format) in the above feature
    list are not implemented.

    A new notion "syntax" is introduced to specify whether a .proto file
    uses proto2 or proto3:

      // foo.proto
      syntax = "proto3";
      message Bar {...}

    If omitted, the protocol compiler will generate a warning and "proto2" will
    be used as the default. This warning will be turned into an error in a
    future release.

    We recommend that new Protocol Buffers users use proto3. However, we do not
    generally recommend that existing users migrate from proto2 from proto3 due
    to API incompatibility, and we will continue to support proto2 for a long
    time.

  * Added support for map fields (implemented in C++/Java for both proto2 and
    proto3).

    Map fields can be declared using the following syntax:

      message Foo {
        map<string, string> values = 1;
      }

    Data of a map field will be stored in memory as an unordered map and it
    can be accessed through generated accessors.

  C++
  * Added arena allocation support (for both proto2 and proto3).

    Profiling shows memory allocation and deallocation constitutes a significant
    fraction of CPU-time spent in protobuf code and arena allocation is a
    technique introduced to reduce this cost. With arena allocation, new
    objects will be allocated from a large piece of preallocated memory and
    deallocation of these objects is almost free. Early adoption shows 20% to
    50% improvement in some Google binaries.

    To enable arena support, add the following option to your .proto file:

      option cc_enable_arenas = true;

    Protocol compiler will generate additional code to make the generated
    message classes work with arenas. This does not change the existing API
    of protobuf messages and does not affect wire format. Your existing code
    should continue to work after adding this option. In the future we will
    make this option enabled by default.

    To actually take advantage of arena allocation, you need to use the arena
    APIs when creating messages. A quick example of using the arena API:

      {
        google::protobuf::Arena arena;
        // Allocate a protobuf message in the arena.
        MyMessage* message = Arena::CreateMessage<MyMessage>(&arena);
        // All submessages will be allocated in the same arena.
        if (!message->ParseFromString(data)) {
          // Deal with malformed input data.
        }
        // Must not delete the message here. It will be deleted automatically
        // when the arena is destroyed.
      }

    Currently arena does not work with map fields. Enabling arena in a .proto
    file containing map fields will result in compile errors in the generated
    code. This will be addressed in a future release.
=======

Thanks,
Feng

--
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+unsubscribe <at> googlegroups.com.
To post to this group, send email to protobuf <at> googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.
Jeremy Swigart | 10 Dec 19:15 2014
Picon

Passing messages without a compiled proto

Is it possible, given a proto file, but without compiling it(protoc), to use the proto file directly to be
able to load data? In other words parsing the proto file at run time and generating a reflection interface
or something such that a tool may read the messages with just the proto file without having to generate the
code with protoc ? 

--

-- 
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+unsubscribe <at> googlegroups.com.
To post to this group, send email to protobuf <at> googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.
protobuf | 10 Dec 16:26 2014

Issue 682 in protobuf: Windows phone 8.1 problem

Status: New
Owner: liujisi <at> google.com
Labels: Type-Defect Priority-Medium

New issue 682 by dobba... <at> gmail.com: Windows phone 8.1 problem
https://code.google.com/p/protobuf/issues/detail?id=682

I use protobuf in winrt app for Windows and windows phone.
I got this message when build for ARM: "Host architecture was not detected  
as supported by protobuf"
The device is Nokia Lumia 1020. My OS is Windows 8.1, Visual Studio 2013

When is build for x86(run on emulator) everything is fine.
What is the expected output? What do you see instead?

Thank's!

-- 
You received this message because this project is configured to send all  
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--

-- 
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+unsubscribe <at> googlegroups.com.
To post to this group, send email to protobuf <at> googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

dilshan perera | 5 Dec 11:54 2014
Picon

Error on Protobuf Deserializing

Hi Guys,

I got run time exception while Deserializing. any one has comments for this ?
please Refer the attachment.

 

--
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+unsubscribe <at> googlegroups.com.
To post to this group, send email to protobuf <at> googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.
Hammer Zhao | 4 Dec 15:48 2014
Picon

visual studio 2012 complie google protocolbuffer failed

1>------ 已启动生成: 项目: libprotobuf, 配置: Debug Win32 ------
1>生成启动时间为 2014/12/4 22:18:39。
1>InitializeBuildStatus:
1>  正在对“Debug\libprotobuf.unsuccessfulbuild”执行 Touch 任务。
1>ClCompile:
1>  stringprintf.cc
1>  zero_copy_stream_impl_lite.cc
1>  zero_copy_stream_impl.cc
1>  zero_copy_stream.cc
1>  wire_format_lite.cc
1>c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\arena.h(315): error C2146: 语法错误: 缺少“;”(在标识符“ThreadCache”的前面)
1>c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\arena.h(315): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>  wire_format.cc
1>c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\arena.h(315): error C2146: 语法错误: 缺少“;”(在标识符“ThreadCache”的前面)
1>c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\arena.h(315): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>  unknown_field_set.cc
1>c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\arena.h(315): error C2146: 语法错误: 缺少“;”(在标识符“ThreadCache”的前面)
1>c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\arena.h(315): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>  tokenizer.cc
1>  text_format.cc
1>c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\arena.h(315): error C2146: 语法错误: 缺少“;”(在标识符“ThreadCache”的前面)
1>c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\arena.h(315): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>  substitute.cc
1>  strutil.cc
1>  structurally_valid.cc
1>  service.cc
1>  repeated_field.cc
1>c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\arena.h(315): error C2146: 语法错误: 缺少“;”(在标识符“ThreadCache”的前面)
1>c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\arena.h(315): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>  reflection_ops.cc
1>c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\arena.h(315): error C2146: 语法错误: 缺少“;”(在标识符“ThreadCache”的前面)
1>c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\arena.h(315): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>  printer.cc
1>  parser.cc
1>c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\arena.h(315): error C2146: 语法错误: 缺少“;”(在标识符“ThreadCache”的前面)
1>c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\arena.h(315): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>  atomicops_internals_x86_msvc.cc
1>  once.cc
1>  message_lite.cc
1>c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\arena.h(315): error C2146: 语法错误: 缺少“;”(在标识符“ThreadCache”的前面)
1>c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\arena.h(315): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>  正在生成代码...
1>  正在编译...
1>  message.cc
1>c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\arena.h(315): error C2146: 语法错误: 缺少“;”(在标识符“ThreadCache”的前面)
1>c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\arena.h(315): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\repeated_field_reflection.h(276): error C2039: “is_enum”: 不是“google::protobuf::internal”的成员
1>c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\repeated_field_reflection.h(276): error C2947: 应由“>”终止 模板参数列表,却找到“<”
1>c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\repeated_field_reflection.h(276): error C2975: “google::protobuf::internal::enable_if”:“cond”的模板参数无效,应为编译时常量表达式
1>          c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\stubs\type_traits.h(115) : 参见“google::protobuf::internal::enable_if”的声明
1>c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\repeated_field_reflection.h(276): error C2146: 语法错误: 缺少“,”(在标识符“T”的前面)
1>c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\repeated_field_reflection.h(276): error C2955: “google::protobuf::internal::RefTypeTraits”: 使用类 模板 需要 模板 参数列表
1>          c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\reflection.h(42) : 参见“google::protobuf::internal::RefTypeTraits”的声明
1>c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\repeated_field_reflection.h(276): error C2027: 使用了未定义类型“google::protobuf::internal::RefTypeTraits”
1>          c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\reflection.h(42) : 参见“google::protobuf::internal::RefTypeTraits”的声明
1>c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\repeated_field_reflection.h(276): error C2146: 语法错误: 缺少“;”(在标识符“value”的前面)
1>c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\repeated_field_reflection.h(276): error C2976: “google::protobuf::internal::RefTypeTraits”: 模板 参数太少
1>          c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\reflection.h(42) : 参见“google::protobuf::internal::RefTypeTraits”的声明
1>c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\repeated_field_reflection.h(276): error C2470: “value”: 看起来像函数定义,但没有参数列表;跳过明显的函数体
1>c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\repeated_field_reflection.h(276): error C2059: 语法错误:“>”
1>c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\repeated_field_reflection.h(276): error C2039: “type”: 不是“`global namespace'”的成员
1>c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\repeated_field_reflection.h(276): error C2143: 语法错误 : 缺少“;”(在“{”的前面)
1>c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\repeated_field_reflection.h(276): error C2447: “{”: 缺少函数标题(是否是老式的形式表?)
1>c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\repeated_field_reflection.h(303): error C2976: “google::protobuf::internal::RefTypeTraits”: 模板 参数太少
1>          c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\repeated_field_reflection.h(292) : 参见“google::protobuf::internal::RefTypeTraits”的声明
1>c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\repeated_field_reflection.h(331): error C2976: “google::protobuf::internal::RefTypeTraits”: 模板 参数太少
1>          c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\repeated_field_reflection.h(320) : 参见“google::protobuf::internal::RefTypeTraits”的声明
1>  importer.cc
1>c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\arena.h(315): error C2146: 语法错误: 缺少“;”(在标识符“ThreadCache”的前面)
1>c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\arena.h(315): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>  strtod.cc
1>  gzip_stream.cc
1>  generated_message_util.cc
1>  generated_message_reflection.cc
1>c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\arena.h(315): error C2146: 语法错误: 缺少“;”(在标识符“ThreadCache”的前面)
1>c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\arena.h(315): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\generated_message_reflection.cc(1876): warning C4065: switch 语句包含“default”但是未包含“case”标签
1>  extension_set_heavy.cc
1>c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\arena.h(315): error C2146: 语法错误: 缺少“;”(在标识符“ThreadCache”的前面)
1>c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\arena.h(315): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>  extension_set.cc
1>c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\arena.h(315): error C2146: 语法错误: 缺少“;”(在标识符“ThreadCache”的前面)
1>c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\arena.h(315): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>  dynamic_message.cc
1>c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\arena.h(315): error C2146: 语法错误: 缺少“;”(在标识符“ThreadCache”的前面)
1>c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\arena.h(315): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>  descriptor_database.cc
1>c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\arena.h(315): error C2146: 语法错误: 缺少“;”(在标识符“ThreadCache”的前面)
1>c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\arena.h(315): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>  descriptor.pb.cc
1>c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\arena.h(315): error C2146: 语法错误: 缺少“;”(在标识符“ThreadCache”的前面)
1>c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\arena.h(315): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>  descriptor.cc
1>c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\arena.h(315): error C2146: 语法错误: 缺少“;”(在标识符“ThreadCache”的前面)
1>c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\arena.h(315): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>  common.cc
1>  coded_stream.cc
1>c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\arena.h(315): error C2146: 语法错误: 缺少“;”(在标识符“ThreadCache”的前面)
1>c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\arena.h(315): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>  正在生成代码...
1>
1>生成失败。
1>
1>已用时间 00:00:20.70
========== 生成: 成功 0 个,失败 1 个,最新 0 个,跳过 0 个 ==========



this is the error :undefined word __thread 

I need some help to complie this project 

thank you!!!!



--
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+unsubscribe <at> googlegroups.com.
To post to this group, send email to protobuf <at> googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Gmane