Build error while using Armadillo on Windows platform

I had installed armadillo library on window visual studio 2013. When i attempted to build the solution. The following build error occurred. Any help will be appreciated.

1>------ Build started: Project: ConsoleApplication1, Configuration: Debug x64 ------
1>  Source.cpp
1>c:usershaixundesktoptest_programstestingapplicationarmadillo-5.100.2includearmadillo_bits/diskio_meat.hpp(787): error C4146: unary minus operator applied to unsigned type, result still unsigned
1>          c:usershaixundesktoptest_programstestingapplicationarmadillo-5.100.2includearmadillo_bits/diskio_meat.hpp(1626) : see reference to function template instantiation 'bool arma::diskio::convert_naninf<eT>(eT &,const std::string &)' being compiled
1>          with
1>          [
1>              eT=arma::u32
1>          ]
1>          c:usershaixundesktoptest_programstestingapplicationarmadillo-5.100.2includearmadillo_bits/diskio_meat.hpp(1652) : see reference to function template instantiation 'bool arma::diskio::load_arma_ascii<arma::u32>(arma::Mat<arma::u32> &,std::istream &,std::string &)' being compiled
1>          c:usershaixundesktoptest_programstestingapplicationarmadillo-5.100.2includearmadillo_bits/diskio_meat.hpp(1571) : see reference to function template instantiation 'bool arma::diskio::load_arma_ascii<double>(arma::Mat<double> &,std::istream &,std::string &)' being compiled
1>          c:usershaixundesktoptest_programstestingapplicationarmadillo-5.100.2includearmadillo_bits/Mat_meat.hpp(6553) : see reference to function template instantiation 'bool arma::diskio::load_arma_ascii<double>(arma::Mat<double> &,const std::string &,std::string &)' being compiled
1>          c:usershaixundesktoptest_programstestingapplicationarmadillo-5.100.2includearmadillo_bits/Mat_meat.hpp(6536) : while compiling class template member function 'bool arma::Mat<double>::load(const std::string,const arma::file_type,const bool)'
1>          Source.cpp(50) : see reference to function template instantiation 'bool arma::Mat<double>::load(const std::string,const arma::file_type,const bool)' being compiled
1>          c:usershaixundesktoptest_programstestingapplicationarmadillo-5.100.2includearmadillo_bits/typedef_mat_fixed.hpp(41) : see reference to class template instantiation 'arma::Mat<double>' being compiled
1>c:usershaixundesktoptest_programstestingapplicationarmadillo-5.100.2includearmadillo_bits/diskio_meat.hpp(794): error C4146: unary minus operator applied to unsigned type, result still unsigned
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


Source: c++

Leave a Reply