I am trying to build the OpenNN library with MinGW on Windows 10. I'm getting lots of build errors, which make me think I haven't configured something correctly using CMake.
I used the CMake GUI to configure, selecting "MinGW Makefiles" and "use default native compilers". It seems to configure and generate without errors.
However, when I try to build it from the command line, using "mingw32-make all", it compiles for about 5 minutes, then produces thousands of "undefined reference to `std::*" errors. These are some of them:
undefined reference to `__cxa_allocate_exception'
undefined reference to `std::logic_error::logic_error(std::string const&)'
undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()'
undefined reference to `std::logic_error::~logic_error()'
undefined reference to `__cxa_throw'
undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)'
undefined reference to `__cxa_allocate_exception'
undefined reference to `std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >::str() const'
undefined reference to `__cxa_allocate_exception'
undefined reference to `std::allocator<char>::allocator()'
undefined reference to `__gxx_personality_sj0'
undefined reference to `operator delete(void*)'
What am I doing wrong? It mentions in the build instructions that it's compatible with "MPI and OpenMP compilations" (I assume it means compilers). Does that mean it's not compatible with MinGW? Because it mentions GNU in the list of OpenMP compatible compilers.