使用MinGW构建OpenNN

时间:2017-11-22 23:57:29

标签: cmake mingw mingw32 opennn

我正在尝试在Windows 10上使用MinGW构建OpenNN库。我遇到了很多构建错误,这让我觉得我还没有使用CMake正确配置某些东西。

我使用CMake GUI配置,选择" MinGW Makefiles"和"使用默认的本机编译器"。它似乎配置和生成没有错误。

但是,当我尝试从命令行构建它时,使用" mingw32-make all",它编译大约5分钟,然后生成数千个未定义的对`std的引用: :*"错误。其中一些是:

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*)'

我做错了什么?它在build instructions中提及它与&#34; MPI和OpenMP汇编兼容&#34; (我认为这意味着编译器)。这是否意味着它与MinGW不兼容?因为它在list of OpenMP compatible compilers中提到了GNU。

0 个答案:

没有答案