Googole Protocol Buffer在VS2013中的编译问题

Googole Protocol Buffer在VS2013中的编译问题

 

Build protobuf project via Visual Studio 2013 - Result

1>..\src\google\protobuf\io\zero_copy_stream_impl_lite.cc(66): error C3861: 'min': identifier not found 1>..\src\google\protobuf\io\zero_copy_stream_impl_lite.cc(119): error C3861: 'min': identifier not found

1>..\src\google\protobuf\io\zero_copy_stream_impl_lite.cc(166): error C3861: 'max': identifier not found 1>..\src\google\protobuf\io\zero_copy_stream_impl_lite.cc(193): error C3861: 'min': identifier not found

 

Googole Protocol Buffer的bug,解决方法:

在src/google/protobuf/stubs/common.h中加入#include <algorithm>,问题解决!

posted on 2016-02-18 14:39  闲的云野的鹤  阅读(597)  评论(0)    收藏  举报