Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Command: g++ -lmlpack test.cpp -I /usr/include/libxml2
- Error
- In file included from /usr/include/c++/4.9/random:35:0,
- from /usr/local/include/mlpack/core/math/random.hpp:10,
- from /usr/local/include/mlpack/core.hpp:161,
- from test.cpp:1:
- /usr/include/c++/4.9/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/core.hpp:156:0,
- from test.cpp:1:
- /usr/local/include/mlpack/core/util/ostream_extra.hpp:31:58: error: default template arguments may not be used in function templates without -std=c++11 or -std=gnu++11
- std::ostream& operator<<(std::ostream& stream, const T& t)
- ^
- In file included from /usr/local/include/mlpack/core.hpp:161:0,
- from test.cpp:1:
- /usr/local/include/mlpack/core/math/random.hpp:16:13: error: ‘mt19937’ in namespace ‘std’ does not name a type
- extern std::mt19937 randGen;
- ^
- /usr/local/include/mlpack/core/math/random.hpp:18:13: error: ‘uniform_real_distribution’ in namespace ‘std’ does not name a template type
- extern std::uniform_real_distribution<> randUniformDist;
- ^
- /usr/local/include/mlpack/core/math/random.hpp:20:13: error: ‘normal_distribution’ in namespace ‘std’ does not name a template type
- extern std::normal_distribution<> randNormalDist;
- ^
- /usr/local/include/mlpack/core/math/random.hpp: In function ‘void mlpack::math::RandomSeed(size_t)’:
- /usr/local/include/mlpack/core/math/random.hpp:31:3: error: ‘randGen’ was not declared in this scope
- randGen.seed((uint32_t) seed);
- ^
- /usr/local/include/mlpack/core/math/random.hpp: In function ‘double mlpack::math::Random()’:
- /usr/local/include/mlpack/core/math/random.hpp:46:26: error: ‘randGen’ was not declared in this scope
- return randUniformDist(randGen);
- ^
- /usr/local/include/mlpack/core/math/random.hpp:46:33: error: ‘randUniformDist’ was not declared in this scope
- return randUniformDist(randGen);
- ^
- /usr/local/include/mlpack/core/math/random.hpp: In function ‘double mlpack::math::Random(double, double)’:
- /usr/local/include/mlpack/core/math/random.hpp:54:43: error: ‘randGen’ was not declared in this scope
- return lo + (hi - lo) * randUniformDist(randGen);
- ^
- /usr/local/include/mlpack/core/math/random.hpp:54:50: error: ‘randUniformDist’ was not declared in this scope
- return lo + (hi - lo) * randUniformDist(randGen);
- ^
- /usr/local/include/mlpack/core/math/random.hpp: In function ‘int mlpack::math::RandInt(int)’:
- /usr/local/include/mlpack/core/math/random.hpp:62:66: error: ‘randGen’ was not declared in this scope
- return (int) std::floor((double) hiExclusive * randUniformDist(randGen));
- ^
- /usr/local/include/mlpack/core/math/random.hpp:62:73: error: ‘randUniformDist’ was not declared in this scope
- return (int) std::floor((double) hiExclusive * randUniformDist(randGen));
- ^
- /usr/local/include/mlpack/core/math/random.hpp: In function ‘int mlpack::math::RandInt(int, int)’:
- /usr/local/include/mlpack/core/math/random.hpp:71:50: error: ‘randGen’ was not declared in this scope
- * randUniformDist(randGen));
- ^
- /usr/local/include/mlpack/core/math/random.hpp:71:57: error: ‘randUniformDist’ was not declared in this scope
- * randUniformDist(randGen));
- ^
- /usr/local/include/mlpack/core/math/random.hpp: In function ‘double mlpack::math::RandNormal()’:
- /usr/local/include/mlpack/core/math/random.hpp:79:25: error: ‘randGen’ was not declared in this scope
- return randNormalDist(randGen);
- ^
- /usr/local/include/mlpack/core/math/random.hpp:79:32: error: ‘randNormalDist’ was not declared in this scope
- return randNormalDist(randGen);
- ^
- /usr/local/include/mlpack/core/math/random.hpp: In function ‘double mlpack::math::RandNormal(double, double)’:
- /usr/local/include/mlpack/core/math/random.hpp:91:36: error: ‘randGen’ was not declared in this scope
- return variance * randNormalDist(randGen) + mean;
- ^
- /usr/local/include/mlpack/core/math/random.hpp:91:43: error: ‘randNormalDist’ was not declared in this scope
- return variance * randNormalDist(randGen) + mean;
- ^
- In file included from /usr/local/include/mlpack/core.hpp:167:0,
- from test.cpp:1:
- /usr/local/include/mlpack/core/dists/gaussian_distribution.hpp: At global scope:
- /usr/local/include/mlpack/core/dists/gaussian_distribution.hpp:34:16: error: ‘constexpr’ does not name a type
- static const constexpr double log2pi = 1.83787706640934533908193770912475883;
- ^
- /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
- /usr/local/include/mlpack/core/dists/gaussian_distribution.hpp:138:28: error: expected ‘,’ or ‘...’ before ‘&&’ token
- void Covariance(arma::mat&& covariance);
- ^
- /usr/local/include/mlpack/core/dists/gaussian_distribution.hpp: In member function ‘void mlpack::distribution::GaussianDistribution::LogProbability(const mat&, arma::vec&) const’:
- /usr/local/include/mlpack/core/dists/gaussian_distribution.hpp:181:33: error: ‘log2pi’ was not declared in this scope
- logProbabilities = -0.5 * k * log2pi - 0.5 * logDetCov + logExponents;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement