#337·libui

How to use the static library?

Author: lewisxyCreated Apr 15, 2018Updated Mar 6, 2022

I know this question may be dumb, but I just can't figure out how to do it.

I successfully compiled the program with CMake 3.11 on Windows 7 x86 with mingw32 gcc 7.2.0 and it gives two files: one libui.a and another libui.res. I want to test this library so I build the examples with mingw32-make -f Makefile examples using the Makefile generated by CMake, and it works as well.

But I wonder how I can use this library in my own project without CMake since I am not an expert on CMake and I don't want to mess up with it. So I copy the main.c inside the examples\histogram as well as ui.h and the two library files listed above to another location and run the following command in the folder containing main.c

gcc main.c -Iinclude -Llib -lui -o main.exe

I am expecting this to work since main.c only includes ui.h besides standard library and ui.h does not include other external headers as well. but it does work and throws me a bunch of undefined references. The stderr is attached:

C:\Users\111111\Desktop\alpha3.5\src\examples\histogram\lib/libui.a(alloc.cpp.obj): In function `Z11uninitAllocv':
C:/Users/111111/Desktop/alpha3.5/src/windows/alloc.cpp:16: undefined reference to `std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >::basic_ostringstream(std::_Ios_Openmode)'
C:/Users/111111/Desktop/alpha3.5/src/windows/alloc.cpp:17: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string()'
C:/Users/111111/Desktop/alpha3.5/src/windows/alloc.cpp:23: undefined reference to `std::ostream::operator<<(void const*)'
C:/Users/111111/Desktop/alpha3.5/src/windows/alloc.cpp:23: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)'
C:/Users/111111/Desktop/alpha3.5/src/windows/alloc.cpp:23: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)'
C:/Users/111111/Desktop/alpha3.5/src/windows/alloc.cpp:23: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)'
C:/Users/111111/Desktop/alpha3.5/src/windows/alloc.cpp:24: undefined reference to `std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >::str() const'
C:/Users/111111/Desktop/alpha3.5/src/windows/alloc.cpp:24: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::operator=(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&)'
C:/Users/111111/Desktop/alpha3.5/src/windows/alloc.cpp:24: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()'
C:/Users/111111/Desktop/alpha3.5/src/windows/alloc.cpp:25: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::c_str() const'
C:/Users/111111/Desktop/alpha3.5/src/windows/alloc.cpp:25: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()'
C:/Users/111111/Desktop/alpha3.5/src/windows/alloc.cpp:17: undefined reference to `std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >::~basic_ostringstream()'
C:/Users/111111/Desktop/alpha3.5/src/windows/alloc.cpp:17: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()'
C:/Users/111111/Desktop/alpha3.5/src/windows/alloc.cpp:16: undefined reference to `std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >::~basic_ostringstream()'
C:\Users\111111\Desktop\alpha3.5\src\examples\histogram\lib/libui.a(alloc.cpp.obj): In function `uiAlloc':
C:/Users/111111/Desktop/alpha3.5/src/windows/alloc.cpp:34: undefined reference to `operator new(unsigned int)'
C:/Users/111111/Desktop/alpha3.5/src/windows/alloc.cpp:34: undefined reference to `operator delete(void*)'
C:\Users\111111\Desktop\alpha3.5\src\examples\histogram\lib/libui.a(alloc.cpp.obj): In function `uiFree':
C:/Users/111111/Desktop/alpha3.5/src/windows/alloc.cpp:61: undefined reference to `operator delete(void*)'
C:\Users\111111\Desktop\alpha3.5\src\examples\histogram\lib/libui.a(alloc.cpp.obj): In function `ZNSt17_Rb_tree_iteratorISt4pairIKPhPSt6vectorIhSaIhEEEEppEv':
D:/mingw32/lib/gcc/i686-w64-mingw32/7.2.0/include/c++/bits/stl_tree.h:287: undefined reference to `std::_Rb_tree_increment(std::_Rb_tree_node_base*)'
C:\Users\111111\Desktop\alpha3.5\src\examples\histogram\lib/libui.a(alloc.cpp.obj): In function `ZNSt8_Rb_treeIPSt6vectorIhSaIhEESt4pairIKS3_PKcESt10_Select1stIS8_ESt4lessIS3_ESaIS8_EE22_M_emplace_hint_uniqueIJRKSt21piecewise_construct_tSt5tupleIJRS5_EESJ_IJEEEEESt17_Rb_tree_iteratorIS8_ESt23_Rb_tree_const_iteratorIS8_EDpOT_':
D:/mingw32/lib/gcc/i686-w64-mingw32/7.2.0/include/c++/bits/stl_tree.h:2410: undefined reference to `__cxa_begin_catch'
D:/mingw32/lib/gcc/i686-w64-mingw32/7.2.0/include/c++/bits/stl_tree.h:2413: undefined reference to `__cxa_rethrow'
D:/mingw32/lib/gcc/i686-w64-mingw32/7.2.0/include/c++/bits/stl_tree.h:2410: undefined reference to `__cxa_end_catch'
C:\Users\111111\Desktop\alpha3.5\src\examples\histogram\lib/libui.a(alloc.cpp.obj): In function `ZNSt8_Rb_treeIPhSt4pairIKS0_PSt6vectorIhSaIhEEESt10_Select1stIS7_ESt4lessIS0_ESaIS7_EE22_M_emplace_hint_uniqueIJRKSt21piecewise_construct_tSt5tupleIJOS0_EESI_IJEEEEESt17_Rb_tree_iteratorIS7_ESt23_Rb_tree_const_iteratorIS7_EDpOT_':
D:/mingw32/lib/gcc/i686-w64-mingw32/7.2.0/include/c++/bits/stl_tree.h:2410: undefined reference to `__cxa_begin_catch'
D:/mingw32/lib/gcc/i686-w64-mingw32/7.2.0/include/c++/bits/stl_tree.h:2413: undefined reference to `__cxa_rethrow'
D:/mingw32/lib/gcc/i686-w64-mingw32/7.2.0/include/c++/bits/stl_tree.h:2410: undefined reference to `__cxa_end_catch'
C:\Users\111111\Desktop\alpha3.5\src\examples\histogram\lib/libui.a(alloc.cpp.obj): In function `ZNSt8_Rb_treeIPhSt4pairIKS0_PSt6vectorIhSaIhEEESt10_Select1stIS7_ESt4lessIS0_ESaIS7_EE22_M_emplace_hint_uniqueIJRKSt21piecewise_construct_tSt5tupleIJRS2_EESI_IJEEEEESt17_Rb_tree_iteratorIS7_ESt23_Rb_tree_const_iteratorIS7_EDpOT_':
D:/mingw32/lib/gcc/i686-w64-mingw32/7.2.0/include/c++/bits/stl_tree.h:2410: undefined reference to `__cxa_begin_catch'
D:/mingw32/lib/gcc/i686-w64-mingw32/7.2.0/include/c++/bits/stl_tree.h:2413: undefined reference to `__cxa_rethrow'
D:/mingw32/lib/gcc/i686-w64-mingw32/7.2.0/include/c++/bits/stl_tree.h:2410: undefined reference to `__cxa_end_catch'
C:\Users\111111\Desktop\alpha3.5\src\examples\histogram\lib/libui.a(alloc.cpp.obj): In function `ZNSt6vectorIhSaIhEE14_M_fill_insertEN9__gnu_cxx17__normal_iteratorIPhS1_EEjRKh':
D:/mingw32/lib/gcc/i686-w64-mingw32/7.2.0/include/c++/bits/vector.tcc:527: undefined reference to `__cxa_begin_catch'
D:/mingw32/lib/gcc/i686-w64-mingw32/7.2.0/include/c++/bits/vector.tcc:537: undefined reference to `__cxa_rethrow'
D:/mingw32/lib/gcc/i686-w64-mingw32/7.2.0/include/c++/bits/vector.tcc:527: undefined reference to `__cxa_end_catch'
C:\Users\111111\Desktop\alpha3.5\src\examples\histogram\lib/libui.a(alloc.cpp.obj): In function `ZNSt8_Rb_treeIPSt6vectorIhSaIhEESt4pairIKS3_PKcESt10_Select1stIS8_ESt4lessIS3_ESaIS8_EE14_M_insert_nodeEPSt18_Rb_tree_node_baseSG_PSt13_Rb_tree_nodeIS8_E':
D:/mingw32/lib/gcc/i686-w64-mingw32/7.2.0/include/c++/bits/stl_tree.h:2304: 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&)'
C:\Users\111111\Desktop\alpha3.5\src\examples\histogram\lib/libui.a(alloc.cpp.obj): In function `ZNSt8_Rb_treeIPhSt4pairIKS0_PSt6vectorIhSaIhEEESt10_Select1stIS7_ESt4lessIS0_ESaIS7_EE14_M_insert_nodeEPSt18_Rb_tree_node_baseSF_PSt13_Rb_tree_nodeIS7_E':
D:/mingw32/lib/gcc/i686-w64-mingw32/7.2.0/include/c++/bits/stl_tree.h:2304: 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&)'
C:\Users\111111\Desktop\alpha3.5\src\examples\histogram\lib/libui.a(alloc.cpp.obj): In function `ZNKSt6vectorIhSaIhEE12_M_check_lenEjPKc':
D:/mingw32/lib/gcc/i686-w64-mingw32/7.2.0/include/c++/bits/stl_vector.h:1500: undefined reference to `std::__throw_length_error(char const*)'
C:\Users\111111\Desktop\alpha3.5\src\examples\histogram\lib/libui.a(alloc.cpp.obj): In function `ZNSt8_Rb_treeIPSt6vectorIhSaIhEESt4pairIKS3_PKcESt10_Select1stIS8_ESt4lessIS3_ESaIS8_EE17_M_construct_nodeIJRKSt21piecewise_construct_tSt5tupleIJRS5_EESJ_IJEEEEEvPSt13_Rb_tree_nodeIS8_EDpOT_':
D:/mingw32/lib/gcc/i686-w64-mingw32/7.2.0/include/c++/bits/stl_tree.h:630: undefined reference to `__cxa_begin_catch'
D:/mingw32/lib/gcc/i686-w64-mingw32/7.2.0/include/c++/bits/stl_tree.h:634: undefined reference to `__cxa_rethrow'
D:/mingw32/lib/gcc/i686-w64-mingw32/7.2.0/include/c++/bits/stl_tree.h:630: undefined reference to `__cxa_end_catch'
C:\Users\111111\Desktop\alpha3.5\src\examples\histogram\lib/libui.a(alloc.cpp.obj): In function `ZNSt17_Rb_tree_iteratorISt4pairIKPSt6vectorIhSaIhEEPKcEEmmEv':
D:/mingw32/lib/gcc/i686-w64-mingw32/7.2.0/include/c++/bits/stl_tree.h:302: undefined reference to `std::_Rb_tree_decrement(std::_Rb_tree_node_base*)'
C:\Users\111111\Desktop\alpha3.5\src\examples\histogram\lib/libui.a(alloc.cpp.obj): In function `ZNSt17_Rb_tree_iteratorISt4pairIKPSt6vectorIhSaIhEEPKcEEppEv':
D:/mingw32/lib/gcc/i686-w64-mingw32/7.2.0/include/c++/bits/stl_tree.h:287: undefined reference to `std::_Rb_tree_increment(std::_Rb_tree_node_base*)'
C:\Users\111111\Desktop\alpha3.5\src\examples\histogram\lib/libui.a(alloc.cpp.obj): In function `ZNSt8_Rb_treeIPhSt4pairIKS0_PSt6vectorIhSaIhEEESt10_Select1stIS7_ESt4lessIS0_ESaIS7_EE17_M_construct_nodeIJRKSt21piecewise_construct_tSt5tupleIJOS0_EESI_IJEEEEEvPSt13_Rb_tree_nodeIS7_EDpOT_':
D:/mingw32/lib/gcc/i686-w64-mingw32/7.2.0/include/c++/bits/stl_tree.h:630: undefined reference to `__cxa_begin_catch'
D:/mingw32/lib/gcc/i686-w64-mingw32/7.2.0/include/c++/bits/stl_tree.h:634: undefined reference to `__cxa_rethrow'
D:/mingw32/lib/gcc/i686-w64-mingw32/7.2.0/include/c++/bits/stl_tree.h:630: undefined reference to `__cxa_end_catch'
C:\Users\111111\Desktop\alpha3.5\src\examples\histogram\lib/libui.a(alloc.cpp.obj): In function `ZNSt17_Rb_tree_iteratorISt4pairIKPhPSt6vectorIhSaIhEEEEmmEv':
D:/mingw32/lib/gcc/i686-w64-mingw32/7.2.0/include/c++/bits/stl_tree.h:302: undefined reference to `std::_Rb_tree_decrement(std::_Rb_tree_node_base*)'
C:\Users\111111\Desktop\alpha3.5\src\examples\histogram\lib/libui.a(alloc.cpp.obj): In function `ZNSt8_Rb_treeIPhSt4pairIKS0_PSt6vectorIhSaIhEEESt10_Select1stIS7_ESt4lessIS0_ESaIS7_EE17_M_construct_nodeIJRKSt21piecewise_construct_tSt5tupleIJRS2_EESI_IJEEEEEvPSt13_Rb_tree_nodeIS7_EDpOT_':
D:/mingw32/lib/gcc/i686-w64-mingw32/7.2.0/include/c++/bits/stl_tree.h:630: undefined reference to `__cxa_begin_catch'
D:/mingw32/lib/gcc/i686-w64-mingw32/7.2.0/include/c++/bits/stl_tree.h:634: undefined reference to `__cxa_rethrow'
D:/mingw32/lib/gcc/i686-w64-mingw32/7.2.0/include/c++/bits/stl_tree.h:630: undefined reference to `__cxa_end_catch'
C:\Users\111111\Desktop\alpha3.5\src\examples\histogram\lib/libui.a(alloc.cpp.obj): In function `ZNSt23_Rb_tree_const_iteratorISt4pairIKPhPSt6vectorIhSaIhEEEEppEi':
D:/mingw32/lib/gcc/i686-w64-mingw32/7.2.0/include/c++/bits/stl_tree.h:374: undefined reference to `std::_Rb_tree_increment(std::_Rb_tree_node_base const*)'
C:\Users\111111\Desktop\alpha3.5\src\examples\histogram\lib/libui.a(alloc.cpp.obj): In function `ZNSt8_Rb_treeIPhSt4pairIKS0_PSt6vectorIhSaIhEEESt10_Select1stIS7_ESt4lessIS0_ESaIS7_EE12_M_erase_auxESt23_Rb_tree_const_iteratorIS7_E':
D:/mingw32/lib/gcc/i686-w64-mingw32/7.2.0/include/c++/bits/stl_tree.h:2473: undefined reference to `std::_Rb_tree_rebalance_for_erase(std::_Rb_tree_node_base*, std::_Rb_tree_node_base&)'
C:\Users\111111\Desktop\alpha3.5\src\examples\histogram\lib/libui.a(alloc.cpp.obj): In function `ZNSt23_Rb_tree_const_iteratorISt4pairIKPSt6vectorIhSaIhEEPKcEEppEi':
D:/mingw32/lib/gcc/i686-w64-mingw32/7.2.0/include/c++/bits/stl_tree.h:374: undefined reference to `std::_Rb_tree_increment(std::_Rb_tree_node_base const*)'
C:\Users\111111\Desktop\alpha3.5\src\examples\histogram\lib/libui.a(alloc.cpp.obj): In function `ZNSt8_Rb_treeIPSt6vectorIhSaIhEESt4pairIKS3_PKcESt10_Select1stIS8_ESt4lessIS3_ESaIS8_EE12_M_erase_auxESt23_Rb_tree_const_iteratorIS8_E':
D:/mingw32/lib/gcc/i686-w64-mingw32/7.2.0/include/c++/bits/stl_tree.h:2473: undefined reference to `std::_Rb_tree_rebalance_for_erase(std::_Rb_tree_node_base*, std::_Rb_tree_node_base&)'
C:\Users\111111\Desktop\alpha3.5\src\examples\histogram\lib/libui.a(alloc.cpp.obj): In function `ZN9__gnu_cxx13new_allocatorIhE10deallocateEPhj':
D:/mingw32/lib/gcc/i686-w64-mingw32/7.2.0/include/c++/ext/new_allocator.h:125: undefined reference to `operator delete(void*)'
C:\Users\111111\Desktop\alpha3.5\src\examples\histogram\lib/libui.a(alloc.cpp.obj): In function `ZN9__gnu_cxx13new_allocatorIhE8allocateEjPKv':
D:/mingw32/lib/gcc/i686-w64-mingw32/7.2.0/include/c++/ext/new_allocator.h:102: undefined reference to `std::__throw_bad_alloc()'
D:/mingw32/lib/gcc/i686-w64-mingw32/7.2.0/include/c++/ext/new_allocator.h:111: undefined reference to `operator new(unsigned int)'
C:\Users\111111\Desktop\alpha3.5\src\examples\histogram\lib/libui.a(alloc.cpp.obj): In function `ZN9__gnu_cxx13new_allocatorISt13_Rb_tree_nodeISt4pairIKPhPSt6vectorIhSaIhEEEEE10deallocateEPSA_j':
D:/mingw32/lib/gcc/i686-w64-mingw32/7.2.0/include/c++/ext/new_allocator.h:125: undefined reference to `operator delete(void*)'
C:\Users\111111\Desktop\alpha3.5\src\examples\histogram\lib/libui.a(alloc.cpp.obj): In function `ZN9__gnu_cxx13new_allocatorISt13_Rb_tree_nodeISt4pairIKPSt6vectorIhSaIhEEPKcEEE10deallocateEPSB_j':
D:/mingw32/lib/gcc/i686-w64-mingw32/7.2.0/include/c++/ext/new_allocator.h:125: undefined reference to `operator delete(void*)'
C:\Users\111111\Desktop\alpha3.5\src\examples\histogram\lib/libui.a(alloc.cpp.obj): In function `ZN9__gnu_cxx13new_allocatorISt13_Rb_tree_nodeISt4pairIKPSt6vectorIhSaIhEEPKcEEE8allocateEjPKv':
D:/mingw32/lib/gcc/i686-w64-mingw32/7.2.0/include/c++/ext/new_allocator.h:102: undefined reference to `std::__throw_bad_alloc()'
D:/mingw32/lib/gcc/i686-w64-mingw32/7.2.0/include/c++/ext/new_allocator.h:111: undefined reference to `operator new(unsigned int)'
C:\Users\111111\Desktop\alpha3.5\src\examples\histogram\lib/libui.a(alloc.cpp.obj): In function `ZN9__gnu_cxx13new_allocatorISt13_Rb_tree_nodeISt4pairIKPhPSt6vectorIhSaIhEEEEE8allocateEjPKv':
D:/mingw32/lib/gcc/i686-w64-mingw32/7.2.0/include/c++/ext/new_allocator.h:102: undefined reference to `std::__throw_bad_alloc()'
D:/mingw32/lib/gcc/i686-w64-mingw32/7.2.0/include/c++/ext/new_allocator.h:111: undefined reference to `operator new(unsigned int)'
C:\Users\111111\Desktop\alpha3.5\src\examples\histogram\lib/libui.a(alloc.cpp.obj):alloc.cpp:(.eh_frame+0x4b): undefined reference to `__gxx_personality_v0'
C:\Users\111111\Desktop\alpha3.5\src\examples\histogram\lib/libui.a(alloc.cpp.obj):alloc.cpp:(.eh_frame$_ZNSt8_Rb_treeIPhSt4pairIKS0_PSt6vectorIhSaIhEEESt10_Select1stIS7_ESt4lessIS0_ESaIS7_EED1Ev+0x13): undefined reference to `__gxx_personality_v0'
C:\Users\111111\Desktop\alpha3.5\src\examples\histogram\lib/libui.a(alloc.cpp.obj):alloc.cpp:(.eh_frame$_ZNSt8_Rb_treeIPSt6vectorIhSaIhEESt4pairIKS3_PKcESt10_Select1stIS8_ESt4lessIS3_ESaIS8_EED1Ev+0x13): undefined reference to `__gxx_personality_v0'
C:\Users\111111\Desktop\alpha3.5\src\examples\histogram\lib/libui.a(alloc.cpp.obj):alloc.cpp:(.eh_frame$_ZNSt6vectorIhSaIhEEC1EjRKhRKS0_+0x13): undefined reference to `__gxx_personality_v0'
C:\Users\111111\Desktop\alpha3.5\src\examples\histogram\lib/libui.a(alloc.cpp.obj):alloc.cpp:(.eh_frame$_ZSt16forward_as_tupleIJPhEESt5tupleIJDpOT_EES4_+0x13): undefined reference to `__gxx_personality_v0'
C:\Users\111111\Desktop\alpha3.5\src\examples\histogram\lib/libui.a(alloc.cpp.obj):alloc.cpp:(.eh_frame$_ZNSt6vectorIhSaIhEED1Ev+0x13): more undefined references to `__gxx_personality_v0' follow
C:\Users\111111\Desktop\alpha3.5\src\examples\histogram\lib/libui.a(areaevents.cpp.obj): In function `track':
C:/Users/111111/Desktop/alpha3.5/src/windows/areaevents.cpp:54: undefined reference to `_imp___TrackMouseEvent@4'
C:\Users\111111\Desktop\alpha3.5\src\examples\histogram\lib/libui.a(box.cpp.obj): In function `uiBoxDestroy':
C:/Users/111111/Desktop/alpha3.5/src/windows/box.cpp:131: undefined reference to `operator delete(void*)'
C:\Users\111111\Desktop\alpha3.5\src\examples\histogram\lib/libui.a(box.cpp.obj): In function `finishNewBox':
C:/Users/111111/Desktop/alpha3.5/src/windows/box.cpp:307: undefined reference to `operator new(unsigned int)'
C:\Users\111111\Desktop\alpha3.5\src\examples\histogram\lib/libui.a(box.cpp.obj): In function `ZNSt6vectorI8boxChildSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_':
D:/mingw32/lib/gcc/i686-w64-mingw32/7.2.0/include/c++/bits/vector.tcc:436: undefined reference to `__cxa_begin_catch'
D:/mingw32/lib/gcc/i686-w64-mingw32/7.2.0/include/c++/bits/vector.tcc:444: undefined reference to `__cxa_rethrow'
D:/mingw32/lib/gcc/i686-w64-mingw32/7.2.0/include/c++/bits/vector.tcc:436: undefined reference to `__cxa_end_catch'
C:\Users\111111\Desktop\alpha3.5\src\examples\histogram\lib/libui.a(box.cpp.obj): In function `ZNKSt6vectorI8boxChildSaIS0_EE12_M_check_lenEjPKc':
D:/mingw32/lib/gcc/i686-w64-mingw32/7.2.0/include/c++/bits/stl_vector.h:1500: undefined reference to `std::__throw_length_error(char const*)'
C:\Users\111111\Desktop\alpha3.5\src\examples\histogram\lib/libui.a(box.cpp.obj): In function `ZN9__gnu_cxx13new_allocatorI8boxChildE10deallocateEPS1_j':
D:/mingw32/lib/gcc/i686-w64-mingw32/7.2.0/include/c++/ext/new_allocator.h:125: undefined reference to `operator delete(void*)'
C:\Users\111111\Desktop\alpha3.5\src\examples\histogram\lib/libui.a(box.cpp.obj): In function `ZN9__gnu_cxx13new_allocatorI8boxChildE8allocateEjPKv':
D:/mingw32/lib/gcc/i686-w64-mingw32/7.2.0/include/c++/ext/new_allocator.h:102: undefined reference to `std::__throw_bad_alloc()'
D:/mingw32/lib/gcc/i686-w64-mingw32/7.2.0/include/c++/ext/new_allocator.h:111: undefined reference to `operator new(unsigned int)'
C:\Users\111111\Desktop\alpha3.5\src\examples\histogram\lib/libui.a(box.cpp.obj):box.cpp:(.eh_frame$_ZNSt6vectorI8boxChildSaIS0_EED1Ev+0x13): undefined reference to `__gxx_personality_v0'
C:\Users\111111\Desktop\alpha3.5\src\examples\histogram\lib/libui.a(box.cpp.obj):box.cpp:(.eh_frame$_ZNSt6vectorI8boxChildSaIS0_EEC1Ev+0x13): undefined reference to `__gxx_personality_v0'
C:\Users\111111\Desktop\alpha3.5\src\examples\histogram\lib/libui.a(box.cpp.obj):box.cpp:(.eh_frame$_ZNSt12_Vector_baseI8boxChildSaIS0_EED2Ev+0x13): undefined reference to `__gxx_personality_v0'
C:\Users\111111\Desktop\alpha3.5\src\examples\histogram\lib/libui.a(box.cpp.obj):box.cpp:(.eh_frame$_ZNSt6vectorI8boxChildSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_+0x13): undefined reference to `__gxx_personality_v0'
C:\Users\111111\Desktop\alpha3.5\src\examples\histogram\lib/libui.a(colordialog.cpp.obj): In function `svChooserSubProc':
C:/Users/111111/Desktop/alpha3.5/src/windows/colordialog.cpp:565: undefined reference to `RemoveWindowSubclass@12'
C:/Users/111111/Desktop/alpha3.5/src/windows/colordialog.cpp:569: undefined reference to `DefSubclassProc@16'
C:\Users\111111\Desktop\alpha3.5\src\examples\histogram\lib/libui.a(colordialog.cpp.obj): In function `ZN4D2D110Matrix3x2F8Rotat