Open Marchbruno09 opened 5 years ago
Follows is the error after make: [ 44%] Linking CXX executable test_cpu CMakeFiles/test_cpu.dir/tests/test_cpu.cpp.o: In function softmax(float const*, int, int, float*)': test_cpu.cpp:(.text+0x11f): undefined reference toexpf' test_cpu.cpp:(.text+0x154): undefined reference to expf' CMakeFiles/test_cpu.dir/tests/test_cpu.cpp.o: In functionoptions_test()': test_cpu.cpp:(.text+0x1e9): undefined reference to operator new(unsigned long)' test_cpu.cpp:(.text+0x23e): undefined reference tooperator new(unsigned long)' test_cpu.cpp:(.text+0x28a): undefined reference to operator new(unsigned long)' test_cpu.cpp:(.text+0x2cb): undefined reference tologf' test_cpu.cpp:(.text+0x309): undefined reference to logf' test_cpu.cpp:(.text+0x31d): undefined reference tooperator new(unsigned long)' test_cpu.cpp:(.text+0x365): undefined reference to operator new(unsigned long)' test_cpu.cpp:(.text+0x383): undefined reference tooperator new(unsigned long)' test_cpu.cpp:(.text+0x3a1): undefined reference to operator new(unsigned long)' test_cpu.cpp:(.text+0x3c5): undefined reference tooperator new(unsigned long)' test_cpu.cpp:(.text+0x4de): undefined reference to std::ostream::put(char)' test_cpu.cpp:(.text+0x4e6): undefined reference tostd::ostream::flush()' test_cpu.cpp:(.text+0x55f): undefined reference to std::cerr' test_cpu.cpp:(.text+0x564): undefined reference tostd::basic_ostream<char, std::char_traits >& std::ostream_insert<char, std::char_traits >(std::basic_ostream<char, std::char_traits >&, char const*, long)' test_cpu.cpp:(.text+0x573): undefined reference to std::cerr' test_cpu.cpp:(.text+0x578): undefined reference tostd::basic_ostream<char, std::char_traits >& std::ostream_insert<char, std::char_traits >(std::basic_ostream<char, std::char_traits >&, char const, long)' test_cpu.cpp:(.text+0x585): undefined reference to std::cerr' test_cpu.cpp:(.text+0x58a): undefined reference tostd::ostream& std::ostream::_M_insert(double)' test_cpu.cpp:(.text+0x59f): undefined reference to `std::basic_ostream<char, std::char_traits >& std::__ostream_insert<char, std::char_traits >(std::basic_ostream<char, std::char_traits >&, char const, long)' test_cpu.cpp:(.text+0x5af): undefined reference to std::ostream& std::ostream::_M_insert<double>(double)' test_cpu.cpp:(.text+0x5c4): undefined reference tostd::basic_ostream<char, std::char_traits >& std::ostream_insert<char, std::char_traits >(std::basic_ostream<char, std::char_traits >&, char const*, long)' test_cpu.cpp:(.text+0x5d4): undefined reference to std::ostream& std::ostream::_M_insert<double>(double)' test_cpu.cpp:(.text+0x5e9): undefined reference tostd::basic_ostream<char, std::char_traits >& std::ostream_insert<char, std::char_traits >(std::basic_ostream<char, std::char_traits >&, char const, long)' test_cpu.cpp:(.text+0x5f9): undefined reference to std::ostream& std::ostream::_M_insert<double>(double)' test_cpu.cpp:(.text+0x60e): undefined reference tostd::basic_ostream<char, std::char_traits >& std::__ostream_insert<char, std::char_traits >(std::basic_ostream<char, std::char_traits >&, char const, long)' test_cpu.cpp:(.text+0x61e): undefined reference to std::ostream& std::ostream::_M_insert<double>(double)' test_cpu.cpp:(.text+0x63a): undefined reference tostd::basic_ostream<char, std::char_traits >& std::ostream_insert<char, std::char_traits >(std::basic_ostream<char, std::char_traits >&, char const*, long)' test_cpu.cpp:(.text+0x667): undefined reference to std::ctype<char>::_M_widen_init() const' test_cpu.cpp:(.text+0x709): undefined reference tostd::cerr' test_cpu.cpp:(.text+0x70e): undefined reference to `std::basic_ostream<char, std::char_traits >& std::ostream_insert<char, std::char_traits >(std::basic_ostream<char, std::char_traits >&, char const, long)' test_cpu.cpp:(.text+0x71d): undefined reference to std::cerr' test_cpu.cpp:(.text+0x722): undefined reference tostd::basic_ostream<char, std::char_traits >& std::__ostream_insert<char, std::char_traits >(std::basic_ostream<char, std::char_traits >&, char const, long)' test_cpu.cpp:(.text+0x72f): undefined reference to std::cerr' test_cpu.cpp:(.text+0x734): undefined reference tostd::ostream& std::ostream::_M_insert(double)' test_cpu.cpp:(.text+0x749): undefined reference to std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)' test_cpu.cpp:(.text+0x759): undefined reference tostd::ostream& std::ostream::_M_insert(double)' test_cpu.cpp:(.text+0x76e): undefined reference to std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)' test_cpu.cpp:(.text+0x77e): undefined reference tostd::ostream& std::ostream::_M_insert(double)' test_cpu.cpp:(.text+0x793): undefined reference to std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)' test_cpu.cpp:(.text+0x7a3): undefined reference tostd::ostream& std::ostream::_M_insert(double)' test_cpu.cpp:(.text+0x7b8): undefined reference to std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)' test_cpu.cpp:(.text+0x7c8): undefined reference tostd::ostream& std::ostream::_M_insert(double)' test_cpu.cpp:(.text+0x7e4): undefined reference to std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)' test_cpu.cpp:(.text+0x81b): undefined reference tostd::ostream::put(char)' test_cpu.cpp:(.text+0x823): undefined reference to std::ostream::flush()' test_cpu.cpp:(.text+0x840): undefined reference tooperator delete(void)' test_cpu.cpp:(.text+0x848): undefined reference to `operator delete(void)' test_cpu.cpp:(.text+0x854): undefined reference to operator delete(void*)' test_cpu.cpp:(.text+0x860): undefined reference tooperator delete(void)' test_cpu.cpp:(.text+0x86c): undefined reference to `operator delete(void)' CMakeFiles/test_cpu.dir/tests/test_cpu.cpp.o:test_cpu.cpp:(.text+0x878): more undefined references to operator delete(void*)' follow CMakeFiles/test_cpu.dir/tests/test_cpu.cpp.o: In functionoptions_test()': test_cpu.cpp:(.text+0x8b5): undefined reference to std::ctype<char>::_M_widen_init() const' test_cpu.cpp:(.text+0x8e0): undefined reference tostd::throw_bad_cast()' test_cpu.cpp:(.text+0x8ef): undefined reference to operator delete(void*)' test_cpu.cpp:(.text+0x8f7): undefined reference tooperator delete(void)' test_cpu.cpp:(.text+0x903): undefined reference to `operator delete(void)' test_cpu.cpp:(.text+0x90f): undefined reference to operator delete(void*)' test_cpu.cpp:(.text+0x91b): undefined reference tooperator delete(void)' CMakeFiles/test_cpu.dir/tests/test_cpu.cpp.o:test_cpu.cpp:(.text+0x927): more undefined references to `operator delete(void)' follow CMakeFiles/test_cpu.dir/tests/test_cpu.cpp.o: In function options_test()': test_cpu.cpp:(.text+0x953): undefined reference tostd::throw_bad_cast()' test_cpu.cpp:(.text+0x967): undefined reference to __cxa_allocate_exception' test_cpu.cpp:(.text+0xa12): undefined reference tostd::runtime_error::runtime_error(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&)' test_cpu.cpp:(.text+0xa28): undefined reference to operator delete(void*)' test_cpu.cpp:(.text+0xa3e): undefined reference tooperator delete(void)' test_cpu.cpp:(.text+0xa5a): undefined reference to `operator delete(void)' test_cpu.cpp:(.text+0xa5f): undefined reference to std::runtime_error::~runtime_error()' test_cpu.cpp:(.text+0xa64): undefined reference totypeinfo for std::runtime_error' test_cpu.cpp:(.text+0xa6c): undefined reference to __cxa_throw' test_cpu.cpp:(.text+0xa85): undefined reference tooperator delete(void)' test_cpu.cpp:(.text+0xa9b): undefined reference to `operator delete(void)' test_cpu.cpp:(.text+0xab7): undefined reference to operator delete(void*)' test_cpu.cpp:(.text+0xabf): undefined reference tocxa_free_exception' test_cpu.cpp:(.text+0xb19): undefined reference to std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned long&, unsigned long)' test_cpu.cpp:(.text+0xb3a): undefined reference tostd::throw_logic_error(char const*)' test_cpu.cpp:(.text+0xb4c): undefined reference to __cxa_allocate_exception' test_cpu.cpp:(.text+0xbff): undefined reference tostd::runtime_error::runtime_error(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&)' test_cpu.cpp:(.text+0xc1b): undefined reference to operator delete(void*)' test_cpu.cpp:(.text+0xc37): undefined reference tooperator delete(void)' test_cpu.cpp:(.text+0xc53): undefined reference to `operator delete(void)' test_cpu.cpp:(.text+0xc58): undefined reference to std::runtime_error::~runtime_error()' test_cpu.cpp:(.text+0xc5d): undefined reference totypeinfo for std::runtime_error' test_cpu.cpp:(.text+0xc65): undefined reference to __cxa_throw' test_cpu.cpp:(.text+0xc84): undefined reference tooperator delete(void)' test_cpu.cpp:(.text+0xca0): undefined reference to `operator delete(void)' test_cpu.cpp:(.text+0xd15): undefined reference to std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned long&, unsigned long)' test_cpu.cpp:(.text+0xd36): undefined reference tostd::throw_logic_error(char const)' CMakeFiles/test_cpu.dir/tests/test_cpu.cpp.o: In function grad_check(int, int, std::vector<float, std::allocator<float> >&, std::vector<std::vector<int, std::allocator<int> >, std::allocator<std::vector<int, std::allocator<int> > > > const&, std::vector<int, std::allocator<int> > const&)': test_cpu.cpp:(.text+0xecc): undefined reference tooperator new(unsigned long)' test_cpu.cpp:(.text+0xf2b): undefined reference to operator new(unsigned long)' test_cpu.cpp:(.text+0x1081): undefined reference tooperator new(unsigned long)' test_cpu.cpp:(.text+0x1114): undefined reference to operator new(unsigned long)' test_cpu.cpp:(.text+0x114f): undefined reference tooperator new(unsigned long)' test_cpu.cpp:(.text+0x1345): undefined reference to `operator delete(void)' test_cpu.cpp:(.text+0x1359): undefined reference to operator delete(void*)' test_cpu.cpp:(.text+0x13ea): undefined reference tooperator delete(void)' test_cpu.cpp:(.text+0x13fe): undefined reference to `operator delete(void)' test_cpu.cpp:(.text+0x1412): undefined reference to operator delete(void*)' CMakeFiles/test_cpu.dir/tests/test_cpu.cpp.o:test_cpu.cpp:(.text+0x1423): more undefined references tooperator delete(void*)' follow CMakeFiles/test_cpu.dir/tests/test_cpu.cpp.o: In function grad_check(int, int, std::vector<float, std::allocator<float> >&, std::vector<std::vector<int, std::allocator<int> >, std::allocator<std::vector<int, std::allocator<int> > > > const&, std::vector<int, std::allocator<int> > const&)': test_cpu.cpp:(.text+0x1515): undefined reference tocxa_allocate_exception' test_cpu.cpp:(.text+0x15b7): undefined reference to std::runtime_error::runtime_error(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' test_cpu.cpp:(.text+0x15d3): undefined reference tooperator delete(void)' test_cpu.cpp:(.text+0x15ef): undefined reference to `operator delete(void)' test_cpu.cpp:(.text+0x160b): undefined reference to operator delete(void*)' test_cpu.cpp:(.text+0x1610): undefined reference tostd::runtime_error::~runtime_error()' test_cpu.cpp:(.text+0x1615): undefined reference to typeinfo for std::runtime_error' test_cpu.cpp:(.text+0x161d): undefined reference tocxa_throw' test_cpu.cpp:(.text+0x163c): undefined reference to operator delete(void*)' test_cpu.cpp:(.text+0x1658): undefined reference tooperator delete(void)' test_cpu.cpp:(.text+0x1674): undefined reference to `operator delete(void)' test_cpu.cpp:(.text+0x167c): undefined reference to __cxa_free_exception' test_cpu.cpp:(.text+0x1690): undefined reference tooperator delete(void)' test_cpu.cpp:(.text+0x16a4): undefined reference to `operator delete(void)' test_cpu.cpp:(.text+0x16b5): undefined reference to operator delete(void*)' test_cpu.cpp:(.text+0x16c6): undefined reference tooperator delete(void*)' test_cpu.cpp:(.text+0x1727): undefined reference to `std::cxx11::basic_string<char, std::char_traits, std::allocator >::_M_create(unsigned long&, unsigned long)' test_cpu.cpp:(.text+0x1748): undefined reference to std::__throw_logic_error(char const*)' test_cpu.cpp:(.text+0x1768): undefined reference tocxa_allocate_exception' test_cpu.cpp:(.text+0x1804): undefined reference to std::runtime_error::runtime_error(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' test_cpu.cpp:(.text+0x181a): undefined reference tooperator delete(void)' test_cpu.cpp:(.text+0x1830): undefined reference to `operator delete(void)' test_cpu.cpp:(.text+0x184c): undefined reference to operator delete(void*)' test_cpu.cpp:(.text+0x1851): undefined reference tostd::runtime_error::~runtime_error()' test_cpu.cpp:(.text+0x1856): undefined reference to typeinfo for std::runtime_error' test_cpu.cpp:(.text+0x185e): undefined reference tocxa_throw' test_cpu.cpp:(.text+0x1877): undefined reference to operator delete(void*)' test_cpu.cpp:(.text+0x188d): undefined reference tooperator delete(void)' test_cpu.cpp:(.text+0x18a9): undefined reference to `operator delete(void)' test_cpu.cpp:(.text+0x18b1): undefined reference to __cxa_free_exception' test_cpu.cpp:(.text+0x18be): undefined reference tooperator delete(void)' test_cpu.cpp:(.text+0x18d4): undefined reference to `operator delete(void)' test_cpu.cpp:(.text+0x18ec): undefined reference to operator delete(void*)' test_cpu.cpp:(.text+0x1942): undefined reference tostd::cxx11::basic_string<char, std::char_traits, std::allocator >::_M_create(unsigned long&, unsigned long)' test_cpu.cpp:(.text+0x1963): undefined reference to std::__throw_logic_error(char const*)' test_cpu.cpp:(.text+0x197b): undefined reference tocxa_allocate_exception' test_cpu.cpp:(.text+0x1a23): undefined reference to std::runtime_error::runtime_error(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' test_cpu.cpp:(.text+0x1a3f): undefined reference tooperator delete(void)' test_cpu.cpp:(.text+0x1a5b): undefined reference to `operator delete(void)' test_cpu.cpp:(.text+0x1a77): undefined reference to operator delete(void*)' test_cpu.cpp:(.text+0x1a7c): undefined reference tostd::runtime_error::~runtime_error()' test_cpu.cpp:(.text+0x1a81): undefined reference to typeinfo for std::runtime_error' test_cpu.cpp:(.text+0x1a89): undefined reference tocxa_throw' test_cpu.cpp:(.text+0x1aa8): undefined reference to operator delete(void*)' test_cpu.cpp:(.text+0x1ac4): undefined reference tooperator delete(void*)' test_cpu.cpp:(.text+0x1b35): undefined reference to `std::cxx11::basic_string<char, std::char_traits, std::allocator >::_M_create(unsigned long&, unsigned long)' test_cpu.cpp:(.text+0x1b56): undefined reference to std::__throw_logic_error(char const*)' test_cpu.cpp:(.text+0x1b78): undefined reference tostd::throw_bad_alloc()' test_cpu.cpp:(.text+0x1b85): undefined reference to std::__throw_bad_alloc()' test_cpu.cpp:(.text+0x1b97): undefined reference tocxa_allocate_exception' test_cpu.cpp:(.text+0x1c39): undefined reference to std::runtime_error::runtime_error(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' test_cpu.cpp:(.text+0x1c55): undefined reference tooperator delete(void)' test_cpu.cpp:(.text+0x1c71): undefined reference to `operator delete(void)' test_cpu.cpp:(.text+0x1c8d): undefined reference to operator delete(void*)' test_cpu.cpp:(.text+0x1c92): undefined reference tostd::runtime_error::~runtime_error()' test_cpu.cpp:(.text+0x1c97): undefined reference to typeinfo for std::runtime_error' test_cpu.cpp:(.text+0x1c9f): undefined reference tocxa_throw' test_cpu.cpp:(.text+0x1cbe): undefined reference to operator delete(void*)' test_cpu.cpp:(.text+0x1cda): undefined reference tooperator delete(void*)' test_cpu.cpp:(.text+0x1d4d): undefined reference to `std::cxx11::basic_string<char, std::char_traits, std::allocator >::_M_create(unsigned long&, unsigned long)' test_cpu.cpp:(.text+0x1d6e): undefined reference to std::__throw_logic_error(char const*)' test_cpu.cpp:(.text+0x1d78): undefined reference tostd::throw_bad_alloc()' test_cpu.cpp:(.text+0x1d7d): undefined reference to std::__throw_bad_alloc()' CMakeFiles/test_cpu.dir/tests/test_cpu.cpp.o: In functioninf_test()': test_cpu.cpp:(.text+0x1df6): undefined reference to operator new(unsigned long)' test_cpu.cpp:(.text+0x1e79): undefined reference tooperator new(unsigned long)' test_cpu.cpp:(.text+0x1fc1): undefined reference to operator delete(void*)' test_cpu.cpp:(.text+0x1fd2): undefined reference tooperator delete(void)' test_cpu.cpp:(.text+0x1fe3): undefined reference to `operator delete(void)' test_cpu.cpp:(.text+0x1feb): undefined reference to operator delete(void*)' test_cpu.cpp:(.text+0x1ffc): undefined reference tooperator delete(void)' CMakeFiles/test_cpu.dir/tests/test_cpu.cpp.o:test_cpu.cpp:(.text+0x2030): more undefined references to `operator delete(void)' follow CMakeFiles/test_cpu.dir/tests/test_cpu.cpp.o: In function inf_test()': test_cpu.cpp:(.text+0x2047): undefined reference tocxa_allocate_exception' test_cpu.cpp:(.text+0x20e5): undefined reference to std::runtime_error::runtime_error(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' test_cpu.cpp:(.text+0x20fb): undefined reference tooperator delete(void)' test_cpu.cpp:(.text+0x2111): undefined reference to `operator delete(void)' test_cpu.cpp:(.text+0x212d): undefined reference to operator delete(void*)' test_cpu.cpp:(.text+0x2139): undefined reference tostd::runtime_error::~runtime_error()' test_cpu.cpp:(.text+0x213e): undefined reference to typeinfo for std::runtime_error' test_cpu.cpp:(.text+0x2143): undefined reference tocxa_throw' test_cpu.cpp:(.text+0x215c): undefined reference to operator delete(void*)' test_cpu.cpp:(.text+0x2172): undefined reference tooperator delete(void)' test_cpu.cpp:(.text+0x218e): undefined reference to `operator delete(void)' test_cpu.cpp:(.text+0x219a): undefined reference to __cxa_free_exception' test_cpu.cpp:(.text+0x21a2): undefined reference tooperator delete(void)' test_cpu.cpp:(.text+0x21b3): undefined reference to `operator delete(void)' test_cpu.cpp:(.text+0x21c4): undefined reference to operator delete(void*)' test_cpu.cpp:(.text+0x21cc): undefined reference tooperator delete(void*)' test_cpu.cpp:(.text+0x2223): undefined reference to `std::cxx11::basic_string<char, std::char_traits, std::allocator >::_M_create(unsigned long&, unsigned long)' test_cpu.cpp:(.text+0x2244): undefined reference to std::__throw_logic_error(char const*)' test_cpu.cpp:(.text+0x2256): undefined reference tocxa_allocate_exception' test_cpu.cpp:(.text+0x22ff): undefined reference to std::runtime_error::runtime_error(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' test_cpu.cpp:(.text+0x231b): undefined reference tooperator delete(void)' test_cpu.cpp:(.text+0x2337): undefined reference to `operator delete(void)' test_cpu.cpp:(.text+0x2353): undefined reference to operator delete(void*)' test_cpu.cpp:(.text+0x235f): undefined reference tostd::runtime_error::~runtime_error()' test_cpu.cpp:(.text+0x2364): undefined reference to typeinfo for std::runtime_error' test_cpu.cpp:(.text+0x2369): undefined reference tocxa_throw' test_cpu.cpp:(.text+0x2388): undefined reference to operator delete(void*)' test_cpu.cpp:(.text+0x23a4): undefined reference tooperator delete(void)' test_cpu.cpp:(.text+0x2416): undefined reference to std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned long&, unsigned long)' test_cpu.cpp:(.text+0x2437): undefined reference tostd::__throw_logic_error(char const)' CMakeFiles/test_cpu.dir/tests/test_cpu.cpp.o: In function small_test()': test_cpu.cpp:(.text+0x2493): undefined reference tooperator new(unsigned long)' test_cpu.cpp:(.text+0x24d6): undefined reference to operator new(unsigned long)' test_cpu.cpp:(.text+0x2527): undefined reference tooperator delete(void)' test_cpu.cpp:(.text+0x2531): undefined reference to operator new(unsigned long)' test_cpu.cpp:(.text+0x2549): undefined reference tooperator new(unsigned long)' test_cpu.cpp:(.text+0x268a): undefined reference to expf' test_cpu.cpp:(.text+0x26ca): undefined reference tooperator delete(void)' test_cpu.cpp:(.text+0x26d6): undefined reference to operator delete(void*)' test_cpu.cpp:(.text+0x26de): undefined reference tooperator delete(void)' test_cpu.cpp:(.text+0x26e6): undefined reference to `operator delete(void)' test_cpu.cpp:(.text+0x2712): undefined reference to operator delete(void*)' test_cpu.cpp:(.text+0x2729): undefined reference tocxa_allocate_exception' test_cpu.cpp:(.text+0x27cd): undefined reference to std::runtime_error::runtime_error(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' test_cpu.cpp:(.text+0x27e3): undefined reference tooperator delete(void)' test_cpu.cpp:(.text+0x27f9): undefined reference to `operator delete(void)' test_cpu.cpp:(.text+0x2815): undefined reference to operator delete(void*)' test_cpu.cpp:(.text+0x281a): undefined reference tostd::runtime_error::~runtime_error()' test_cpu.cpp:(.text+0x281f): undefined reference to typeinfo for std::runtime_error' test_cpu.cpp:(.text+0x2827): undefined reference tocxa_throw' test_cpu.cpp:(.text+0x2840): undefined reference to operator delete(void*)' test_cpu.cpp:(.text+0x2856): undefined reference tooperator delete(void)' test_cpu.cpp:(.text+0x2872): undefined reference to `operator delete(void)' test_cpu.cpp:(.text+0x287a): undefined reference to __cxa_free_exception' test_cpu.cpp:(.text+0x288b): undefined reference tooperator delete(void)' test_cpu.cpp:(.text+0x289a): undefined reference to `operator delete(void)' test_cpu.cpp:(.text+0x28a2): undefined reference to operator delete(void*)' test_cpu.cpp:(.text+0x28fa): undefined reference tostd::cxx11::basic_string<char, std::char_traits, std::allocator >::_M_create(unsigned long&, unsigned long)' test_cpu.cpp:(.text+0x291b): undefined reference to std::__throw_logic_error(char const*)' test_cpu.cpp:(.text+0x292d): undefined reference tocxa_allocate_exception' test_cpu.cpp:(.text+0x29dd): undefined reference to std::runtime_error::runtime_error(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' test_cpu.cpp:(.text+0x29f9): undefined reference tooperator delete(void)' test_cpu.cpp:(.text+0x2a15): undefined reference to `operator delete(void)' test_cpu.cpp:(.text+0x2a31): undefined reference to operator delete(void*)' test_cpu.cpp:(.text+0x2a36): undefined reference tostd::runtime_error::~runtime_error()' test_cpu.cpp:(.text+0x2a3b): undefined reference to typeinfo for std::runtime_error' test_cpu.cpp:(.text+0x2a43): undefined reference tocxa_throw' test_cpu.cpp:(.text+0x2a62): undefined reference to operator delete(void*)' test_cpu.cpp:(.text+0x2a7e): undefined reference tooperator delete(void)' test_cpu.cpp:(.text+0x2a9a): undefined reference to `operator delete(void)' test_cpu.cpp:(.text+0x2aa2): undefined reference to __cxa_free_exception' test_cpu.cpp:(.text+0x2afa): undefined reference tostd::cxx11::basic_string<char, std::char_traits, std::allocator >::_M_create(unsigned long&, unsigned long)' test_cpu.cpp:(.text+0x2b1b): undefined reference to std::__throw_logic_error(char const*)' CMakeFiles/test_cpu.dir/tests/test_cpu.cpp.o: In functionrun_tests()': test_cpu.cpp:(.text+0x2b6a): undefined reference to operator new(unsigned long)' test_cpu.cpp:(.text+0x2cd1): undefined reference tooperator delete(void)' test_cpu.cpp:(.text+0x2d95): undefined reference to `operator delete(void)' test_cpu.cpp:(.text+0x2db9): undefined reference to operator delete(void*)' test_cpu.cpp:(.text+0x2dd4): undefined reference tooperator delete(void)' test_cpu.cpp:(.text+0x2de3): undefined reference to `operator delete(void)' CMakeFiles/test_cpu.dir/tests/test_cpu.cpp.o:test_cpu.cpp:(.text+0x2dfc): more undefined references to operator delete(void*)' follow CMakeFiles/test_cpu.dir/tests/test_cpu.cpp.o: In functionstd::cxx11::basic_string<char, std::char_traits, std::allocator > std::operator+<char, std::char_traits, std::allocator >(char const*, std::__cxx11::basic_string<char, std::char_traits, std::allocator >&&)': test_cpu.cpp:(.text._ZStplIcSt11char_traitsIcESaIcEENSt7cxx1112basic_stringIT_T0_T1_EEPKS5OS8[_ZStplIcSt11char_traitsIcESaIcEENSt7cxx1112basic_stringIT_T0_T1_EEPKS5OS8]+0x23): undefined reference to `std::cxx11::basic_string<char, std::char_traits, std::allocator >::_M_replace(unsigned long, unsigned long, char const, unsigned long)' CMakeFiles/test_cpu.dir/tests/test_cpu.cpp.o: In function `void std::vector<int, std::allocator >::_M_range_insert<__gnu_cxx::__normal_iterator<int const, std::vector<int, std::allocator > > >(gnu_cxx::__normal_iterator<int*, std::vector<int, std::allocator > >, gnu_cxx::normal_iterator<int const*, std::vector<int, std::allocator > >, __gnu_cxx::normal_iterator<int const, std::vector<int, std::allocator > >, std::forward_iterator_tag)': test_cpu.cpp:(.text._ZNSt6vectorIiSaIiEE15_M_range_insertIN9gnu_cxx17normal_iteratorIPKiS1_EEEEvNS4_IPiS1_EET_SA_St20forward_iterator_tag[_ZNSt6vectorIiSaIiEE15_M_range_insertIN9gnu_cxx17normal_iteratorIPKiS1_EEEEvNS4_IPiS1_EET_SA_St20forward_iterator_tag]+0x1db): undefined reference to operator new(unsigned long)' test_cpu.cpp:(.text._ZNSt6vectorIiSaIiEE15_M_range_insertIN9__gnu_cxx17__normal_iteratorIPKiS1_EEEEvNS4_IPiS1_EET_SA_St20forward_iterator_tag[_ZNSt6vectorIiSaIiEE15_M_range_insertIN9__gnu_cxx17__normal_iteratorIPKiS1_EEEEvNS4_IPiS1_EET_SA_St20forward_iterator_tag]+0x234): undefined reference tooperator delete(void)' test_cpu.cpp:(.text._ZNSt6vectorIiSaIiEE15_M_range_insertIN9gnu_cxx17normal_iteratorIPKiS1_EEEEvNS4_IPiS1_EET_SA_St20forward_iterator_tag[_ZNSt6vectorIiSaIiEE15_M_range_insertIN9gnu_cxx17normal_iteratorIPKiS1_EEEEvNS4_IPiS1_EET_SA_St20forward_iterator_tag]+0x322): undefined reference to std::__throw_length_error(char const*)' CMakeFiles/test_cpu.dir/tests/test_cpu.cpp.o: In functionvoid std::vector<int, std::allocator >::_M_emplace_back_aux(int&&)': test_cpu.cpp:(.text._ZNSt6vectorIiSaIiEE19_M_emplace_backauxIJiEEEvDpOT[_ZNSt6vectorIiSaIiEE19_M_emplace_backauxIJiEEEvDpOT]+0x3a): undefined reference to operator new(unsigned long)' test_cpu.cpp:(.text._ZNSt6vectorIiSaIiEE19_M_emplace_back_auxIJiEEEvDpOT_[_ZNSt6vectorIiSaIiEE19_M_emplace_back_auxIJiEEEvDpOT_]+0x74): undefined reference tooperator delete(void)' CMakeFiles/test_cpu.dir/tests/test_cpu.cpp.o: In function void std::vector<std::vector<int, std::allocator<int> >, std::allocator<std::vector<int, std::allocator<int> > > >::_M_emplace_back_aux<std::vector<int, std::allocator<int> > >(std::vector<int, std::allocator<int> >&&)': test_cpu.cpp:(.text._ZNSt6vectorIS_IiSaIiEESaIS1_EE19_M_emplace_back_auxIJS1_EEEvDpOT_[_ZNSt6vectorIS_IiSaIiEESaIS1_EE19_M_emplace_back_auxIJS1_EEEvDpOT_]+0x57): undefined reference tooperator new(unsigned long)' test_cpu.cpp:(.text._ZNSt6vectorIS_IiSaIiEESaIS1_EE19_M_emplace_back_auxIJS1EEEvDpOT[_ZNSt6vectorIS_IiSaIiEESaIS1_EE19_M_emplace_back_auxIJS1EEEvDpOT]+0x149): undefined reference to `operator delete(void)' test_cpu.cpp:(.text._ZNSt6vectorIS_IiSaIiEESaIS1_EE19_M_emplace_back_auxIJS1EEEvDpOT[_ZNSt6vectorIS_IiSaIiEESaIS1_EE19_M_emplace_back_auxIJS1EEEvDpOT]+0x163): undefined reference to operator delete(void*)' CMakeFiles/test_cpu.dir/tests/test_cpu.cpp.o: In functionmain': test_cpu.cpp:(.text.startup+0x16): undefined reference to std::cerr' test_cpu.cpp:(.text.startup+0x1b): undefined reference tostd::basic_ostream<char, std::char_traits >& std::ostream_insert<char, std::char_traits >(std::basic_ostream<char, std::char_traits >&, char const, long)' test_cpu.cpp:(.text.startup+0x20): undefined reference to std::cerr' test_cpu.cpp:(.text.startup+0x25): undefined reference tostd::basic_ostream<char, std::char_traits >& std::endl<char, std::char_traits >(std::basic_ostream<char, std::char_traits >&)' test_cpu.cpp:(.text.startup+0x3b): undefined reference to std::cout' test_cpu.cpp:(.text.startup+0x40): undefined reference tostd::basic_ostream<char, std::char_traits >& std::__ostream_insert<char, std::char_traits >(std::basic_ostream<char, std::char_traits >&, char const, long)' test_cpu.cpp:(.text.startup+0x45): undefined reference to std::cout' test_cpu.cpp:(.text.startup+0x4a): undefined reference tostd::basic_ostream<char, std::char_traits >& std::endl<char, std::char_traits >(std::basic_ostream<char, std::char_traits >&)' test_cpu.cpp:(.text.startup+0x7b): undefined reference to std::cout' test_cpu.cpp:(.text.startup+0x80): undefined reference tostd::basic_ostream<char, std::char_traits >& std::ostream_insert<char, std::char_traits >(std::basic_ostream<char, std::char_traits >&, char const, long)' test_cpu.cpp:(.text.startup+0x85): undefined reference to std::cout' test_cpu.cpp:(.text.startup+0x8a): undefined reference tostd::basic_ostream<char, std::char_traits >& std::endl<char, std::char_traits >(std::basic_ostream<char, std::char_traits >&)' test_cpu.cpp:(.text.startup+0x9d): undefined reference to std::cout' test_cpu.cpp:(.text.startup+0xa2): undefined reference tostd::basic_ostream<char, std::char_traits >& std::__ostream_insert<char, std::char_traits >(std::basic_ostream<char, std::char_traits >&, char const, long)' test_cpu.cpp:(.text.startup+0xa7): undefined reference to std::cout' test_cpu.cpp:(.text.startup+0xac): undefined reference tostd::basic_ostream<char, std::char_traits >& std::endl<char, std::char_traits >(std::basic_ostream<char, std::char_traits >&)' CMakeFiles/test_cpu.dir/tests/test_cpu.cpp.o: In function _GLOBAL__sub_I__Z8rel_diffRKSt6vectorIfSaIfEES3_': test_cpu.cpp:(.text.startup+0xca): undefined reference tostd::ios_base::Init::Init()' test_cpu.cpp:(.text.startup+0xd9): undefined reference to std::ios_base::Init::~Init()' CMakeFiles/test_cpu.dir/tests/test_cpu.cpp.o:(.eh_frame+0xe3): undefined reference togxx_personality_v0' CMakeFiles/test_cpu.dir/tests/random.cpp.o: In function genLabels(int, int)': random.cpp:(.text+0x6d): undefined reference tooperator new(unsigned long)' random.cpp:(.text+0x189): undefined reference to std::__throw_bad_alloc()' CMakeFiles/test_cpu.dir/tests/random.cpp.o: In functiongenActs(int)': random.cpp:(.text+0x208): undefined reference to operator new(unsigned long)' random.cpp:(.text+0x394): undefined reference tostd::throw_bad_alloc()' libwarpctc.so: undefined reference to `log1pf' collect2: error: ld returned 1 exit status CMakeFiles/test_cpu.dir/build.make:123: recipe for target 'test_cpu' failed make[2]: [test_cpu] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/test_cpu.dir/all' failed make[1]: [CMakeFiles/test_cpu.dir/all] Error 2 Makefile:127: recipe for target 'all' failed make: *** [all] Error 2
softmax(float const*, int, int, float*)': test_cpu.cpp:(.text+0x11f): undefined reference to
expf' CMakeFiles/test_cpu.dir/tests/test_cpu.cpp.o: In function
operator new(unsigned long)' test_cpu.cpp:(.text+0x23e): undefined reference to
operator new(unsigned long)' test_cpu.cpp:(.text+0x2cb): undefined reference to
logf' test_cpu.cpp:(.text+0x31d): undefined reference to
operator new(unsigned long)' test_cpu.cpp:(.text+0x383): undefined reference to
operator new(unsigned long)' test_cpu.cpp:(.text+0x3c5): undefined reference to
std::ostream::put(char)' test_cpu.cpp:(.text+0x4e6): undefined reference to
std::cerr' test_cpu.cpp:(.text+0x564): undefined reference to
std::cerr' test_cpu.cpp:(.text+0x578): undefined reference to
std::cerr' test_cpu.cpp:(.text+0x58a): undefined reference to
std::ostream& std::ostream::_M_insert<double>(double)' test_cpu.cpp:(.text+0x5c4): undefined reference to
std::ostream& std::ostream::_M_insert<double>(double)' test_cpu.cpp:(.text+0x5e9): undefined reference to
std::ostream& std::ostream::_M_insert<double>(double)' test_cpu.cpp:(.text+0x60e): undefined reference to
std::ostream& std::ostream::_M_insert<double>(double)' test_cpu.cpp:(.text+0x63a): undefined reference to
std::ctype<char>::_M_widen_init() const' test_cpu.cpp:(.text+0x709): undefined reference to
std::cerr' test_cpu.cpp:(.text+0x722): undefined reference to
std::cerr' test_cpu.cpp:(.text+0x734): undefined reference to
std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)' test_cpu.cpp:(.text+0x759): undefined reference to
std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)' test_cpu.cpp:(.text+0x77e): undefined reference to
std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)' test_cpu.cpp:(.text+0x7a3): undefined reference to
std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)' test_cpu.cpp:(.text+0x7c8): undefined reference to
std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)' test_cpu.cpp:(.text+0x81b): undefined reference to
std::ostream::flush()' test_cpu.cpp:(.text+0x840): undefined reference to
operator delete(void*)' test_cpu.cpp:(.text+0x860): undefined reference to
operator delete(void*)' follow CMakeFiles/test_cpu.dir/tests/test_cpu.cpp.o: In function
std::ctype<char>::_M_widen_init() const' test_cpu.cpp:(.text+0x8e0): undefined reference to
operator delete(void*)' test_cpu.cpp:(.text+0x8f7): undefined reference to
operator delete(void*)' test_cpu.cpp:(.text+0x91b): undefined reference to
options_test()': test_cpu.cpp:(.text+0x953): undefined reference to
__cxa_allocate_exception' test_cpu.cpp:(.text+0xa12): undefined reference to
operator delete(void*)' test_cpu.cpp:(.text+0xa3e): undefined reference to
std::runtime_error::~runtime_error()' test_cpu.cpp:(.text+0xa64): undefined reference to
__cxa_throw' test_cpu.cpp:(.text+0xa85): undefined reference to
operator delete(void*)' test_cpu.cpp:(.text+0xabf): undefined reference to
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned long&, unsigned long)' test_cpu.cpp:(.text+0xb3a): undefined reference to
__cxa_allocate_exception' test_cpu.cpp:(.text+0xbff): undefined reference to
operator delete(void*)' test_cpu.cpp:(.text+0xc37): undefined reference to
std::runtime_error::~runtime_error()' test_cpu.cpp:(.text+0xc5d): undefined reference to
__cxa_throw' test_cpu.cpp:(.text+0xc84): undefined reference to
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned long&, unsigned long)' test_cpu.cpp:(.text+0xd36): undefined reference to
grad_check(int, int, std::vector<float, std::allocator<float> >&, std::vector<std::vector<int, std::allocator<int> >, std::allocator<std::vector<int, std::allocator<int> > > > const&, std::vector<int, std::allocator<int> > const&)': test_cpu.cpp:(.text+0xecc): undefined reference to
operator new(unsigned long)' test_cpu.cpp:(.text+0x1081): undefined reference to
operator new(unsigned long)' test_cpu.cpp:(.text+0x114f): undefined reference to
operator delete(void*)' test_cpu.cpp:(.text+0x13ea): undefined reference to
operator delete(void*)' CMakeFiles/test_cpu.dir/tests/test_cpu.cpp.o:test_cpu.cpp:(.text+0x1423): more undefined references to
grad_check(int, int, std::vector<float, std::allocator<float> >&, std::vector<std::vector<int, std::allocator<int> >, std::allocator<std::vector<int, std::allocator<int> > > > const&, std::vector<int, std::allocator<int> > const&)': test_cpu.cpp:(.text+0x1515): undefined reference to
std::runtime_error::runtime_error(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' test_cpu.cpp:(.text+0x15d3): undefined reference to
operator delete(void*)' test_cpu.cpp:(.text+0x1610): undefined reference to
typeinfo for std::runtime_error' test_cpu.cpp:(.text+0x161d): undefined reference to
operator delete(void*)' test_cpu.cpp:(.text+0x1658): undefined reference to
__cxa_free_exception' test_cpu.cpp:(.text+0x1690): undefined reference to
operator delete(void*)' test_cpu.cpp:(.text+0x16c6): undefined reference to
std::__throw_logic_error(char const*)' test_cpu.cpp:(.text+0x1768): undefined reference to
std::runtime_error::runtime_error(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' test_cpu.cpp:(.text+0x181a): undefined reference to
operator delete(void*)' test_cpu.cpp:(.text+0x1851): undefined reference to
typeinfo for std::runtime_error' test_cpu.cpp:(.text+0x185e): undefined reference to
operator delete(void*)' test_cpu.cpp:(.text+0x188d): undefined reference to
__cxa_free_exception' test_cpu.cpp:(.text+0x18be): undefined reference to
operator delete(void*)' test_cpu.cpp:(.text+0x1942): undefined reference to
std::__throw_logic_error(char const*)' test_cpu.cpp:(.text+0x197b): undefined reference to
std::runtime_error::runtime_error(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' test_cpu.cpp:(.text+0x1a3f): undefined reference to
operator delete(void*)' test_cpu.cpp:(.text+0x1a7c): undefined reference to
typeinfo for std::runtime_error' test_cpu.cpp:(.text+0x1a89): undefined reference to
operator delete(void*)' test_cpu.cpp:(.text+0x1ac4): undefined reference to
std::__throw_logic_error(char const*)' test_cpu.cpp:(.text+0x1b78): undefined reference to
std::__throw_bad_alloc()' test_cpu.cpp:(.text+0x1b97): undefined reference to
std::runtime_error::runtime_error(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' test_cpu.cpp:(.text+0x1c55): undefined reference to
operator delete(void*)' test_cpu.cpp:(.text+0x1c92): undefined reference to
typeinfo for std::runtime_error' test_cpu.cpp:(.text+0x1c9f): undefined reference to
operator delete(void*)' test_cpu.cpp:(.text+0x1cda): undefined reference to
std::__throw_logic_error(char const*)' test_cpu.cpp:(.text+0x1d78): undefined reference to
std::__throw_bad_alloc()' CMakeFiles/test_cpu.dir/tests/test_cpu.cpp.o: In function
operator new(unsigned long)' test_cpu.cpp:(.text+0x1e79): undefined reference to
operator delete(void*)' test_cpu.cpp:(.text+0x1fd2): undefined reference to
operator delete(void*)' test_cpu.cpp:(.text+0x1ffc): undefined reference to
inf_test()': test_cpu.cpp:(.text+0x2047): undefined reference to
std::runtime_error::runtime_error(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' test_cpu.cpp:(.text+0x20fb): undefined reference to
operator delete(void*)' test_cpu.cpp:(.text+0x2139): undefined reference to
typeinfo for std::runtime_error' test_cpu.cpp:(.text+0x2143): undefined reference to
operator delete(void*)' test_cpu.cpp:(.text+0x2172): undefined reference to
__cxa_free_exception' test_cpu.cpp:(.text+0x21a2): undefined reference to
operator delete(void*)' test_cpu.cpp:(.text+0x21cc): undefined reference to
std::__throw_logic_error(char const*)' test_cpu.cpp:(.text+0x2256): undefined reference to
std::runtime_error::runtime_error(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' test_cpu.cpp:(.text+0x231b): undefined reference to
operator delete(void*)' test_cpu.cpp:(.text+0x235f): undefined reference to
typeinfo for std::runtime_error' test_cpu.cpp:(.text+0x2369): undefined reference to
operator delete(void*)' test_cpu.cpp:(.text+0x23a4): undefined reference to
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned long&, unsigned long)' test_cpu.cpp:(.text+0x2437): undefined reference to
small_test()': test_cpu.cpp:(.text+0x2493): undefined reference to
operator new(unsigned long)' test_cpu.cpp:(.text+0x2527): undefined reference to
operator new(unsigned long)' test_cpu.cpp:(.text+0x2549): undefined reference to
expf' test_cpu.cpp:(.text+0x26ca): undefined reference to
operator delete(void*)' test_cpu.cpp:(.text+0x26de): undefined reference to
operator delete(void*)' test_cpu.cpp:(.text+0x2729): undefined reference to
std::runtime_error::runtime_error(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' test_cpu.cpp:(.text+0x27e3): undefined reference to
operator delete(void*)' test_cpu.cpp:(.text+0x281a): undefined reference to
typeinfo for std::runtime_error' test_cpu.cpp:(.text+0x2827): undefined reference to
operator delete(void*)' test_cpu.cpp:(.text+0x2856): undefined reference to
__cxa_free_exception' test_cpu.cpp:(.text+0x288b): undefined reference to
operator delete(void*)' test_cpu.cpp:(.text+0x28fa): undefined reference to
std::__throw_logic_error(char const*)' test_cpu.cpp:(.text+0x292d): undefined reference to
std::runtime_error::runtime_error(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' test_cpu.cpp:(.text+0x29f9): undefined reference to
operator delete(void*)' test_cpu.cpp:(.text+0x2a36): undefined reference to
typeinfo for std::runtime_error' test_cpu.cpp:(.text+0x2a43): undefined reference to
operator delete(void*)' test_cpu.cpp:(.text+0x2a7e): undefined reference to
__cxa_free_exception' test_cpu.cpp:(.text+0x2afa): undefined reference to
std::__throw_logic_error(char const*)' CMakeFiles/test_cpu.dir/tests/test_cpu.cpp.o: In function
operator new(unsigned long)' test_cpu.cpp:(.text+0x2cd1): undefined reference to
operator delete(void*)' test_cpu.cpp:(.text+0x2dd4): undefined reference to
operator new(unsigned long)' test_cpu.cpp:(.text._ZNSt6vectorIiSaIiEE15_M_range_insertIN9__gnu_cxx17__normal_iteratorIPKiS1_EEEEvNS4_IPiS1_EET_SA_St20forward_iterator_tag[_ZNSt6vectorIiSaIiEE15_M_range_insertIN9__gnu_cxx17__normal_iteratorIPKiS1_EEEEvNS4_IPiS1_EET_SA_St20forward_iterator_tag]+0x234): undefined reference to
std::__throw_length_error(char const*)' CMakeFiles/test_cpu.dir/tests/test_cpu.cpp.o: In function
operator new(unsigned long)' test_cpu.cpp:(.text._ZNSt6vectorIiSaIiEE19_M_emplace_back_auxIJiEEEvDpOT_[_ZNSt6vectorIiSaIiEE19_M_emplace_back_auxIJiEEEvDpOT_]+0x74): undefined reference to
void std::vector<std::vector<int, std::allocator<int> >, std::allocator<std::vector<int, std::allocator<int> > > >::_M_emplace_back_aux<std::vector<int, std::allocator<int> > >(std::vector<int, std::allocator<int> >&&)': test_cpu.cpp:(.text._ZNSt6vectorIS_IiSaIiEESaIS1_EE19_M_emplace_back_auxIJS1_EEEvDpOT_[_ZNSt6vectorIS_IiSaIiEESaIS1_EE19_M_emplace_back_auxIJS1_EEEvDpOT_]+0x57): undefined reference to
operator delete(void*)' CMakeFiles/test_cpu.dir/tests/test_cpu.cpp.o: In function
std::cerr' test_cpu.cpp:(.text.startup+0x1b): undefined reference to
std::cerr' test_cpu.cpp:(.text.startup+0x25): undefined reference to
std::cout' test_cpu.cpp:(.text.startup+0x40): undefined reference to
std::cout' test_cpu.cpp:(.text.startup+0x4a): undefined reference to
std::cout' test_cpu.cpp:(.text.startup+0x80): undefined reference to
std::cout' test_cpu.cpp:(.text.startup+0x8a): undefined reference to
std::cout' test_cpu.cpp:(.text.startup+0xa2): undefined reference to
std::cout' test_cpu.cpp:(.text.startup+0xac): undefined reference to
_GLOBAL__sub_I__Z8rel_diffRKSt6vectorIfSaIfEES3_': test_cpu.cpp:(.text.startup+0xca): undefined reference to
std::ios_base::Init::~Init()' CMakeFiles/test_cpu.dir/tests/test_cpu.cpp.o:(.eh_frame+0xe3): undefined reference to
genLabels(int, int)': random.cpp:(.text+0x6d): undefined reference to
std::__throw_bad_alloc()' CMakeFiles/test_cpu.dir/tests/random.cpp.o: In function
operator new(unsigned long)' random.cpp:(.text+0x394): undefined reference to
Ubuntu version is 16.04 and gcc is 5.4.0, PyTorch version is 1.1.0, cuda version is 9.2.18.
I saw someone succeeded with torch 1.0.0 so I guessed the problem is not with the version of torch.
Could anyone give some suggestion? Many thanks.
Follows is the error after make: [ 44%] Linking CXX executable test_cpu CMakeFiles/test_cpu.dir/tests/test_cpu.cpp.o: In function >& std::ostream_insert<char, std::char_traits >(std::basic_ostream<char, std::char_traits >&, char const*, long)'
test_cpu.cpp:(.text+0x573): undefined reference to >& std:: ostream_insert<char, std::char_traits >(std::basic_ostream<char, std::char_traits >&, char const, long)'
test_cpu.cpp:(.text+0x585): undefined reference to (double)'
test_cpu.cpp:(.text+0x59f): undefined reference to `std::basic_ostream<char, std::char_traits >& std::__ostream_insert<char, std::char_traits >(std::basic_ostream<char, std::char_traits >&, char const , long)'
test_cpu.cpp:(.text+0x5af): undefined reference to >& std::ostream_insert<char, std::char_traits >(std::basic_ostream<char, std::char_traits >&, char const*, long)'
test_cpu.cpp:(.text+0x5d4): undefined reference to >& std:: ostream_insert<char, std::char_traits >(std::basic_ostream<char, std::char_traits >&, char const, long)'
test_cpu.cpp:(.text+0x5f9): undefined reference to >& std::__ostream_insert<char, std::char_traits >(std::basic_ostream<char, std::char_traits >&, char const , long)'
test_cpu.cpp:(.text+0x61e): undefined reference to >& std::ostream_insert<char, std::char_traits >(std::basic_ostream<char, std::char_traits >&, char const*, long)'
test_cpu.cpp:(.text+0x667): undefined reference to >& std:: ostream_insert<char, std::char_traits >(std::basic_ostream<char, std::char_traits >&, char const, long)'
test_cpu.cpp:(.text+0x71d): undefined reference to >& std::__ostream_insert<char, std::char_traits >(std::basic_ostream<char, std::char_traits >&, char const , long)'
test_cpu.cpp:(.text+0x72f): undefined reference to (double)'
test_cpu.cpp:(.text+0x749): undefined reference to (double)'
test_cpu.cpp:(.text+0x76e): undefined reference to (double)'
test_cpu.cpp:(.text+0x793): undefined reference to (double)'
test_cpu.cpp:(.text+0x7b8): undefined reference to (double)'
test_cpu.cpp:(.text+0x7e4): undefined reference to , std::allocator > const&)'
test_cpu.cpp:(.text+0xa28): undefined reference to cxa_free_exception'
test_cpu.cpp:(.text+0xb19): undefined reference to , std::allocator > const&)'
test_cpu.cpp:(.text+0xc1b): undefined reference to , std::allocator >::_M_create(unsigned long&, unsigned long)'
test_cpu.cpp:(.text+0x1748): undefined reference to , std::allocator >::_M_create(unsigned long&, unsigned long)'
test_cpu.cpp:(.text+0x1963): undefined reference to cxa_allocate_exception'
test_cpu.cpp:(.text+0x1a23): undefined reference to , std::allocator >::_M_create(unsigned long&, unsigned long)'
test_cpu.cpp:(.text+0x1b56): undefined reference to , std::allocator >::_M_create(unsigned long&, unsigned long)'
test_cpu.cpp:(.text+0x1d6e): undefined reference to , std::allocator >::_M_create(unsigned long&, unsigned long)'
test_cpu.cpp:(.text+0x2244): undefined reference to , std::allocator >::_M_create(unsigned long&, unsigned long)'
test_cpu.cpp:(.text+0x291b): undefined reference to cxa_allocate_exception'
test_cpu.cpp:(.text+0x29dd): undefined reference to , std::allocator >::_M_create(unsigned long&, unsigned long)'
test_cpu.cpp:(.text+0x2b1b): undefined reference to , std::allocator > std::operator+<char, std::char_traits, std::allocator >(char const*, std::__cxx11::basic_string<char, std::char_traits, std::allocator >&&)':
test_cpu.cpp:(.text._ZStplIcSt11char_traitsIcESaIcEENSt7 cxx1112basic_stringIT_T0_T1_EEPKS5OS8[_ZStplIcSt11char_traitsIcESaIcEENSt7cxx1112basic_stringIT_T0_T1_EEPKS5OS8]+0x23): undefined reference to `std::cxx11::basic_string<char, std::char_traits, std::allocator >::_M_replace(unsigned long, unsigned long, char const, unsigned long)'
CMakeFiles/test_cpu.dir/tests/test_cpu.cpp.o: In function `void std::vector<int, std::allocator >::_M_range_insert<__gnu_cxx::__normal_iterator<int const , std::vector<int, std::allocator > > >(gnu_cxx::__normal_iterator<int*, std::vector<int, std::allocator > >, gnu_cxx::normal_iterator<int const*, std::vector<int, std::allocator > >, __gnu_cxx:: normal_iterator<int const, std::vector<int, std::allocator > >, std::forward_iterator_tag)':
test_cpu.cpp:(.text._ZNSt6vectorIiSaIiEE15_M_range_insertIN9gnu_cxx17normal_iteratorIPKiS1_EEEEvNS4_IPiS1_EET_SA_St20forward_iterator_tag[_ZNSt6vectorIiSaIiEE15_M_range_insertIN9gnu_cxx17normal_iteratorIPKiS1_EEEEvNS4_IPiS1_EET_SA_St20forward_iterator_tag]+0x1db): undefined reference to )'
test_cpu.cpp:(.text._ZNSt6vectorIiSaIiEE15_M_range_insertIN9gnu_cxx17normal_iteratorIPKiS1_EEEEvNS4_IPiS1_EET_SA_St20forward_iterator_tag[_ZNSt6vectorIiSaIiEE15_M_range_insertIN9gnu_cxx17normal_iteratorIPKiS1_EEEEvNS4_IPiS1_EET_SA_St20forward_iterator_tag]+0x322): undefined reference to >::_M_emplace_back_aux(int&&)':
test_cpu.cpp:(.text._ZNSt6vectorIiSaIiEE19_M_emplace_backauxIJiEEEvDpOT[_ZNSt6vectorIiSaIiEE19_M_emplace_backauxIJiEEEvDpOT]+0x3a): undefined reference to >& std::ostream_insert<char, std::char_traits >(std::basic_ostream<char, std::char_traits >&, char const, long)'
test_cpu.cpp:(.text.startup+0x20): undefined reference to >& std::endl<char, std::char_traits >(std::basic_ostream<char, std::char_traits >&)'
test_cpu.cpp:(.text.startup+0x3b): undefined reference to >& std::__ostream_insert<char, std::char_traits >(std::basic_ostream<char, std::char_traits >&, char const , long)'
test_cpu.cpp:(.text.startup+0x45): undefined reference to >& std::endl<char, std::char_traits >(std::basic_ostream<char, std::char_traits >&)'
test_cpu.cpp:(.text.startup+0x7b): undefined reference to >& std:: ostream_insert<char, std::char_traits >(std::basic_ostream<char, std::char_traits >&, char const, long)'
test_cpu.cpp:(.text.startup+0x85): undefined reference to >& std::endl<char, std::char_traits >(std::basic_ostream<char, std::char_traits >&)'
test_cpu.cpp:(.text.startup+0x9d): undefined reference to >& std::__ostream_insert<char, std::char_traits >(std::basic_ostream<char, std::char_traits >&, char const , long)'
test_cpu.cpp:(.text.startup+0xa7): undefined reference to >& std::endl<char, std::char_traits >(std::basic_ostream<char, std::char_traits >&)'
CMakeFiles/test_cpu.dir/tests/test_cpu.cpp.o: In function
softmax(float const*, int, int, float*)': test_cpu.cpp:(.text+0x11f): undefined reference to
expf' test_cpu.cpp:(.text+0x154): undefined reference toexpf' CMakeFiles/test_cpu.dir/tests/test_cpu.cpp.o: In function
options_test()': test_cpu.cpp:(.text+0x1e9): undefined reference tooperator new(unsigned long)' test_cpu.cpp:(.text+0x23e): undefined reference to
operator new(unsigned long)' test_cpu.cpp:(.text+0x28a): undefined reference tooperator new(unsigned long)' test_cpu.cpp:(.text+0x2cb): undefined reference to
logf' test_cpu.cpp:(.text+0x309): undefined reference tologf' test_cpu.cpp:(.text+0x31d): undefined reference to
operator new(unsigned long)' test_cpu.cpp:(.text+0x365): undefined reference tooperator new(unsigned long)' test_cpu.cpp:(.text+0x383): undefined reference to
operator new(unsigned long)' test_cpu.cpp:(.text+0x3a1): undefined reference tooperator new(unsigned long)' test_cpu.cpp:(.text+0x3c5): undefined reference to
operator new(unsigned long)' test_cpu.cpp:(.text+0x4de): undefined reference tostd::ostream::put(char)' test_cpu.cpp:(.text+0x4e6): undefined reference to
std::ostream::flush()' test_cpu.cpp:(.text+0x55f): undefined reference tostd::cerr' test_cpu.cpp:(.text+0x564): undefined reference to
std::basic_ostream<char, std::char_traitsstd::cerr' test_cpu.cpp:(.text+0x578): undefined reference to
std::basic_ostream<char, std::char_traitsstd::cerr' test_cpu.cpp:(.text+0x58a): undefined reference to
std::ostream& std::ostream::_M_insertstd::ostream& std::ostream::_M_insert<double>(double)' test_cpu.cpp:(.text+0x5c4): undefined reference to
std::basic_ostream<char, std::char_traitsstd::ostream& std::ostream::_M_insert<double>(double)' test_cpu.cpp:(.text+0x5e9): undefined reference to
std::basic_ostream<char, std::char_traitsstd::ostream& std::ostream::_M_insert<double>(double)' test_cpu.cpp:(.text+0x60e): undefined reference to
std::basic_ostream<char, std::char_traitsstd::ostream& std::ostream::_M_insert<double>(double)' test_cpu.cpp:(.text+0x63a): undefined reference to
std::basic_ostream<char, std::char_traitsstd::ctype<char>::_M_widen_init() const' test_cpu.cpp:(.text+0x709): undefined reference to
std::cerr' test_cpu.cpp:(.text+0x70e): undefined reference to `std::basic_ostream<char, std::char_traitsstd::cerr' test_cpu.cpp:(.text+0x722): undefined reference to
std::basic_ostream<char, std::char_traitsstd::cerr' test_cpu.cpp:(.text+0x734): undefined reference to
std::ostream& std::ostream::_M_insertstd::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)' test_cpu.cpp:(.text+0x759): undefined reference to
std::ostream& std::ostream::_M_insertstd::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)' test_cpu.cpp:(.text+0x77e): undefined reference to
std::ostream& std::ostream::_M_insertstd::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)' test_cpu.cpp:(.text+0x7a3): undefined reference to
std::ostream& std::ostream::_M_insertstd::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)' test_cpu.cpp:(.text+0x7c8): undefined reference to
std::ostream& std::ostream::_M_insertstd::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)' test_cpu.cpp:(.text+0x81b): undefined reference to
std::ostream::put(char)' test_cpu.cpp:(.text+0x823): undefined reference tostd::ostream::flush()' test_cpu.cpp:(.text+0x840): undefined reference to
operator delete(void)' test_cpu.cpp:(.text+0x848): undefined reference to `operator delete(void)' test_cpu.cpp:(.text+0x854): undefined reference tooperator delete(void*)' test_cpu.cpp:(.text+0x860): undefined reference to
operator delete(void)' test_cpu.cpp:(.text+0x86c): undefined reference to `operator delete(void)' CMakeFiles/test_cpu.dir/tests/test_cpu.cpp.o:test_cpu.cpp:(.text+0x878): more undefined references tooperator delete(void*)' follow CMakeFiles/test_cpu.dir/tests/test_cpu.cpp.o: In function
options_test()': test_cpu.cpp:(.text+0x8b5): undefined reference tostd::ctype<char>::_M_widen_init() const' test_cpu.cpp:(.text+0x8e0): undefined reference to
std::throw_bad_cast()' test_cpu.cpp:(.text+0x8ef): undefined reference tooperator delete(void*)' test_cpu.cpp:(.text+0x8f7): undefined reference to
operator delete(void)' test_cpu.cpp:(.text+0x903): undefined reference to `operator delete(void)' test_cpu.cpp:(.text+0x90f): undefined reference tooperator delete(void*)' test_cpu.cpp:(.text+0x91b): undefined reference to
operator delete(void)' CMakeFiles/test_cpu.dir/tests/test_cpu.cpp.o:test_cpu.cpp:(.text+0x927): more undefined references to `operator delete(void)' follow CMakeFiles/test_cpu.dir/tests/test_cpu.cpp.o: In functionoptions_test()': test_cpu.cpp:(.text+0x953): undefined reference to
std::throw_bad_cast()' test_cpu.cpp:(.text+0x967): undefined reference to__cxa_allocate_exception' test_cpu.cpp:(.text+0xa12): undefined reference to
std::runtime_error::runtime_error(std::cxx11::basic_string<char, std::char_traitsoperator delete(void*)' test_cpu.cpp:(.text+0xa3e): undefined reference to
operator delete(void)' test_cpu.cpp:(.text+0xa5a): undefined reference to `operator delete(void)' test_cpu.cpp:(.text+0xa5f): undefined reference tostd::runtime_error::~runtime_error()' test_cpu.cpp:(.text+0xa64): undefined reference to
typeinfo for std::runtime_error' test_cpu.cpp:(.text+0xa6c): undefined reference to__cxa_throw' test_cpu.cpp:(.text+0xa85): undefined reference to
operator delete(void)' test_cpu.cpp:(.text+0xa9b): undefined reference to `operator delete(void)' test_cpu.cpp:(.text+0xab7): undefined reference tooperator delete(void*)' test_cpu.cpp:(.text+0xabf): undefined reference to
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned long&, unsigned long)' test_cpu.cpp:(.text+0xb3a): undefined reference to
std::throw_logic_error(char const*)' test_cpu.cpp:(.text+0xb4c): undefined reference to__cxa_allocate_exception' test_cpu.cpp:(.text+0xbff): undefined reference to
std::runtime_error::runtime_error(std::cxx11::basic_string<char, std::char_traitsoperator delete(void*)' test_cpu.cpp:(.text+0xc37): undefined reference to
operator delete(void)' test_cpu.cpp:(.text+0xc53): undefined reference to `operator delete(void)' test_cpu.cpp:(.text+0xc58): undefined reference tostd::runtime_error::~runtime_error()' test_cpu.cpp:(.text+0xc5d): undefined reference to
typeinfo for std::runtime_error' test_cpu.cpp:(.text+0xc65): undefined reference to__cxa_throw' test_cpu.cpp:(.text+0xc84): undefined reference to
operator delete(void)' test_cpu.cpp:(.text+0xca0): undefined reference to `operator delete(void)' test_cpu.cpp:(.text+0xd15): undefined reference tostd::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned long&, unsigned long)' test_cpu.cpp:(.text+0xd36): undefined reference to
std::throw_logic_error(char const)' CMakeFiles/test_cpu.dir/tests/test_cpu.cpp.o: In functiongrad_check(int, int, std::vector<float, std::allocator<float> >&, std::vector<std::vector<int, std::allocator<int> >, std::allocator<std::vector<int, std::allocator<int> > > > const&, std::vector<int, std::allocator<int> > const&)': test_cpu.cpp:(.text+0xecc): undefined reference to
operator new(unsigned long)' test_cpu.cpp:(.text+0xf2b): undefined reference tooperator new(unsigned long)' test_cpu.cpp:(.text+0x1081): undefined reference to
operator new(unsigned long)' test_cpu.cpp:(.text+0x1114): undefined reference tooperator new(unsigned long)' test_cpu.cpp:(.text+0x114f): undefined reference to
operator new(unsigned long)' test_cpu.cpp:(.text+0x1345): undefined reference to `operator delete(void)' test_cpu.cpp:(.text+0x1359): undefined reference tooperator delete(void*)' test_cpu.cpp:(.text+0x13ea): undefined reference to
operator delete(void)' test_cpu.cpp:(.text+0x13fe): undefined reference to `operator delete(void)' test_cpu.cpp:(.text+0x1412): undefined reference tooperator delete(void*)' CMakeFiles/test_cpu.dir/tests/test_cpu.cpp.o:test_cpu.cpp:(.text+0x1423): more undefined references to
operator delete(void*)' follow CMakeFiles/test_cpu.dir/tests/test_cpu.cpp.o: In functiongrad_check(int, int, std::vector<float, std::allocator<float> >&, std::vector<std::vector<int, std::allocator<int> >, std::allocator<std::vector<int, std::allocator<int> > > > const&, std::vector<int, std::allocator<int> > const&)': test_cpu.cpp:(.text+0x1515): undefined reference to
cxa_allocate_exception' test_cpu.cpp:(.text+0x15b7): undefined reference tostd::runtime_error::runtime_error(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' test_cpu.cpp:(.text+0x15d3): undefined reference to
operator delete(void)' test_cpu.cpp:(.text+0x15ef): undefined reference to `operator delete(void)' test_cpu.cpp:(.text+0x160b): undefined reference tooperator delete(void*)' test_cpu.cpp:(.text+0x1610): undefined reference to
std::runtime_error::~runtime_error()' test_cpu.cpp:(.text+0x1615): undefined reference totypeinfo for std::runtime_error' test_cpu.cpp:(.text+0x161d): undefined reference to
cxa_throw' test_cpu.cpp:(.text+0x163c): undefined reference tooperator delete(void*)' test_cpu.cpp:(.text+0x1658): undefined reference to
operator delete(void)' test_cpu.cpp:(.text+0x1674): undefined reference to `operator delete(void)' test_cpu.cpp:(.text+0x167c): undefined reference to__cxa_free_exception' test_cpu.cpp:(.text+0x1690): undefined reference to
operator delete(void)' test_cpu.cpp:(.text+0x16a4): undefined reference to `operator delete(void)' test_cpu.cpp:(.text+0x16b5): undefined reference tooperator delete(void*)' test_cpu.cpp:(.text+0x16c6): undefined reference to
operator delete(void*)' test_cpu.cpp:(.text+0x1727): undefined reference to `std::cxx11::basic_string<char, std::char_traitsstd::__throw_logic_error(char const*)' test_cpu.cpp:(.text+0x1768): undefined reference to
cxa_allocate_exception' test_cpu.cpp:(.text+0x1804): undefined reference tostd::runtime_error::runtime_error(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' test_cpu.cpp:(.text+0x181a): undefined reference to
operator delete(void)' test_cpu.cpp:(.text+0x1830): undefined reference to `operator delete(void)' test_cpu.cpp:(.text+0x184c): undefined reference tooperator delete(void*)' test_cpu.cpp:(.text+0x1851): undefined reference to
std::runtime_error::~runtime_error()' test_cpu.cpp:(.text+0x1856): undefined reference totypeinfo for std::runtime_error' test_cpu.cpp:(.text+0x185e): undefined reference to
cxa_throw' test_cpu.cpp:(.text+0x1877): undefined reference tooperator delete(void*)' test_cpu.cpp:(.text+0x188d): undefined reference to
operator delete(void)' test_cpu.cpp:(.text+0x18a9): undefined reference to `operator delete(void)' test_cpu.cpp:(.text+0x18b1): undefined reference to__cxa_free_exception' test_cpu.cpp:(.text+0x18be): undefined reference to
operator delete(void)' test_cpu.cpp:(.text+0x18d4): undefined reference to `operator delete(void)' test_cpu.cpp:(.text+0x18ec): undefined reference tooperator delete(void*)' test_cpu.cpp:(.text+0x1942): undefined reference to
std::cxx11::basic_string<char, std::char_traitsstd::__throw_logic_error(char const*)' test_cpu.cpp:(.text+0x197b): undefined reference to
std::runtime_error::runtime_error(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' test_cpu.cpp:(.text+0x1a3f): undefined reference to
operator delete(void)' test_cpu.cpp:(.text+0x1a5b): undefined reference to `operator delete(void)' test_cpu.cpp:(.text+0x1a77): undefined reference tooperator delete(void*)' test_cpu.cpp:(.text+0x1a7c): undefined reference to
std::runtime_error::~runtime_error()' test_cpu.cpp:(.text+0x1a81): undefined reference totypeinfo for std::runtime_error' test_cpu.cpp:(.text+0x1a89): undefined reference to
cxa_throw' test_cpu.cpp:(.text+0x1aa8): undefined reference tooperator delete(void*)' test_cpu.cpp:(.text+0x1ac4): undefined reference to
operator delete(void*)' test_cpu.cpp:(.text+0x1b35): undefined reference to `std::cxx11::basic_string<char, std::char_traitsstd::__throw_logic_error(char const*)' test_cpu.cpp:(.text+0x1b78): undefined reference to
std::throw_bad_alloc()' test_cpu.cpp:(.text+0x1b85): undefined reference tostd::__throw_bad_alloc()' test_cpu.cpp:(.text+0x1b97): undefined reference to
cxa_allocate_exception' test_cpu.cpp:(.text+0x1c39): undefined reference tostd::runtime_error::runtime_error(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' test_cpu.cpp:(.text+0x1c55): undefined reference to
operator delete(void)' test_cpu.cpp:(.text+0x1c71): undefined reference to `operator delete(void)' test_cpu.cpp:(.text+0x1c8d): undefined reference tooperator delete(void*)' test_cpu.cpp:(.text+0x1c92): undefined reference to
std::runtime_error::~runtime_error()' test_cpu.cpp:(.text+0x1c97): undefined reference totypeinfo for std::runtime_error' test_cpu.cpp:(.text+0x1c9f): undefined reference to
cxa_throw' test_cpu.cpp:(.text+0x1cbe): undefined reference tooperator delete(void*)' test_cpu.cpp:(.text+0x1cda): undefined reference to
operator delete(void*)' test_cpu.cpp:(.text+0x1d4d): undefined reference to `std::cxx11::basic_string<char, std::char_traitsstd::__throw_logic_error(char const*)' test_cpu.cpp:(.text+0x1d78): undefined reference to
std::throw_bad_alloc()' test_cpu.cpp:(.text+0x1d7d): undefined reference tostd::__throw_bad_alloc()' CMakeFiles/test_cpu.dir/tests/test_cpu.cpp.o: In function
inf_test()': test_cpu.cpp:(.text+0x1df6): undefined reference tooperator new(unsigned long)' test_cpu.cpp:(.text+0x1e79): undefined reference to
operator new(unsigned long)' test_cpu.cpp:(.text+0x1fc1): undefined reference tooperator delete(void*)' test_cpu.cpp:(.text+0x1fd2): undefined reference to
operator delete(void)' test_cpu.cpp:(.text+0x1fe3): undefined reference to `operator delete(void)' test_cpu.cpp:(.text+0x1feb): undefined reference tooperator delete(void*)' test_cpu.cpp:(.text+0x1ffc): undefined reference to
operator delete(void)' CMakeFiles/test_cpu.dir/tests/test_cpu.cpp.o:test_cpu.cpp:(.text+0x2030): more undefined references to `operator delete(void)' follow CMakeFiles/test_cpu.dir/tests/test_cpu.cpp.o: In functioninf_test()': test_cpu.cpp:(.text+0x2047): undefined reference to
cxa_allocate_exception' test_cpu.cpp:(.text+0x20e5): undefined reference tostd::runtime_error::runtime_error(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' test_cpu.cpp:(.text+0x20fb): undefined reference to
operator delete(void)' test_cpu.cpp:(.text+0x2111): undefined reference to `operator delete(void)' test_cpu.cpp:(.text+0x212d): undefined reference tooperator delete(void*)' test_cpu.cpp:(.text+0x2139): undefined reference to
std::runtime_error::~runtime_error()' test_cpu.cpp:(.text+0x213e): undefined reference totypeinfo for std::runtime_error' test_cpu.cpp:(.text+0x2143): undefined reference to
cxa_throw' test_cpu.cpp:(.text+0x215c): undefined reference tooperator delete(void*)' test_cpu.cpp:(.text+0x2172): undefined reference to
operator delete(void)' test_cpu.cpp:(.text+0x218e): undefined reference to `operator delete(void)' test_cpu.cpp:(.text+0x219a): undefined reference to__cxa_free_exception' test_cpu.cpp:(.text+0x21a2): undefined reference to
operator delete(void)' test_cpu.cpp:(.text+0x21b3): undefined reference to `operator delete(void)' test_cpu.cpp:(.text+0x21c4): undefined reference tooperator delete(void*)' test_cpu.cpp:(.text+0x21cc): undefined reference to
operator delete(void*)' test_cpu.cpp:(.text+0x2223): undefined reference to `std::cxx11::basic_string<char, std::char_traitsstd::__throw_logic_error(char const*)' test_cpu.cpp:(.text+0x2256): undefined reference to
cxa_allocate_exception' test_cpu.cpp:(.text+0x22ff): undefined reference tostd::runtime_error::runtime_error(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' test_cpu.cpp:(.text+0x231b): undefined reference to
operator delete(void)' test_cpu.cpp:(.text+0x2337): undefined reference to `operator delete(void)' test_cpu.cpp:(.text+0x2353): undefined reference tooperator delete(void*)' test_cpu.cpp:(.text+0x235f): undefined reference to
std::runtime_error::~runtime_error()' test_cpu.cpp:(.text+0x2364): undefined reference totypeinfo for std::runtime_error' test_cpu.cpp:(.text+0x2369): undefined reference to
cxa_throw' test_cpu.cpp:(.text+0x2388): undefined reference tooperator delete(void*)' test_cpu.cpp:(.text+0x23a4): undefined reference to
operator delete(void)' test_cpu.cpp:(.text+0x2416): undefined reference tostd::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned long&, unsigned long)' test_cpu.cpp:(.text+0x2437): undefined reference to
std::__throw_logic_error(char const)' CMakeFiles/test_cpu.dir/tests/test_cpu.cpp.o: In functionsmall_test()': test_cpu.cpp:(.text+0x2493): undefined reference to
operator new(unsigned long)' test_cpu.cpp:(.text+0x24d6): undefined reference tooperator new(unsigned long)' test_cpu.cpp:(.text+0x2527): undefined reference to
operator delete(void)' test_cpu.cpp:(.text+0x2531): undefined reference tooperator new(unsigned long)' test_cpu.cpp:(.text+0x2549): undefined reference to
operator new(unsigned long)' test_cpu.cpp:(.text+0x268a): undefined reference toexpf' test_cpu.cpp:(.text+0x26ca): undefined reference to
operator delete(void)' test_cpu.cpp:(.text+0x26d6): undefined reference tooperator delete(void*)' test_cpu.cpp:(.text+0x26de): undefined reference to
operator delete(void)' test_cpu.cpp:(.text+0x26e6): undefined reference to `operator delete(void)' test_cpu.cpp:(.text+0x2712): undefined reference tooperator delete(void*)' test_cpu.cpp:(.text+0x2729): undefined reference to
cxa_allocate_exception' test_cpu.cpp:(.text+0x27cd): undefined reference tostd::runtime_error::runtime_error(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' test_cpu.cpp:(.text+0x27e3): undefined reference to
operator delete(void)' test_cpu.cpp:(.text+0x27f9): undefined reference to `operator delete(void)' test_cpu.cpp:(.text+0x2815): undefined reference tooperator delete(void*)' test_cpu.cpp:(.text+0x281a): undefined reference to
std::runtime_error::~runtime_error()' test_cpu.cpp:(.text+0x281f): undefined reference totypeinfo for std::runtime_error' test_cpu.cpp:(.text+0x2827): undefined reference to
cxa_throw' test_cpu.cpp:(.text+0x2840): undefined reference tooperator delete(void*)' test_cpu.cpp:(.text+0x2856): undefined reference to
operator delete(void)' test_cpu.cpp:(.text+0x2872): undefined reference to `operator delete(void)' test_cpu.cpp:(.text+0x287a): undefined reference to__cxa_free_exception' test_cpu.cpp:(.text+0x288b): undefined reference to
operator delete(void)' test_cpu.cpp:(.text+0x289a): undefined reference to `operator delete(void)' test_cpu.cpp:(.text+0x28a2): undefined reference tooperator delete(void*)' test_cpu.cpp:(.text+0x28fa): undefined reference to
std::cxx11::basic_string<char, std::char_traitsstd::__throw_logic_error(char const*)' test_cpu.cpp:(.text+0x292d): undefined reference to
std::runtime_error::runtime_error(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' test_cpu.cpp:(.text+0x29f9): undefined reference to
operator delete(void)' test_cpu.cpp:(.text+0x2a15): undefined reference to `operator delete(void)' test_cpu.cpp:(.text+0x2a31): undefined reference tooperator delete(void*)' test_cpu.cpp:(.text+0x2a36): undefined reference to
std::runtime_error::~runtime_error()' test_cpu.cpp:(.text+0x2a3b): undefined reference totypeinfo for std::runtime_error' test_cpu.cpp:(.text+0x2a43): undefined reference to
cxa_throw' test_cpu.cpp:(.text+0x2a62): undefined reference tooperator delete(void*)' test_cpu.cpp:(.text+0x2a7e): undefined reference to
operator delete(void)' test_cpu.cpp:(.text+0x2a9a): undefined reference to `operator delete(void)' test_cpu.cpp:(.text+0x2aa2): undefined reference to__cxa_free_exception' test_cpu.cpp:(.text+0x2afa): undefined reference to
std::cxx11::basic_string<char, std::char_traitsstd::__throw_logic_error(char const*)' CMakeFiles/test_cpu.dir/tests/test_cpu.cpp.o: In function
run_tests()': test_cpu.cpp:(.text+0x2b6a): undefined reference tooperator new(unsigned long)' test_cpu.cpp:(.text+0x2cd1): undefined reference to
operator delete(void)' test_cpu.cpp:(.text+0x2d95): undefined reference to `operator delete(void)' test_cpu.cpp:(.text+0x2db9): undefined reference tooperator delete(void*)' test_cpu.cpp:(.text+0x2dd4): undefined reference to
operator delete(void)' test_cpu.cpp:(.text+0x2de3): undefined reference to `operator delete(void)' CMakeFiles/test_cpu.dir/tests/test_cpu.cpp.o:test_cpu.cpp:(.text+0x2dfc): more undefined references tooperator delete(void*)' follow CMakeFiles/test_cpu.dir/tests/test_cpu.cpp.o: In function
std::cxx11::basic_string<char, std::char_traitsoperator new(unsigned long)' test_cpu.cpp:(.text._ZNSt6vectorIiSaIiEE15_M_range_insertIN9__gnu_cxx17__normal_iteratorIPKiS1_EEEEvNS4_IPiS1_EET_SA_St20forward_iterator_tag[_ZNSt6vectorIiSaIiEE15_M_range_insertIN9__gnu_cxx17__normal_iteratorIPKiS1_EEEEvNS4_IPiS1_EET_SA_St20forward_iterator_tag]+0x234): undefined reference to
operator delete(voidstd::__throw_length_error(char const*)' CMakeFiles/test_cpu.dir/tests/test_cpu.cpp.o: In function
void std::vector<int, std::allocatoroperator new(unsigned long)' test_cpu.cpp:(.text._ZNSt6vectorIiSaIiEE19_M_emplace_back_auxIJiEEEvDpOT_[_ZNSt6vectorIiSaIiEE19_M_emplace_back_auxIJiEEEvDpOT_]+0x74): undefined reference to
operator delete(void)' CMakeFiles/test_cpu.dir/tests/test_cpu.cpp.o: In functionvoid std::vector<std::vector<int, std::allocator<int> >, std::allocator<std::vector<int, std::allocator<int> > > >::_M_emplace_back_aux<std::vector<int, std::allocator<int> > >(std::vector<int, std::allocator<int> >&&)': test_cpu.cpp:(.text._ZNSt6vectorIS_IiSaIiEESaIS1_EE19_M_emplace_back_auxIJS1_EEEvDpOT_[_ZNSt6vectorIS_IiSaIiEESaIS1_EE19_M_emplace_back_auxIJS1_EEEvDpOT_]+0x57): undefined reference to
operator new(unsigned long)' test_cpu.cpp:(.text._ZNSt6vectorIS_IiSaIiEESaIS1_EE19_M_emplace_back_auxIJS1EEEvDpOT[_ZNSt6vectorIS_IiSaIiEESaIS1_EE19_M_emplace_back_auxIJS1EEEvDpOT]+0x149): undefined reference to `operator delete(void)' test_cpu.cpp:(.text._ZNSt6vectorIS_IiSaIiEESaIS1_EE19_M_emplace_back_auxIJS1EEEvDpOT[_ZNSt6vectorIS_IiSaIiEESaIS1_EE19_M_emplace_back_auxIJS1EEEvDpOT]+0x163): undefined reference tooperator delete(void*)' CMakeFiles/test_cpu.dir/tests/test_cpu.cpp.o: In function
main': test_cpu.cpp:(.text.startup+0x16): undefined reference tostd::cerr' test_cpu.cpp:(.text.startup+0x1b): undefined reference to
std::basic_ostream<char, std::char_traitsstd::cerr' test_cpu.cpp:(.text.startup+0x25): undefined reference to
std::basic_ostream<char, std::char_traitsstd::cout' test_cpu.cpp:(.text.startup+0x40): undefined reference to
std::basic_ostream<char, std::char_traitsstd::cout' test_cpu.cpp:(.text.startup+0x4a): undefined reference to
std::basic_ostream<char, std::char_traitsstd::cout' test_cpu.cpp:(.text.startup+0x80): undefined reference to
std::basic_ostream<char, std::char_traitsstd::cout' test_cpu.cpp:(.text.startup+0x8a): undefined reference to
std::basic_ostream<char, std::char_traitsstd::cout' test_cpu.cpp:(.text.startup+0xa2): undefined reference to
std::basic_ostream<char, std::char_traitsstd::cout' test_cpu.cpp:(.text.startup+0xac): undefined reference to
std::basic_ostream<char, std::char_traits_GLOBAL__sub_I__Z8rel_diffRKSt6vectorIfSaIfEES3_': test_cpu.cpp:(.text.startup+0xca): undefined reference to
std::ios_base::Init::Init()' test_cpu.cpp:(.text.startup+0xd9): undefined reference tostd::ios_base::Init::~Init()' CMakeFiles/test_cpu.dir/tests/test_cpu.cpp.o:(.eh_frame+0xe3): undefined reference to
gxx_personality_v0' CMakeFiles/test_cpu.dir/tests/random.cpp.o: In functiongenLabels(int, int)': random.cpp:(.text+0x6d): undefined reference to
operator new(unsigned long)' random.cpp:(.text+0x189): undefined reference tostd::__throw_bad_alloc()' CMakeFiles/test_cpu.dir/tests/random.cpp.o: In function
genActs(int)': random.cpp:(.text+0x208): undefined reference tooperator new(unsigned long)' random.cpp:(.text+0x394): undefined reference to
std::throw_bad_alloc()' libwarpctc.so: undefined reference to `log1pf' collect2: error: ld returned 1 exit status CMakeFiles/test_cpu.dir/build.make:123: recipe for target 'test_cpu' failed make[2]: [test_cpu] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/test_cpu.dir/all' failed make[1]: [CMakeFiles/test_cpu.dir/all] Error 2 Makefile:127: recipe for target 'all' failed make: *** [all] Error 2Ubuntu version is 16.04 and gcc is 5.4.0, PyTorch version is 1.1.0, cuda version is 9.2.18.
I saw someone succeeded with torch 1.0.0 so I guessed the problem is not with the version of torch.
Could anyone give some suggestion? Many thanks.