<p>log file while compiling:<br>
In file included from /usr/include/c++/4.8/unordered_map:35:0,<br>
from /usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:23,<br>
from /usr/local/include/mlpack/prereqs.hpp:57,<br>
from /usr/local/include/mlpack/core.hpp:187,<br>
from ../main.cpp:9:<br>
/usr/include/c++/4.8/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.<br>
#error This file requires compiler and library support for the \<br>
^<br>
In file included from /usr/local/include/mlpack/prereqs.hpp:57:0,<br>
from /usr/local/include/mlpack/core.hpp:187,<br>
from ../main.cpp:9:<br>
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:98:11: error: ‘unordered_map’ in namespace ‘std’ does not name a type<br>
const std::unordered_map<<br>
^<br>
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:98:29: error: expected ‘,’ or ‘...’ before ‘<’ token<br>
const std::unordered_map<<br>
^<br>
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp: In function ‘void boost::serialization::save(Archive&, int)’:<br>
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:105:9: error: ‘unordered_map’ is not a member of ‘std’<br>
std::unordered_map<<br>
^<br>
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:105:9: error: ‘unordered_map’ is not a member of ‘std’<br>
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:103:32: error: parse error in template argument list<br>
boost::serialization::stl::save_unordered_collection<<br>
^<br>
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:108:11: error: ‘t’ was not declared in this scope<br>
>(ar, t);<br>
^<br>
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp: At global scope:<br>
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:120:10: error: ‘std::unordered_map’ has not been declared<br>
std::unordered_map<<br>
^<br>
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:120:23: error: expected ‘,’ or ‘...’ before ‘<’ token<br>
std::unordered_map<<br>
^<br>
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp: In function ‘void boost::serialization::load(Archive&, int)’:<br>
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:127:9: error: ‘unordered_map’ is not a member of ‘std’<br>
std::unordered_map<<br>
^<br>
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:127:9: error: ‘unordered_map’ is not a member of ‘std’<br>
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:125:32: error: parse error in template argument list<br>
boost::serialization::stl::load_unordered_collection<<br>
^<br>
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:132:13: error: ‘unordered_map’ is not a member of ‘std’<br>
std::unordered_map<<br>
^<br>
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:132:13: error: ‘unordered_map’ is not a member of ‘std’<br>
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:134:13: error: wrong number of template arguments (5, should be 2)<br>
><br>
^<br>
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:37:8: error: provided for ‘template struct boost::serialization::stl::archive_input_unordered_map’<br>
struct archive_input_unordered_map<br>
^<br>
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:136:5: error: expected primary-expression before ‘>’ token<br>
>(ar, t);<br>
^<br>
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:136:11: error: ‘t’ was not declared in this scope<br>
>(ar, t);<br>
^<br>
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp: At global scope:<br>
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:150:10: error: ‘std::unordered_map’ has not been declared<br>
std::unordered_map<<br>
^<br>
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:150:23: error: expected ‘,’ or ‘...’ before ‘<’ token<br>
std::unordered_map<<br>
^<br>
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp: In function ‘void boost::serialization::serialize(Archive&, int)’:<br>
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:155:42: error: ‘t’ was not declared in this scope<br>
boost::serialization::split_free(ar, t, file_version);<br>
^<br>
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:155:45: error: ‘file_version’ was not declared in this scope<br>
boost::serialization::split_free(ar, t, file_version);<br>
^<br>
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp: At global scope:<br>
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:168:11: error: ‘unordered_multimap’ in namespace ‘std’ does not name a type<br>
const std::unordered_multimap<<br>
^<br>
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:168:34: error: expected ‘,’ or ‘...’ before ‘<’ token<br>
const std::unordered_multimap<<br>
^<br>
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:166:13: error: redefinition of ‘template void boost::serialization::save(Archive&, int)’<br>
inline void save(<br>
^<br>
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:96:13: error: ‘template void boost::serialization::save(Archive&, int)’ previously declared here<br>
inline void save(<br>
^<br>
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp: In function ‘void boost::serialization::save(Archive&, int)’:<br>
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:175:9: error: ‘unordered_multimap’ is not a member of ‘std’<br>
std::unordered_multimap<<br>
^<br>
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:175:9: error: ‘unordered_multimap’ is not a member of ‘std’<br>
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:173:32: error: parse error in template argument list<br>
boost::serialization::stl::save_unordered_collection<<br>
^<br>
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:178:11: error: ‘t’ was not declared in this scope<br>
>(ar, t);<br>
^<br>
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp: At global scope:<br>
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:190:10: error: ‘std::unordered_multimap’ has not been declared<br>
std::unordered_multimap<<br>
^<br>
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:190:28: error: expected ‘,’ or ‘...’ before ‘<’ token<br>
std::unordered_multimap<<br>
^<br>
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:188:13: error: redefinition of ‘template void boost::serialization::load(Archive&, int)’<br>
inline void load(<br>
^<br>
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:118:13: error: ‘template void boost::serialization::load(Archive&, int)’ previously declared here<br>
inline void load(<br>
^<br>
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp: In function ‘void boost::serialization::load(Archive&, int)’:<br>
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:197:9: error: ‘unordered_multimap’ is not a member of ‘std’<br>
std::unordered_multimap<<br>
^<br>
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:197:9: error: ‘unordered_multimap’ is not a member of ‘std’<br>
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:195:32: error: parse error in template argument list<br>
boost::serialization::stl::load_unordered_collection<<br>
^<br>
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:202:13: error: ‘unordered_multimap’ is not a member of ‘std’<br>
std::unordered_multimap<<br>
^<br>
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:202:13: error: ‘unordered_multimap’ is not a member of ‘std’<br>
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:204:13: error: wrong number of template arguments (5, should be 2)<br>
><br>
^<br>
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:64:8: error: provided for ‘template struct boost::serialization::stl::archive_input_unordered_multimap’<br>
struct archive_input_unordered_multimap<br>
^<br>
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:206:5: error: expected primary-expression before ‘>’ token<br>
>(ar, t);<br>
^<br>
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:206:11: error: ‘t’ was not declared in this scope<br>
>(ar, t);<br>
^<br>
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp: At global scope:<br>
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:220:10: error: ‘std::unordered_multimap’ has not been declared<br>
std::unordered_multimap<<br>
^<br>
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:220:28: error: expected ‘,’ or ‘...’ before ‘<’ token<br>
std::unordered_multimap<<br>
^<br>
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:218:13: error: redefinition of ‘template void boost::serialization::serialize(Archive&, int)’<br>
inline void serialize(<br>
^<br>
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:148:13: error: ‘template void boost::serialization::serialize(Archive&, int)’ previously declared here<br>
inline void serialize(<br>
^<br>
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp: In function ‘void boost::serialization::serialize(Archive&, int)’:<br>
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:225:42: error: ‘t’ was not declared in this scope<br>
boost::serialization::split_free(ar, t, file_version);<br>
^<br>
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:225:45: error: ‘file_version’ was not declared in this scope<br>
boost::serialization::split_free(ar, t, file_version);<br>
^<br>
In file included from /usr/local/include/mlpack/prereqs.hpp:66:0,<br>
from /usr/local/include/mlpack/core.hpp:187,<br>
from ../main.cpp:9:<br>
/usr/local/include/mlpack/core/data/serialization_shim.hpp: At global scope:<br>
/usr/local/include/mlpack/core/data/serialization_shim.hpp:48:56: error: ‘>>’ should be ‘> >’ within a nested template argument list<br>
typename boost::enable_ifboost::is_class<U>::type<em>,<br>
^<br>
/usr/local/include/mlpack/core/data/serialization_shim.hpp:49:61: error: ‘>>’ should be ‘> >’ within a nested template argument list<br>
typename boost::enable_if>::type</em>><em>);<br>
^<br>
/usr/local/include/mlpack/core/data/serialization_shim.hpp:91:45: error: ‘>>’ should be ‘> >’ within a nested template argument list<br>
typename boost::enable_if>::type</em> = 0)<br>
^<br>
/usr/local/include/mlpack/core/data/serialization_shim.hpp:125:46: error: ‘>>’ should be ‘> >’ within a nested template argument list<br>
typename boost::disable_if>::type* = 0,<br>
^<br>
/usr/local/include/mlpack/core/data/serialization_shim.hpp:126:51: error: ‘>>’ should be ‘> >’ within a nested template argument list<br>
typename boost::disable_ifboost::is_pointer<T>::type* = 0)<br>
^<br>
/usr/local/include/mlpack/core/data/serialization_shim.hpp:160:45: error: ‘>>’ should be ‘> >’ within a nested template argument list<br>
typename boost::enable_if>::type* = 0)<br>
^<br>
/usr/local/include/mlpack/core/data/serialization_shim.hpp:195:46: error: ‘>>’ should be ‘> >’ within a nested template argument list<br>
typename boost::disable_if>::type* = 0)<br>
^<br>
/usr/local/include/mlpack/core/data/serialization_shim.hpp:212:45: error: ‘>>’ should be ‘> >’ within a nested template argument list<br>
typename boost::enable_if>::type* = 0)<br>
^<br>
/usr/local/include/mlpack/core/data/serialization_shim.hpp:229:46: error: ‘>>’ should be ‘> >’ within a nested template argument list<br>
typename boost::disable_if>::type* = 0)<br>
^<br>
In file included from /usr/local/include/mlpack/core/data/load.hpp:17:0,<br>
from /usr/local/include/mlpack/core.hpp:193,<br>
from ../main.cpp:9:<br>
/usr/local/include/mlpack/core/data/dataset_info.hpp:79:3: error: ‘unordered_map’ in namespace ‘std’ does not name a type<br>
std::unordered_map,<br>
^<br>
/usr/local/include/mlpack/core/data/dataset_info.hpp: In member function ‘void mlpack::data::DatasetInfo::Serialize(Archive&, unsigned int)’:<br>
/usr/local/include/mlpack/core/data/dataset_info.hpp:72:26: error: ‘maps’ was not declared in this scope<br>
ar & data::CreateNVP(maps, "maps");<br>
^<br>
In file included from /usr/local/include/mlpack/core/data/dataset_info.hpp:87:0,<br>
from /usr/local/include/mlpack/core/data/load.hpp:17,<br>
from /usr/local/include/mlpack/core.hpp:193,<br>
from ../main.cpp:9:<br>
/usr/local/include/mlpack/core/data/dataset_info_impl.hpp: In constructor ‘mlpack::data::DatasetInfo::DatasetInfo(size_t)’:<br>
/usr/local/include/mlpack/core/data/dataset_info_impl.hpp:18:27: error: ‘Datatype’ is not a class or namespace<br>
types(dimensionality, Datatype::numeric)<br>
^<br>
/usr/local/include/mlpack/core/data/dataset_info_impl.hpp: In member function ‘size_t mlpack::data::DatasetInfo::MapString(const string&, size_t)’:<br>
/usr/local/include/mlpack/core/data/dataset_info_impl.hpp:30:7: error: ‘maps’ was not declared in this scope<br>
if (maps.count(dimension) == 0 ||<br>
^<br>
/usr/local/include/mlpack/core/data/dataset_info_impl.hpp:36:26: error: ‘Datatype’ is not a class or namespace<br>
types[dimension] = Datatype::categorical;<br>
^<br>
/usr/local/include/mlpack/core/data/dataset_info_impl.hpp: In member function ‘const string& mlpack::data::DatasetInfo::UnmapString(size_t, size_t)’:<br>
/usr/local/include/mlpack/core/data/dataset_info_impl.hpp:54:7: error: ‘maps’ was not declared in this scope<br>
if (maps[dimension].first.right.count(value) == 0)<br>
^<br>
/usr/local/include/mlpack/core/data/dataset_info_impl.hpp:62:10: error: ‘maps’ was not declared in this scope<br>
return maps[dimension].first.right.at(value);<br>
^<br>
/usr/local/include/mlpack/core/data/dataset_info_impl.hpp: In member function ‘mlpack::data::Datatype& mlpack::data::DatasetInfo::Type(size_t)’:<br>
/usr/local/include/mlpack/core/data/dataset_info_impl.hpp:82:33: error: ‘Datatype’ is not a class or namespace<br>
types.resize(dimension + 1, Datatype::numeric);<br>
^<br>
/usr/local/include/mlpack/core/data/dataset_info_impl.hpp: In member function ‘size_t mlpack::data::DatasetInfo::NumMappings(size_t) const’:<br>
/usr/local/include/mlpack/core/data/dataset_info_impl.hpp:89:11: error: ‘maps’ was not declared in this scope<br>
return (maps.count(dimension) == 0) ? 0 : maps.at(dimension).second;<br>
^<br>
In file included from /usr/local/include/mlpack/core.hpp:193:0,<br>
from ../main.cpp:9:<br>
/usr/local/include/mlpack/core/data/load.hpp: At global scope:<br>
/usr/local/include/mlpack/core/data/load.hpp:131:22: error: ‘format’ is not a class or namespace<br>
format f = format::autodetect);<br>
^<br>
In file included from /usr/local/include/mlpack/core/data/load_arff.hpp:54:0,<br>
from /usr/local/include/mlpack/core/data/load_impl.hpp:27,<br>
from /usr/local/include/mlpack/core/data/load.hpp:137,<br>
from /usr/local/include/mlpack/core.hpp:193,<br>
from ../main.cpp:9:<br>
/usr/local/include/mlpack/core/data/load_arff_impl.hpp: In function ‘void mlpack::data::LoadARFF(const string&, arma::Mat&, mlpack::data::DatasetInfo&)’:<br>
/usr/local/include/mlpack/core/data/load_arff_impl.hpp:23:20: error: no matching function for call to ‘std::basic_ifstream::open(const string&)’<br>
ifs.open(filename);<br>
^<br>
/usr/local/include/mlpack/core/data/load_arff_impl.hpp:23:20: note: candidate is:<br>
In file included from /usr/include/armadillo:21:0,<br>
from /usr/local/include/mlpack/core/arma_extend/arma_extend.hpp:33,<br>
from /usr/local/include/mlpack/prereqs.hpp:69,<br>
from /usr/local/include/mlpack/core.hpp:187,<br>
from ../main.cpp:9:<br>
/usr/include/c++/4.8/fstream:538:7: note: void std::basic_ifstream<_CharT, _Traits>::open(const char<em>, std::ios_base::openmode) [with _CharT = char; _Traits = std::char_traits; std::ios_base::openmode = std::_Ios_Openmode]<br>
open(const char</em> __s, ios_base::openmode __mode = ios_base::in)<br>
^<br>
/usr/include/c++/4.8/fstream:538:7: note: no known conversion for argument 1 from ‘const string {aka const std::basic_string}’ to ‘const char<em>’<br>
In file included from /usr/local/include/mlpack/core/data/load_arff.hpp:54:0,<br>
from /usr/local/include/mlpack/core/data/load_impl.hpp:27,<br>
from /usr/local/include/mlpack/core/data/load.hpp:137,<br>
from /usr/local/include/mlpack/core.hpp:193,<br>
from ../main.cpp:9:<br>
/usr/local/include/mlpack/core/data/load_arff_impl.hpp:44:66: error: ‘>>’ should be ‘> >’ within a nested template argument list<br>
typedef boost::tokenizerboost::escaped_list_separator<char> Tokenizer;<br>
^<br>
/usr/local/include/mlpack/core/data/load_arff_impl.hpp:113:22: error: ‘Datatype’ is not a class or namespace<br>
info.Type(i) = Datatype::categorical;<br>
^<br>
/usr/local/include/mlpack/core/data/load_arff_impl.hpp:115:22: error: ‘Datatype’ is not a class or namespace<br>
info.Type(i) = Datatype::numeric;<br>
^<br>
/usr/local/include/mlpack/core/data/load_arff_impl.hpp:154:64: error: ‘>>’ should be ‘> >’ within a nested template argument list<br>
typedef boost::tokenizerboost::escaped_list_separator<char> Tokenizer;<br>
^<br>
/usr/local/include/mlpack/core/data/load_arff_impl.hpp:163:29: error: ‘Datatype’ is not a class or namespace<br>
if (info.Type(col) == Datatype::categorical)<br>
^<br>
/usr/local/include/mlpack/core/data/load_arff_impl.hpp:167:34: error: ‘Datatype’ is not a class or namespace<br>
else if (info.Type(col) == Datatype::numeric)<br>
^<br>
In file included from /usr/local/include/mlpack/core/data/load.hpp:137:0,<br>
from /usr/local/include/mlpack/core.hpp:193,<br>
from ../main.cpp:9:<br>
/usr/local/include/mlpack/core/data/load_impl.hpp: In function ‘bool mlpack::data::Load(const string&, arma::Mat&, mlpack::data::DatasetInfo&, bool, bool)’:<br>
/usr/local/include/mlpack/core/data/load_impl.hpp:350:64: error: ‘>>’ should be ‘> >’ within a nested template argument list<br>
typedef boost::tokenizerboost::escaped_list_separator<char> Tokenizer;<br>
^<br>
/usr/local/include/mlpack/core/data/load_impl.hpp:379:43: error: no matching function for call to ‘std::basic_fstream::open(const string&, const openmode&)’<br>
stream.open(filename, std::fstream::in);<br>
^<br>
/usr/local/include/mlpack/core/data/load_impl.hpp:379:43: note: candidate is:<br>
In file included from /usr/include/armadillo:21:0,<br>
from /usr/local/include/mlpack/core/arma_extend/arma_extend.hpp:33,<br>
from /usr/local/include/mlpack/prereqs.hpp:69,<br>
from /usr/local/include/mlpack/core.hpp:187,<br>
from ../main.cpp:9:<br>
/usr/include/c++/4.8/fstream:886:7: note: void std::basic_fstream<_CharT, _Traits>::open(const char</em>, std::ios_base::openmode) [with _CharT = char; _Traits = std::char_traits; std::ios_base::openmode = std::_Ios_Openmode]<br>
open(const char* __s,<br>
^<br>
/usr/include/c++/4.8/fstream:886:7: note: no known conversion for argument 1 from ‘const string {aka const std::basic_string}’ to ‘const char<em>’<br>
In file included from /usr/local/include/mlpack/core/data/load.hpp:137:0,<br>
from /usr/local/include/mlpack/core.hpp:193,<br>
from ../main.cpp:9:<br>
/usr/local/include/mlpack/core/data/load_impl.hpp:411:35: error: ‘Datatype’ is not a class or namespace<br>
if (info.Type(dim) == Datatype::numeric)<br>
^<br>
/usr/local/include/mlpack/core/data/load_impl.hpp: In function ‘bool mlpack::data::Load(const string&, const string&, T&, bool, mlpack::data::format)’:<br>
/usr/local/include/mlpack/core/data/load_impl.hpp:508:12: error: ‘format’ is not a class or namespace<br>
if (f == format::autodetect)<br>
^<br>
/usr/local/include/mlpack/core/data/load_impl.hpp:513:11: error: ‘format’ is not a class or namespace<br>
f = format::xml;<br>
^<br>
/usr/local/include/mlpack/core/data/load_impl.hpp:515:11: error: ‘format’ is not a class or namespace<br>
f = format::binary;<br>
^<br>
/usr/local/include/mlpack/core/data/load_impl.hpp:517:11: error: ‘format’ is not a class or namespace<br>
f = format::text;<br>
^<br>
/usr/local/include/mlpack/core/data/load_impl.hpp:539:39: error: no matching function for call to ‘std::basic_ifstream::open(const string&, const openmode&)’<br>
ifs.open(filename, std::ifstream::in);<br>
^<br>
/usr/local/include/mlpack/core/data/load_impl.hpp:539:39: note: candidate is:<br>
In file included from /usr/include/armadillo:21:0,<br>
from /usr/local/include/mlpack/core/arma_extend/arma_extend.hpp:33,<br>
from /usr/local/include/mlpack/prereqs.hpp:69,<br>
from /usr/local/include/mlpack/core.hpp:187,<br>
from ../main.cpp:9:<br>
/usr/include/c++/4.8/fstream:538:7: note: void std::basic_ifstream<_CharT, _Traits>::open(const char</em>, std::ios_base::openmode) [with _CharT = char; _Traits = std::char_traits; std::ios_base::openmode = std::_Ios_Openmode]<br>
open(const char* __s, ios_base::openmode __mode = ios_base::in)<br>
^<br>
/usr/include/c++/4.8/fstream:538:7: note: no known conversion for argument 1 from ‘const string {aka const std::basic_string}’ to ‘const char<em>’<br>
In file included from /usr/local/include/mlpack/core/data/load.hpp:137:0,<br>
from /usr/local/include/mlpack/core.hpp:193,<br>
from ../main.cpp:9:<br>
/usr/local/include/mlpack/core/data/load_impl.hpp:556:14: error: ‘format’ is not a class or namespace<br>
if (f == format::xml)<br>
^<br>
/usr/local/include/mlpack/core/data/load_impl.hpp:561:19: error: ‘format’ is not a class or namespace<br>
else if (f == format::text)<br>
^<br>
/usr/local/include/mlpack/core/data/load_impl.hpp:566:19: error: ‘format’ is not a class or namespace<br>
else if (f == format::binary)<br>
^<br>
In file included from /usr/local/include/mlpack/core.hpp:194:0,<br>
from ../main.cpp:9:<br>
/usr/local/include/mlpack/core/data/save.hpp: At global scope:<br>
/usr/local/include/mlpack/core/data/save.hpp:86:22: error: ‘format’ is not a class or namespace<br>
format f = format::autodetect);<br>
^<br>
In file included from /usr/local/include/mlpack/core/data/save.hpp:92:0,<br>
from /usr/local/include/mlpack/core.hpp:194,<br>
from ../main.cpp:9:<br>
/usr/local/include/mlpack/core/data/save_impl.hpp: In function ‘bool mlpack::data::Save(const string&, const string&, T&, bool, mlpack::data::format)’:<br>
/usr/local/include/mlpack/core/data/save_impl.hpp:180:12: error: ‘format’ is not a class or namespace<br>
if (f == format::autodetect)<br>
^<br>
/usr/local/include/mlpack/core/data/save_impl.hpp:185:11: error: ‘format’ is not a class or namespace<br>
f = format::xml;<br>
^<br>
/usr/local/include/mlpack/core/data/save_impl.hpp:187:11: error: ‘format’ is not a class or namespace<br>
f = format::binary;<br>
^<br>
/usr/local/include/mlpack/core/data/save_impl.hpp:189:11: error: ‘format’ is not a class or namespace<br>
f = format::text;<br>
^<br>
/usr/local/include/mlpack/core/data/save_impl.hpp:212:40: error: no matching function for call to ‘std::basic_ofstream::open(const string&, const openmode&)’<br>
ofs.open(filename, std::ofstream::out);<br>
^<br>
/usr/local/include/mlpack/core/data/save_impl.hpp:212:40: note: candidate is:<br>
In file included from /usr/include/armadillo:21:0,<br>
from /usr/local/include/mlpack/core/arma_extend/arma_extend.hpp:33,<br>
from /usr/local/include/mlpack/prereqs.hpp:69,<br>
from /usr/local/include/mlpack/core.hpp:187,<br>
from ../main.cpp:9:<br>
/usr/include/c++/4.8/fstream:713:7: note: void std::basic_ofstream<_CharT, _Traits>::open(const char</em>, std::ios_base::openmode) [with _CharT = char; _Traits = std::char_traits; std::ios_base::openmode = std::_Ios_Openmode]<br>
open(const char* __s,<br>
^<br>
/usr/include/c++/4.8/fstream:713:7: note: no known conversion for argument 1 from ‘const string {aka const std::basic_string}’ to ‘const char<em>’<br>
In file included from /usr/local/include/mlpack/core/data/save.hpp:92:0,<br>
from /usr/local/include/mlpack/core.hpp:194,<br>
from ../main.cpp:9:<br>
/usr/local/include/mlpack/core/data/save_impl.hpp:229:14: error: ‘format’ is not a class or namespace<br>
if (f == format::xml)<br>
^<br>
/usr/local/include/mlpack/core/data/save_impl.hpp:234:19: error: ‘format’ is not a class or namespace<br>
else if (f == format::text)<br>
^<br>
/usr/local/include/mlpack/core/data/save_impl.hpp:239:19: error: ‘format’ is not a class or namespace<br>
else if (f == format::binary)<br>
^<br>
In file included from /usr/local/include/mlpack/core.hpp:197:0,<br>
from ../main.cpp:9:<br>
/usr/local/include/mlpack/core/math/random.hpp: At global scope:<br>
/usr/local/include/mlpack/core/math/random.hpp:16:8: error: ‘mt19937’ in namespace ‘std’ does not name a type<br>
extern std::mt19937 randGen;<br>
^<br>
/usr/local/include/mlpack/core/math/random.hpp:18:8: error: ‘uniform_real_distribution’ in namespace ‘std’ does not name a type<br>
extern std::uniform_real_distribution<> randUniformDist;<br>
^<br>
/usr/local/include/mlpack/core/math/random.hpp:20:8: error: ‘normal_distribution’ in namespace ‘std’ does not name a type<br>
extern std::normal_distribution<> randNormalDist;<br>
^<br>
/usr/local/include/mlpack/core/math/random.hpp: In function ‘void mlpack::math::RandomSeed(size_t)’:<br>
/usr/local/include/mlpack/core/math/random.hpp:31:3: error: ‘randGen’ was not declared in this scope<br>
randGen.seed((uint32_t) seed);<br>
^<br>
/usr/local/include/mlpack/core/math/random.hpp: In function ‘double mlpack::math::Random()’:<br>
/usr/local/include/mlpack/core/math/random.hpp:46:26: error: ‘randGen’ was not declared in this scope<br>
return randUniformDist(randGen);<br>
^<br>
/usr/local/include/mlpack/core/math/random.hpp:46:33: error: ‘randUniformDist’ was not declared in this scope<br>
return randUniformDist(randGen);<br>
^<br>
/usr/local/include/mlpack/core/math/random.hpp: In function ‘double mlpack::math::Random(double, double)’:<br>
/usr/local/include/mlpack/core/math/random.hpp:54:43: error: ‘randGen’ was not declared in this scope<br>
return lo + (hi - lo) * randUniformDist(randGen);<br>
^<br>
/usr/local/include/mlpack/core/math/random.hpp:54:50: error: ‘randUniformDist’ was not declared in this scope<br>
return lo + (hi - lo) * randUniformDist(randGen);<br>
^<br>
/usr/local/include/mlpack/core/math/random.hpp: In function ‘int mlpack::math::RandInt(int)’:<br>
/usr/local/include/mlpack/core/math/random.hpp:62:66: error: ‘randGen’ was not declared in this scope<br>
return (int) std::floor((double) hiExclusive * randUniformDist(randGen));<br>
^<br>
/usr/local/include/mlpack/core/math/random.hpp:62:73: error: ‘randUniformDist’ was not declared in this scope<br>
return (int) std::floor((double) hiExclusive * randUniformDist(randGen));<br>
^<br>
/usr/local/include/mlpack/core/math/random.hpp: In function ‘int mlpack::math::RandInt(int, int)’:<br>
/usr/local/include/mlpack/core/math/random.hpp:71:50: error: ‘randGen’ was not declared in this scope<br>
* randUniformDist(randGen));<br>
^<br>
/usr/local/include/mlpack/core/math/random.hpp:71:57: error: ‘randUniformDist’ was not declared in this scope<br>
* randUniformDist(randGen));<br>
^<br>
/usr/local/include/mlpack/core/math/random.hpp: In function ‘double mlpack::math::RandNormal()’:<br>
/usr/local/include/mlpack/core/math/random.hpp:79:25: error: ‘randGen’ was not declared in this scope<br>
return randNormalDist(randGen);<br>
^<br>
/usr/local/include/mlpack/core/math/random.hpp:79:32: error: ‘randNormalDist’ was not declared in this scope<br>
return randNormalDist(randGen);<br>
^<br>
/usr/local/include/mlpack/core/math/random.hpp: In function ‘double mlpack::math::RandNormal(double, double)’:<br>
/usr/local/include/mlpack/core/math/random.hpp:91:36: error: ‘randGen’ was not declared in this scope<br>
return variance * randNormalDist(randGen) + mean;<br>
^<br>
/usr/local/include/mlpack/core/math/random.hpp:91:43: error: ‘randNormalDist’ was not declared in this scope<br>
return variance * randNormalDist(randGen) + mean;<br>
^<br>
In file included from /usr/local/include/mlpack/core.hpp:203:0,<br>
from ../main.cpp:9:<br>
/usr/local/include/mlpack/core/dists/gaussian_distribution.hpp: At global scope:<br>
/usr/local/include/mlpack/core/dists/gaussian_distribution.hpp:34:16: error: ‘constexpr’ does not name a type<br>
static const constexpr double log2pi = 1.83787706640934533908193770912475883;<br>
^<br>
/usr/local/include/mlpack/core/dists/gaussian_distribution.hpp:34:16: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11<br>
/usr/local/include/mlpack/core/dists/gaussian_distribution.hpp:138:28: error: expected ‘,’ or ‘...’ before ‘&&’ token<br>
void Covariance(arma::mat&& covariance);<br>
^<br>
/usr/local/include/mlpack/core/dists/gaussian_distribution.hpp: In member function ‘void mlpack::distribution::GaussianDistribution::LogProbability(const mat&, arma::vec&) const’:<br>
/usr/local/include/mlpack/core/dists/gaussian_distribution.hpp:189:33: error: ‘log2pi’ was not declared in this scope<br>
logProbabilities = -0.5 * k * log2pi - 0.5 * logDetCov + logExponents;<br>
^<br>
make: *</em>* [main.o] Error 1</p>
<p>16:27:26 Build Finished (took 5s.175ms)</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/mlpack/mlpack/issues/503#issuecomment-172820342">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFDnp6DxfvlhvwHCZrt4lEHrvtzodks5pbhH9gaJpZM4HHoRn.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/mlpack/mlpack/issues/503#issuecomment-172820342"></link>
<meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>