public
Created

DAMN IT GCC THIS IS NOT HELPFUL

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89
$ ./build.sh
/tmp/cc-4IC5eE.o: In function `Plugin::Plugin()':
app.cpp:(.text+0x84): undefined reference to `std::allocator<char>::allocator()'
app.cpp:(.text+0xa3): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&)'
app.cpp:(.text+0xb2): undefined reference to `operator new(unsigned int)'
app.cpp:(.text+0xf1): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()'
app.cpp:(.text+0xff): undefined reference to `std::allocator<char>::~allocator()'
app.cpp:(.text+0x12d): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()'
app.cpp:(.text+0x13b): undefined reference to `std::allocator<char>::~allocator()'
app.cpp:(.text+0x15c): undefined reference to `std::terminate()'
/tmp/cc-4IC5eE.o: In function `main':
app.cpp:(.text+0x181): undefined reference to `std::allocator<char>::allocator()'
app.cpp:(.text+0x1a0): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&)'
app.cpp:(.text+0x1cb): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()'
app.cpp:(.text+0x1e9): undefined reference to `std::allocator<char>::~allocator()'
app.cpp:(.text+0x2c8): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()'
app.cpp:(.text+0x2d6): undefined reference to `std::allocator<char>::~allocator()'
app.cpp:(.text+0x352): undefined reference to `std::terminate()'
/tmp/cc-4IC5eE.o: In function `Plugin::setHook(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, Hook*)':
app.cpp:(.gnu.linkonce.t._ZN6Plugin7setHookESsP4Hook+0x2d): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
app.cpp:(.gnu.linkonce.t._ZN6Plugin7setHookESsP4Hook+0x50): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()'
app.cpp:(.gnu.linkonce.t._ZN6Plugin7setHookESsP4Hook+0x6e): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
app.cpp:(.gnu.linkonce.t._ZN6Plugin7setHookESsP4Hook+0x8e): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()'
app.cpp:(.gnu.linkonce.t._ZN6Plugin7setHookESsP4Hook+0xa9): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()'
app.cpp:(.gnu.linkonce.t._ZN6Plugin7setHookESsP4Hook+0xc6): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()'
app.cpp:(.gnu.linkonce.t._ZN6Plugin7setHookESsP4Hook+0x100): undefined reference to `std::terminate()'
/tmp/cc-4IC5eE.o: In function `Plugin::instance()':
app.cpp:(.gnu.linkonce.t._ZN6Plugin8instanceEv+0x1a): undefined reference to `__cxa_guard_acquire'
app.cpp:(.gnu.linkonce.t._ZN6Plugin8instanceEv+0x57): undefined reference to `__cxa_guard_release'
app.cpp:(.gnu.linkonce.t._ZN6Plugin8instanceEv+0x9a): undefined reference to `__cxa_guard_abort'
/tmp/cc-4IC5eE.o: In function `Plugin::getHook(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
app.cpp:(.gnu.linkonce.t._ZN6Plugin7getHookESs+0x24): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
app.cpp:(.gnu.linkonce.t._ZN6Plugin7getHookESs+0x4d): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()'
app.cpp:(.gnu.linkonce.t._ZN6Plugin7getHookESs+0x88): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()'
app.cpp:(.gnu.linkonce.t._ZN6Plugin7getHookESs+0xaf): undefined reference to `std::terminate()'
/tmp/cc-4IC5eE.o: In function `std::vector<std::pair<void*, int (*)(int, int)>, std::allocator<std::pair<void*, int (*)(int, int)> > >::_M_insert_aux(__gnu_cxx::__normal_iterator<std::pair<void*, int (*)(int, int)>*, std::vector<std::pair<void*, int (*)(int, int)>, std::allocator<std::pair<void*, int (*)(int, int)> > > >, std::pair<void*, int (*)(int, int)> const&)':
app.cpp:(.gnu.linkonce.t._ZNSt6vectorISt4pairIPvPFiiiEESaIS4_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS4_S6_EERKS4_+0x1cb): undefined reference to `__cxa_begin_catch'
app.cpp:(.gnu.linkonce.t._ZNSt6vectorISt4pairIPvPFiiiEESaIS4_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS4_S6_EERKS4_+0x22a): undefined reference to `__cxa_rethrow'
app.cpp:(.gnu.linkonce.t._ZNSt6vectorISt4pairIPvPFiiiEESaIS4_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS4_S6_EERKS4_+0x24f): undefined reference to `__cxa_end_catch'
app.cpp:(.gnu.linkonce.t._ZNSt6vectorISt4pairIPvPFiiiEESaIS4_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS4_S6_EERKS4_+0x2fb): undefined reference to `std::terminate()'
/tmp/cc-4IC5eE.o: In function `std::vector<std::pair<void*, int (*)(int, int)>, std::allocator<std::pair<void*, int (*)(int, int)> > >::_M_check_len(unsigned int, char const*) const':
app.cpp:(.gnu.linkonce.t._ZNKSt6vectorISt4pairIPvPFiiiEESaIS4_EE12_M_check_lenEjPKc+0x47): undefined reference to `std::__throw_length_error(char const*)'
/tmp/cc-4IC5eE.o: In function `__gnu_cxx::new_allocator<std::pair<void*, int (*)(int, int)> >::deallocate(std::pair<void*, int (*)(int, int)>*, unsigned int)':
app.cpp:(.gnu.linkonce.t._ZN9__gnu_cxx13new_allocatorISt4pairIPvPFiiiEEE10deallocateEPS5_j+0x1f): undefined reference to `operator delete(void*)'
/tmp/cc-4IC5eE.o: In function `__gnu_cxx::new_allocator<std::pair<void*, int (*)(int, int)> >::allocate(unsigned int, void const*)':
app.cpp:(.gnu.linkonce.t._ZN9__gnu_cxx13new_allocatorISt4pairIPvPFiiiEEE8allocateEjPKv+0x31): undefined reference to `std::__throw_bad_alloc()'
app.cpp:(.gnu.linkonce.t._ZN9__gnu_cxx13new_allocatorISt4pairIPvPFiiiEEE8allocateEjPKv+0x3f): undefined reference to `operator new(unsigned int)'
/tmp/cc-4IC5eE.o: In function `std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, Hook*, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, Hook*> > >::operator[](std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
app.cpp:(.gnu.linkonce.t._ZNSt3mapISsP4HookSt4lessISsESaISt4pairIKSsS1_EEEixERS5_+0x155): undefined reference to `std::terminate()'
/tmp/cc-4IC5eE.o: In function `std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, Hook*>::~pair()':
app.cpp:(.gnu.linkonce.t._ZNSt4pairIKSsP4HookED2Ev+0x13): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()'
/tmp/cc-4IC5eE.o: In function `std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, Hook*>::pair(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, Hook* const&)':
app.cpp:(.gnu.linkonce.t._ZNSt4pairIKSsP4HookEC2ERS0_RKS2_+0x29): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/tmp/cc-4IC5eE.o: In function `std::_Rb_tree<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, Hook*>, std::_Select1st<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, Hook*> >, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, Hook*> > >::_M_insert_(std::_Rb_tree_node_base const*, std::_Rb_tree_node_base const*, std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, Hook*> const&)':
app.cpp:(.gnu.linkonce.t._ZNSt8_Rb_treeISsSt4pairIKSsP4HookESt10_Select1stIS4_ESt4lessISsESaIS4_EE10_M_insert_EPKSt18_Rb_tree_node_baseSD_RKS4_+0xd9): undefined reference to `std::_Rb_tree_insert_and_rebalance(bool, std::_Rb_tree_node_base*, std::_Rb_tree_node_base*, std::_Rb_tree_node_base&)'
/tmp/cc-4IC5eE.o: In function `std::_Rb_tree_const_iterator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, Hook*> >::operator--()':
app.cpp:(.gnu.linkonce.t._ZNSt23_Rb_tree_const_iteratorISt4pairIKSsP4HookEEmmEv+0x18): undefined reference to `std::_Rb_tree_decrement(std::_Rb_tree_node_base const*)'
/tmp/cc-4IC5eE.o: In function `std::_Rb_tree_const_iterator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, Hook*> >::operator++()':
app.cpp:(.gnu.linkonce.t._ZNSt23_Rb_tree_const_iteratorISt4pairIKSsP4HookEEppEv+0x18): undefined reference to `std::_Rb_tree_increment(std::_Rb_tree_node_base const*)'
/tmp/cc-4IC5eE.o: In function `std::_Rb_tree_iterator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, Hook*> >::operator--()':
app.cpp:(.gnu.linkonce.t._ZNSt17_Rb_tree_iteratorISt4pairIKSsP4HookEEmmEv+0x18): undefined reference to `std::_Rb_tree_decrement(std::_Rb_tree_node_base*)'
/tmp/cc-4IC5eE.o: In function `std::_Rb_tree<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, Hook*>, std::_Select1st<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, Hook*> >, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, Hook*> > >::_M_create_node(std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, Hook*> const&)':
app.cpp:(.gnu.linkonce.t._ZNSt8_Rb_treeISsSt4pairIKSsP4HookESt10_Select1stIS4_ESt4lessISsESaIS4_EE14_M_create_nodeERKS4_+0x6e): undefined reference to `__cxa_begin_catch'
app.cpp:(.gnu.linkonce.t._ZNSt8_Rb_treeISsSt4pairIKSsP4HookESt10_Select1stIS4_ESt4lessISsESaIS4_EE14_M_create_nodeERKS4_+0x8a): undefined reference to `__cxa_rethrow'
app.cpp:(.gnu.linkonce.t._ZNSt8_Rb_treeISsSt4pairIKSsP4HookESt10_Select1stIS4_ESt4lessISsESaIS4_EE14_M_create_nodeERKS4_+0xc1): undefined reference to `__cxa_end_catch'
app.cpp:(.gnu.linkonce.t._ZNSt8_Rb_treeISsSt4pairIKSsP4HookESt10_Select1stIS4_ESt4lessISsESaIS4_EE14_M_create_nodeERKS4_+0xe0): undefined reference to `std::terminate()'
/tmp/cc-4IC5eE.o: In function `__gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, Hook*> > >::deallocate(std::_Rb_tree_node<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, Hook*> >*, unsigned int)':
app.cpp:(.gnu.linkonce.t._ZN9__gnu_cxx13new_allocatorISt13_Rb_tree_nodeISt4pairIKSsP4HookEEE10deallocateEPS7_j+0x1f): undefined reference to `operator delete(void*)'
/tmp/cc-4IC5eE.o: In function `std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, Hook*>::pair(std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, Hook*> const&)':
app.cpp:(.gnu.linkonce.t._ZNSt4pairIKSsP4HookEC2ERKS3_+0x23): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/tmp/cc-4IC5eE.o: In function `__gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, Hook*> > >::allocate(unsigned int, void const*)':
app.cpp:(.gnu.linkonce.t._ZN9__gnu_cxx13new_allocatorISt13_Rb_tree_nodeISt4pairIKSsP4HookEEE8allocateEjPKv+0x31): undefined reference to `std::__throw_bad_alloc()'
app.cpp:(.gnu.linkonce.t._ZN9__gnu_cxx13new_allocatorISt13_Rb_tree_nodeISt4pairIKSsP4HookEEE8allocateEjPKv+0x3f): undefined reference to `operator new(unsigned int)'
/tmp/cc-4IC5eE.o: In function `bool std::operator< <char, std::char_traits<char>, std::allocator<char> >(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
app.cpp:(.gnu.linkonce.t._ZStltIcSt11char_traitsIcESaIcEEbRKSbIT_T0_T1_ES8_+0x1e): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::compare(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const'
/tmp/cc-4IC5eE.o: In function `Plugin::remHook(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
app.cpp:(.gnu.linkonce.t._ZN6Plugin7remHookESs+0x24): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
app.cpp:(.gnu.linkonce.t._ZN6Plugin7remHookESs+0x4d): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()'
app.cpp:(.gnu.linkonce.t._ZN6Plugin7remHookESs+0x86): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()'
app.cpp:(.gnu.linkonce.t._ZN6Plugin7remHookESs+0xa3): undefined reference to `std::terminate()'
/tmp/cc-4IC5eE.o: In function `std::_Rb_tree<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, Hook*>, std::_Select1st<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, Hook*> >, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, Hook*> > >::erase(std::_Rb_tree_iterator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, Hook*> >)':
app.cpp:(.gnu.linkonce.t._ZNSt8_Rb_treeISsSt4pairIKSsP4HookESt10_Select1stIS4_ESt4lessISsESaIS4_EE5eraseESt17_Rb_tree_iteratorIS4_E+0x22): undefined reference to `std::_Rb_tree_rebalance_for_erase(std::_Rb_tree_node_base*, std::_Rb_tree_node_base&)'
/tmp/cc-4IC5eE.o: In function `std::_Rb_tree_iterator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, Hook*> >::operator++(int)':
app.cpp:(.gnu.linkonce.t._ZNSt17_Rb_tree_iteratorISt4pairIKSsP4HookEEppEi+0x26): undefined reference to `std::_Rb_tree_increment(std::_Rb_tree_node_base*)'
/tmp/cc-4IC5eE.o:(.gnu.linkonce.r._ZTI4Hook+0x0): undefined reference to `vtable for __cxxabiv1::__class_type_info'
/tmp/cc-4IC5eE.o:(.gnu.linkonce.r._ZTI5Hook2IiiiE+0x0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
/tmp/cc-4IC5eE.o:(.eh_frame+0x12): undefined reference to `__gxx_personality_v0'
collect2: ld returned 1 exit status
clang: error: linker (via gcc) command failed with exit code 1 (use -v to see invocation)

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.