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>,问题解决!
浙公网安备 33010602011771号