[mlpack] cpp program using mlpack/core.hpp not getting compiled
Nikhil Yadala
nikhil.yadala at gmail.com
Sun Feb 21 06:56:48 EST 2016
I am trying to run sample programs given in the tutorials page, But i could
not get the cpp file compiled with out errors. It seems that these are the
errors in the library files. could nay one guide me to get rid of this and
compile my first program using mlpack.
the following is the error the terminal shows up!
In file included from /usr/include/c++/4.8/unordered_map:35:0,
from
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:23,
from /usr/local/include/mlpack/prereqs.hpp:64,
from /usr/local/include/mlpack/core.hpp:196,
from 1.cpp:2:
/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.
#error This file requires compiler and library support for the \
^
In file included from /usr/local/include/mlpack/prereqs.hpp:64:0,
from /usr/local/include/mlpack/core.hpp:196,
from 1.cpp:2:
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:98:11:
error: ‘unordered_map’ in namespace ‘std’ does not name a type
const std::unordered_map<
^
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:98:29:
error: expected ‘,’ or ‘...’ before ‘<’ token
const std::unordered_map<
^
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp: In
function ‘void boost::serialization::save(Archive&, int)’:
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:105:9:
error: ‘unordered_map’ is not a member of ‘std’
std::unordered_map<
^
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:105:9:
error: ‘unordered_map’ is not a member of ‘std’
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:103:32:
error: parse error in template argument list
boost::serialization::stl::save_unordered_collection<
^
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:108:11:
error: ‘t’ was not declared in this scope
>(ar, t);
^
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp: At global
scope:
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:120:10:
error: ‘std::unordered_map’ has not been declared
std::unordered_map<
^
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:120:23:
error: expected ‘,’ or ‘...’ before ‘<’ token
std::unordered_map<
^
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp: In
function ‘void boost::serialization::load(Archive&, int)’:
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:127:9:
error: ‘unordered_map’ is not a member of ‘std’
std::unordered_map<
^
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:127:9:
error: ‘unordered_map’ is not a member of ‘std’
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:125:32:
error: parse error in template argument list
boost::serialization::stl::load_unordered_collection<
^
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:132:13:
error: ‘unordered_map’ is not a member of ‘std’
std::unordered_map<
^
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:132:13:
error: ‘unordered_map’ is not a member of ‘std’
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:134:13:
error: wrong number of template arguments (5, should be 2)
>
^
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:37:8:
error: provided for ‘template<class Archive, class Container> struct
boost::serialization::stl::archive_input_unordered_map’
struct archive_input_unordered_map
^
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:136:5:
error: expected primary-expression before ‘>’ token
>(ar, t);
^
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:136:11:
error: ‘t’ was not declared in this scope
>(ar, t);
^
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp: At global
scope:
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:150:10:
error: ‘std::unordered_map’ has not been declared
std::unordered_map<
^
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp:150:23:
error: expected ‘,’ or ‘...’ before ‘<’ token
std::unordered_map<
^
/usr/local/include/mlpack/core/boost_backport/unordered_map.hpp: In
function ‘void boost::serialization::serialize(Archive&, int)’:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack/attachments/20160221/bbc47f57/attachment-0001.html>
More information about the mlpack
mailing list