compiling errors on Red Hat
Closed this issue · 0 comments
When I am compiling the project on Redhat, some errors occured, can everyone help me?
Thanks a lot
In file included from ./dmlc-core/include/dmlc/io.h:342,
from src/nnet/./../utils/io.h:9,
from src/nnet/./nnet.h:12,
from src/nnet/nnet_impl-inl.hpp:6,
from src/nnet/nnet_impl.cpp:4:
./dmlc-core/include/dmlc/./serializer.h: In static member function 'static void dmlc::serializer::IfThenElse<false, Then, Else, T>::Write(dmlc::Stream_, const T&) [with Then = dmlc::serializer::PODStringHandler, Else = dmlc::serializer::UndefinedSerializerFor, T = std::basic_string<char, std::char_traits, std::allocator >]':
./dmlc-core/include/dmlc/./serializer.h:296: instantiated from 'static void dmlc::serializer::Handler<std::basic_string<_CharT, std::char_traits<_CharT>, std::allocator<Tp1> > >::Write(dmlc::Stream, const std::basic_string<_CharT, std::char_traits<CharT>, std::allocator<Tp1> >&) [with T = char]'
./dmlc-core/include/dmlc/io.h:348: instantiated from 'void dmlc::Stream::Write(const T&) [with T = std::basic_string<char, std::char_traits, std::allocator >]'
src/nnet/././nnet_config.h:138: instantiated from here
./dmlc-core/include/dmlc/./serializer.h:61: error: 'Write' is not a member of 'dmlc::serializer::UndefinedSerializerFor'
./dmlc-core/include/dmlc/./serializer.h: In static member function 'static bool dmlc::serializer::IfThenElse<false, Then, Else, T>::Read(dmlc::Stream, T) [with Then = dmlc::serializer::PODStringHandler, Else = dmlc::serializer::UndefinedSerializerFor, T = std::basic_string<char, std::char_traits, std::allocator >]':
./dmlc-core/include/dmlc/./serializer.h:307: instantiated from 'static bool dmlc::serializer::Handler<std::basic_string<_CharT, std::char_traits<_CharT>, std::allocator<Tp1> > >::Read(dmlc::Stream, std::basic_string<CharT, std::char_traits<CharT>, std::allocator<Tp1> >) [with T = char]'
./dmlc-core/include/dmlc/io.h:352: instantiated from 'bool dmlc::Stream::Read(T) [with T = std::basic_string<char, std::char_traits, std::allocator >]'
src/nnet/././nnet_config.h:163: instantiated from here
./dmlc-core/include/dmlc/./serializer.h:64: error: 'Read' is not a member of 'dmlc::serializer::UndefinedSerializerFor'
make: ** [nnet_cpu.o] Error 1
make: *** Waiting for unfinished jobs....