[protobuf] Protobuf Buffers v3.0.0-alpha-1

2014-12-12 Thread Jeremy Swigart
Does the arena allocator also get used by messages allocated as children of the 
root message? 

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.


Re: [protobuf] Protobuf Buffers v3.0.0-alpha-1

2014-12-12 Thread 'Feng Xiao' via Protocol Buffers
On Fri, Dec 12, 2014 at 5:56 AM, Jeremy Swigart jswig...@gmail.com wrote:

 Does the arena allocator also get used by messages allocated as children
 of the root message?

Yes.



 --
 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+unsubscr...@googlegroups.com.
 To post to this group, send email to protobuf@googlegroups.com.
 Visit this group at http://groups.google.com/group/protobuf.
 For more options, visit https://groups.google.com/d/optout.


-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.


[protobuf] Re: visual studio 2012 complie google protocolbuffer failed

2014-12-12 Thread Feng Xiao
Please try one of our released source tar balls:
https://github.com/google/protobuf/releases

If you git clone the latest code from github, it would very likely fail 
to build with Visual Studio because we don't test the code with VC until an 
official release. The vcproject files are also out-of-date most of the time.

On Thursday, December 4, 2014 6:48:48 AM UTC-8, Hammer Zhao wrote:

 1-- 已启动生成: 项目: libprotobuf, 配置: Debug Win32 --
 1生成启动时间为 2014/12/4 22:18:39。
 1InitializeBuildStatus:
 1  正在对“Debug\libprotobuf.unsuccessfulbuild”执行 Touch 任务。
 1ClCompile:
 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
 1c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\arena.h(315):
  
 error C2146: 语法错误: 缺少“;”(在标识符“ThreadCache”的前面)
 1c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\arena.h(315):
  
 error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
 1  wire_format.cc
 1c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\arena.h(315):
  
 error C2146: 语法错误: 缺少“;”(在标识符“ThreadCache”的前面)
 1c:\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
 1c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\arena.h(315):
  
 error C2146: 语法错误: 缺少“;”(在标识符“ThreadCache”的前面)
 1c:\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
 1c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\arena.h(315):
  
 error C2146: 语法错误: 缺少“;”(在标识符“ThreadCache”的前面)
 1c:\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
 1c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\arena.h(315):
  
 error C2146: 语法错误: 缺少“;”(在标识符“ThreadCache”的前面)
 1c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\arena.h(315):
  
 error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
 1  reflection_ops.cc
 1c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\arena.h(315):
  
 error C2146: 语法错误: 缺少“;”(在标识符“ThreadCache”的前面)
 1c:\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
 1c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\arena.h(315):
  
 error C2146: 语法错误: 缺少“;”(在标识符“ThreadCache”的前面)
 1c:\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
 1c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\arena.h(315):
  
 error C2146: 语法错误: 缺少“;”(在标识符“ThreadCache”的前面)
 1c:\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
 1c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\arena.h(315):
  
 error C2146: 语法错误: 缺少“;”(在标识符“ThreadCache”的前面)
 1c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\arena.h(315):
  
 error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
 1c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\repeated_field_reflection.h(276):
  
 error C2039: “is_enum”: 不是“google::protobuf::internal”的成员
 1c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\repeated_field_reflection.h(276):
  
 error C2947: 应由“”终止 模板参数列表,却找到“”
 1c:\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”的声明
 1c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\repeated_field_reflection.h(276):
  
 error C2146: 语法错误: 缺少“,”(在标识符“T”的前面)
 1c:\users\hao-yu\desktop\gprotocolbuf\protobuf-master\protobuf-master\src\google\protobuf\repeated_field_reflection.h(276):
  
 error C2955: “google::protobuf::internal::RefTypeTraits”: 使用类 模板 需要 模板 参数列表
 1