I can not compile an example of a base accelerator . I am on Windows 10 and I am using nuwen MinGW distro version 15.0 without git. This version contains GCC 7.10 and Boost 1.64. I unpacked MinGw and put it at the root of my file system, and I follow the instructions for using MinGW to run set_distro_paths.bat. Below is the code that does not work on my system:
vector-fail.cpp:
#include <boost/numeric/ublas/vector.hpp> #include <boost/numeric/ublas/io.hpp> int main () { using namespace boost::numeric::ublas; vector<double> v (3); for (unsigned i = 0; i < v.size (); ++ i) v (i) = i; std::cout << v << std::endl; }
Makefile:
vector-fail: vector-fail.o g++ vector-fail.o -o vector-fail vector-fail.o: vector-fail.cpp g++ -c vector-fail.cpp -o vector-fail.o
Output:
g++ -c vector-fail.cpp -o vector-fail.o In file included from C:\MinGW\include/boost/numeric/ublas/vector.hpp:21:0, from vector-fail.cpp:1: C:\MinGW\include/boost/numeric/ublas/storage.hpp: In member function 'void boost::numeric::ublas::unbounded_array<T, ALLOC>::serialize(Archive&, unsigned int)': C:\MinGW\include/boost/numeric/ublas/storage.hpp:299:33: error: 'make_array' is not a member of 'boost::serialization' ar & serialization::make_array(data_, s); ^~~~~~~~~~ C:\MinGW\include/boost/numeric/ublas/storage.hpp:299:33: note: suggested alternative: 'make_nvp' ar & serialization::make_array(data_, s); ^~~~~~~~~~ make_nvp C:\MinGW\include/boost/numeric/ublas/storage.hpp: In member function 'void boost::numeric::ublas::bounded_array<T, N, ALLOC>::serialize(Archive&, unsigned int)': C:\MinGW\include/boost/numeric/ublas/storage.hpp:494:33: error: 'make_array' is not a member of 'boost::serialization' ar & serialization::make_array(data_, s); ^~~~~~~~~~ C:\MinGW\include/boost/numeric/ublas/storage.hpp:494:33: note: suggested alternative: 'make_nvp' ar & serialization::make_array(data_, s); ^~~~~~~~~~ make_nvp make: *** [Makefile:5: vector-fail.o] Error 1
Unfortunately, none of these errors occur in my code, rather they are caused by files inside include files inside boost library. What changes can be made to the application level code or Makefile so that the program can compile?
source share