happynear / caffe-windows

Configure Caffe in one hour for Windows users.
Other
1.32k stars 649 forks source link

ubuntu 16.04 make error, mt19937 error. #243

Closed ronghuaiyang closed 7 years ago

ronghuaiyang commented 7 years ago

hi, happynear: I want to use your caffe in ubuntu 16.04, when i make pycaffe , i encounter this error:

touch python/caffe/proto/init.py CXX/LD -o python/caffe/_caffe.so python/caffe/_caffe.cpp PROTOC (python) src/caffe/proto/caffe.proto In file included from /usr/include/c++/5/random:35:0, from ./include/caffe/data_transformer.hpp:5, from ./include/caffe/layers/base_data_layer.hpp:7, from ./include/caffe/layers/memory_data_layer.hpp:10, from python/caffe/_caffe.cpp:18: /usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.

error This file requires compiler and library support \

^ In file included from ./include/caffe/layers/base_data_layer.hpp:7:0, from ./include/caffe/layers/memory_data_layer.hpp:10, from python/caffe/_caffe.cpp:18: ./include/caffe/datatransformer.hpp:148:8: error: 'mt19937' in namespace 'std' does not name a type std::mt19937 prnd;//caffe's RNG is difficult to use. ^ Makefile:507: recipe for target 'python/caffe/_caffe.so' failed make: *** [python/caffe/_caffe.so] Error 1

i think it is something about mt19937, can you help me to solve this problem?
thank you very much!