Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

collect2.exe: error: ld returned 1 exit status #226

Closed
cjmxp opened this issue Feb 10, 2017 · 12 comments
Closed

collect2.exe: error: ld returned 1 exit status #226

cjmxp opened this issue Feb 10, 2017 · 12 comments

Comments

@cjmxp
Copy link

cjmxp commented Feb 10, 2017

collect2.exe: error: ld returned 1 exit status

@andlabs
Copy link
Owner

andlabs commented Feb 10, 2017

Please post the complete build log.

@edwardsayer
Copy link

edwardsayer commented Feb 26, 2017

I have the same issue, under windows 10/go version go1.7.1 windows/amd64.
Just type the following command in dos prompt:

go get -u github.com/andlabs/ui

then it result in following error:

C:/Go/ext/src/github.com/andlabs/ui/libui_windows_amd64.a(alloc.cpp.obj): In function `uninitAlloc()':
E:/github.com/andlabs/libui/windows/alloc.cpp:16: undefined reference to `std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >::basic_ostringstream(std::_Ios_Openmode)'
:
:
collect2.exe: error: ld returned 1 exit status

@rffanlab
Copy link

Download MinGW-W64 .This could solve the problem.I just solved it.Add it to the path.

@labrusca
Copy link

labrusca commented May 8, 2017

Hey,I have same problem,this is my build log:
(with go1.8.1 and windows 10,using MinGW-W64)

# github.com/andlabs/ui
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(alloc.cpp.obj): In function `uninitAlloc()':
E:/github.com/andlabs/libui/windows/alloc.cpp:16: undefined reference to `_Unwind_Resume'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(alloc.cpp.obj): In function `uiAlloc':
E:/github.com/andlabs/libui/windows/alloc.cpp:34: undefined reference to `_Unwind_Resume'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(alloc.cpp.obj):alloc.cpp:(.data+0x0): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(alloc.cpp.obj):alloc.cpp:(.xdata+0x18): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(alloc.cpp.obj):alloc.cpp:(.xdata+0x4c): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(alloc.cpp.obj):alloc.cpp:(.xdata$_ZNSt3mapIPhPSt6vectorIhSaIhEESt4lessIS0_ESaISt4pairIKS0_S4_EEEC1Ev+0xc): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(alloc.cpp.obj):alloc.cpp:(.xdata$_ZNSt3mapIPSt6vectorIhSaIhEEPKcSt4lessIS3_ESaISt4pairIKS3_S5_EEEC1Ev+0xc): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(alloc.cpp.obj): In function `std::map<std::vector<unsigned char, std::allocator<unsigned char> >*, char const*, std::less<std::vector<unsigned char, std::allocator<unsigned char> >*>, std::allocator<std::pair<std::vector<unsigned char, std::allocator<unsigned char> >* const, char const*> > >::operator[](std::vector<unsigned char, std::allocator<unsigned char> >* const&)':
C:/msys64/mingw64/include/c++/5.3.0/bits/stl_map.h:481: undefined reference to `_Unwind_Resume'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(alloc.cpp.obj):alloc.cpp:(.xdata$_ZNSt3mapIPSt6vectorIhSaIhEEPKcSt4lessIS3_ESaISt4pairIKS3_S5_EEEixERS9_+0x10): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(alloc.cpp.obj): In function `std::vector<unsigned char, std::allocator<unsigned char> >::vector(unsigned long long, unsigned char const&, std::allocator<unsigned char> const&)':
C:/msys64/mingw64/include/c++/5.3.0/bits/stl_vector.h:291: undefined reference to `_Unwind_Resume'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(alloc.cpp.obj):alloc.cpp:(.xdata$_ZNSt6vectorIhSaIhEEC1EyRKhRKS0_+0xc): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(alloc.cpp.obj): In function `std::map<unsigned char*, std::vector<unsigned char, std::allocator<unsigned char> >*, std::less<unsigned char*>, std::allocator<std::pair<unsigned char* const, std::vector<unsigned char, std::allocator<unsigned char> >*> > >::operator[](unsigned char*&&)':
C:/msys64/mingw64/include/c++/5.3.0/bits/stl_map.h:501: undefined reference to `_Unwind_Resume'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(alloc.cpp.obj):alloc.cpp:(.xdata$_ZNSt3mapIPhPSt6vectorIhSaIhEESt4lessIS0_ESaISt4pairIKS0_S4_EEEixEOS0_+0x10): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(alloc.cpp.obj): In function `std::map<unsigned char*, std::vector<unsigned char, std::allocator<unsigned char> >*, std::less<unsigned char*>, std::allocator<std::pair<unsigned char* const, std::vector<unsigned char, std::allocator<unsigned char> >*> > >::operator[](unsigned char* const&)':
C:/msys64/mingw64/include/c++/5.3.0/bits/stl_map.h:481: undefined reference to `_Unwind_Resume'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(alloc.cpp.obj):alloc.cpp:(.xdata$_ZNSt3mapIPhPSt6vectorIhSaIhEESt4lessIS0_ESaISt4pairIKS0_S4_EEEixERS8_+0x10): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(alloc.cpp.obj):alloc.cpp:(.xdata$_ZNSt6vectorIhSaIhEED1Ev+0xc): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(alloc.cpp.obj):alloc.cpp:(.xdata$_ZNSt8_Rb_treeIPhSt4pairIKS0_PSt6vectorIhSaIhEEESt10_Select1stIS7_ESt4lessIS0_ESaIS7_EED1Ev+0xc): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(alloc.cpp.obj):alloc.cpp:(.xdata$_ZNSt8_Rb_treeIPSt6vectorIhSaIhEESt4pairIKS3_PKcESt10_Select1stIS8_ESt4lessIS3_ESaIS8_EED1Ev+0xc): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(alloc.cpp.obj): In function `std::_Rb_tree_iterator<std::pair<std::vector<unsigned char, std::allocator<unsigned char> >* const, char const*> > std::_Rb_tree<std::vector<unsigned char, std::allocator<unsigned char> >*, std::pair<std::vector<unsigned char, std::allocator<unsigned char> >* const, char const*>, std::_Select1st<std::pair<std::vector<unsigned char, std::allocator<unsigned char> >* const, char const*> >, std::less<std::vector<unsigned char, std::allocator<unsigned char> >*>, std::allocator<std::pair<std::vector<unsigned char, std::allocator<unsigned char> >* const, char const*> > >::_M_emplace_hint_unique<std::piecewise_construct_t const&, std::tuple<std::vector<unsigned char, std::allocator<unsigned char> >* const&>, std::tuple<> >(std::_Rb_tree_const_iterator<std::pair<std::vector<unsigned char, std::allocator<unsigned char> >* const, char const*> >, std::piecewise_construct_t const&, std::tuple<std::vector<unsigned char, std::allocator<unsigned char> >* const&>&&, std::tuple<>&&)':
C:/msys64/mingw64/include/c++/5.3.0/bits/stl_tree.h:2182: undefined reference to `_Unwind_Resume'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(alloc.cpp.obj):alloc.cpp:(.xdata$_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_+0x10): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(alloc.cpp.obj): In function `std::_Vector_base<unsigned char, std::allocator<unsigned char> >::_Vector_base(unsigned long long, std::allocator<unsigned char> const&)':
C:/msys64/mingw64/include/c++/5.3.0/bits/stl_vector.h:135: undefined reference to `_Unwind_Resume'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(alloc.cpp.obj):alloc.cpp:(.xdata$_ZNSt12_Vector_baseIhSaIhEEC2EyRKS0_+0xc): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(alloc.cpp.obj):alloc.cpp:(.xdata$_ZNSt12_Vector_baseIhSaIhEED2Ev+0xc): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(alloc.cpp.obj): In function `std::_Rb_tree_iterator<std::pair<unsigned char* const, std::vector<unsigned char, std::allocator<unsigned char> >*> > std::_Rb_tree<unsigned char*, std::pair<unsigned char* const, std::vector<unsigned char, std::allocator<unsigned char> >*>, std::_Select1st<std::pair<unsigned char* const, std::vector<unsigned char, std::allocator<unsigned char> >*> >, std::less<unsigned char*>, std::allocator<std::pair<unsigned char* const, std::vector<unsigned char, std::allocator<unsigned char> >*> > >::_M_emplace_hint_unique<std::piecewise_construct_t const&, std::tuple<unsigned char*&&>, std::tuple<> >(std::_Rb_tree_const_iterator<std::pair<unsigned char* const, std::vector<unsigned char, std::allocator<unsigned char> >*> >, std::piecewise_construct_t const&, std::tuple<unsigned char*&&>&&, std::tuple<>&&)':
C:/msys64/mingw64/include/c++/5.3.0/bits/stl_tree.h:2182: undefined reference to `_Unwind_Resume'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(alloc.cpp.obj):alloc.cpp:(.xdata$_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_+0x10): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(alloc.cpp.obj): In function `std::_Rb_tree_iterator<std::pair<unsigned char* const, std::vector<unsigned char, std::allocator<unsigned char> >*> > std::_Rb_tree<unsigned char*, std::pair<unsigned char* const, std::vector<unsigned char, std::allocator<unsigned char> >*>, std::_Select1st<std::pair<unsigned char* const, std::vector<unsigned char, std::allocator<unsigned char> >*> >, std::less<unsigned char*>, std::allocator<std::pair<unsigned char* const, std::vector<unsigned char, std::allocator<unsigned char> >*> > >::_M_emplace_hint_unique<std::piecewise_construct_t const&, std::tuple<unsigned char* const&>, std::tuple<> >(std::_Rb_tree_const_iterator<std::pair<unsigned char* const, std::vector<unsigned char, std::allocator<unsigned char> >*> >, std::piecewise_construct_t const&, std::tuple<unsigned char* const&>&&, std::tuple<>&&)':
C:/msys64/mingw64/include/c++/5.3.0/bits/stl_tree.h:2182: undefined reference to `_Unwind_Resume'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(alloc.cpp.obj):alloc.cpp:(.xdata$_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_+0x10): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(alloc.cpp.obj):alloc.cpp:(.xdata$_ZNSt6vectorIhSaIhEE15_M_erase_at_endEPh+0xc): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(alloc.cpp.obj): In function `std::vector<unsigned char, std::allocator<unsigned char> >::_M_fill_insert(__gnu_cxx::__normal_iterator<unsigned char*, std::vector<unsigned char, std::allocator<unsigned char> > >, unsigned long long, unsigned char const&)':
C:/msys64/mingw64/include/c++/5.3.0/bits/vector.tcc:513: undefined reference to `_Unwind_Resume'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(alloc.cpp.obj):alloc.cpp:(.xdata$_ZNSt6vectorIhSaIhEE14_M_fill_insertEN9__gnu_cxx17__normal_iteratorIPhS1_EEyRKh+0x10): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(alloc.cpp.obj): In function `void std::_Rb_tree<std::vector<unsigned char, std::allocator<unsigned char> >*, std::pair<std::vector<unsigned char, std::allocator<unsigned char> >* const, char const*>, std::_Select1st<std::pair<std::vector<unsigned char, std::allocator<unsigned char> >* const, char const*> >, std::less<std::vector<unsigned char, std::allocator<unsigned char> >*>, std::allocator<std::pair<std::vector<unsigned char, std::allocator<unsigned char> >* const, char const*> > >::_M_construct_node<std::piecewise_construct_t const&, std::tuple<std::vector<unsigned char, std::allocator<unsigned char> >* const&>, std::tuple<> >(std::_Rb_tree_node<std::pair<std::vector<unsigned char, std::allocator<unsigned char> >* const, char const*> >*, std::piecewise_construct_t const&, std::tuple<std::vector<unsigned char, std::allocator<unsigned char> >* const&>&&, std::tuple<>&&)':
C:/msys64/mingw64/include/c++/5.3.0/bits/stl_tree.h:533: undefined reference to `_Unwind_Resume'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(alloc.cpp.obj):alloc.cpp:(.xdata$_ZNSt8_Rb_treeIPSt6vectorIhSaIhEESt4pairIKS3_PKcESt10_Select1stIS8_ESt4lessIS3_ESaIS8_EE17_M_construct_nodeIJRKSt21piecewise_construct_tSt5tupleIJRS5_EESJ_IJEEEEEvPSt13_Rb_tree_nodeIS8_EDpOT_+0x14): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(alloc.cpp.obj):alloc.cpp:(.xdata$_ZNSt8_Rb_treeIPSt6vectorIhSaIhEESt4pairIKS3_PKcESt10_Select1stIS8_ESt4lessIS3_ESaIS8_EE15_M_destroy_nodeEPSt13_Rb_tree_nodeIS8_E+0xc): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(alloc.cpp.obj):alloc.cpp:(.xdata$_ZNSt8_Rb_treeIPSt6vectorIhSaIhEESt4pairIKS3_PKcESt10_Select1stIS8_ESt4lessIS3_ESaIS8_EE11_M_put_nodeEPSt13_Rb_tree_nodeIS8_E+0xc): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(alloc.cpp.obj): In function `void std::_Rb_tree<unsigned char*, std::pair<unsigned char* const, std::vector<unsigned char, std::allocator<unsigned char> >*>, std::_Select1st<std::pair<unsigned char* const, std::vector<unsigned char, std::allocator<unsigned char> >*> >, std::less<unsigned char*>, std::allocator<std::pair<unsigned char* const, std::vector<unsigned char, std::allocator<unsigned char> >*> > >::_M_construct_node<std::piecewise_construct_t const&, std::tuple<unsigned char*&&>, std::tuple<> >(std::_Rb_tree_node<std::pair<unsigned char* const, std::vector<unsigned char, std::allocator<unsigned char> >*> >*, std::piecewise_construct_t const&, std::tuple<unsigned char*&&>&&, std::tuple<>&&)':
C:/msys64/mingw64/include/c++/5.3.0/bits/stl_tree.h:533: undefined reference to `_Unwind_Resume'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(alloc.cpp.obj):alloc.cpp:(.xdata$_ZNSt8_Rb_treeIPhSt4pairIKS0_PSt6vectorIhSaIhEEESt10_Select1stIS7_ESt4lessIS0_ESaIS7_EE17_M_construct_nodeIJRKSt21piecewise_construct_tSt5tupleIJOS0_EESI_IJEEEEEvPSt13_Rb_tree_nodeIS7_EDpOT_+0x14): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(alloc.cpp.obj):alloc.cpp:(.xdata$_ZNSt8_Rb_treeIPhSt4pairIKS0_PSt6vectorIhSaIhEEESt10_Select1stIS7_ESt4lessIS0_ESaIS7_EE15_M_destroy_nodeEPSt13_Rb_tree_nodeIS7_E+0xc): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(alloc.cpp.obj):alloc.cpp:(.xdata$_ZNSt8_Rb_treeIPhSt4pairIKS0_PSt6vectorIhSaIhEEESt10_Select1stIS7_ESt4lessIS0_ESaIS7_EE11_M_put_nodeEPSt13_Rb_tree_nodeIS7_E+0xc): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(alloc.cpp.obj): In function `void std::_Rb_tree<unsigned char*, std::pair<unsigned char* const, std::vector<unsigned char, std::allocator<unsigned char> >*>, std::_Select1st<std::pair<unsigned char* const, std::vector<unsigned char, std::allocator<unsigned char> >*> >, std::less<unsigned char*>, std::allocator<std::pair<unsigned char* const, std::vector<unsigned char, std::allocator<unsigned char> >*> > >::_M_construct_node<std::piecewise_construct_t const&, std::tuple<unsigned char* const&>, std::tuple<> >(std::_Rb_tree_node<std::pair<unsigned char* const, std::vector<unsigned char, std::allocator<unsigned char> >*> >*, std::piecewise_construct_t const&, std::tuple<unsigned char* const&>&&, std::tuple<>&&)':
C:/msys64/mingw64/include/c++/5.3.0/bits/stl_tree.h:533: undefined reference to `_Unwind_Resume'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(alloc.cpp.obj):alloc.cpp:(.xdata$_ZNSt8_Rb_treeIPhSt4pairIKS0_PSt6vectorIhSaIhEEESt10_Select1stIS7_ESt4lessIS0_ESaIS7_EE17_M_construct_nodeIJRKSt21piecewise_construct_tSt5tupleIJRS2_EESI_IJEEEEEvPSt13_Rb_tree_nodeIS7_EDpOT_+0x14): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(alloc.cpp.obj):alloc.cpp:(.xdata$_ZNSt8_Rb_treeIPhSt4pairIKS0_PSt6vectorIhSaIhEEESt10_Select1stIS7_ESt4lessIS0_ESaIS7_EE5clearEv+0xc): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(alloc.cpp.obj):alloc.cpp:(.xdata$_ZNSt8_Rb_treeIPSt6vectorIhSaIhEESt4pairIKS3_PKcESt10_Select1stIS8_ESt4lessIS3_ESaIS8_EE5clearEv+0xc): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(alloc.cpp.obj): In function `void __gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<std::vector<unsigned char, std::allocator<unsigned char> >* const, char const*> > >::construct<std::pair<std::vector<unsigned char, std::allocator<unsigned char> >* const, char const*>, std::piecewise_construct_t const&, std::tuple<std::vector<unsigned char, std::allocator<unsigned char> >* const&>, std::tuple<> >(std::pair<std::vector<unsigned char, std::allocator<unsigned char> >* const, char const*>*, std::piecewise_construct_t const&, std::tuple<std::vector<unsigned char, std::allocator<unsigned char> >* const&>&&, std::tuple<>&&)':
C:/msys64/mingw64/include/c++/5.3.0/ext/new_allocator.h:120: undefined reference to `_Unwind_Resume'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(alloc.cpp.obj):alloc.cpp:(.xdata$_ZN9__gnu_cxx13new_allocatorISt13_Rb_tree_nodeISt4pairIKPSt6vectorIhSaIhEEPKcEEE9constructISA_JRKSt21piecewise_construct_tSt5tupleIJRS7_EESH_IJEEEEEvPT_DpOT0_+0x10): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(alloc.cpp.obj): In function `void __gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<unsigned char* const, std::vector<unsigned char, std::allocator<unsigned char> >*> > >::construct<std::pair<unsigned char* const, std::vector<unsigned char, std::allocator<unsigned char> >*>, std::piecewise_construct_t const&, std::tuple<unsigned char*&&>, std::tuple<> >(std::pair<unsigned char* const, std::vector<unsigned char, std::allocator<unsigned char> >*>*, std::piecewise_construct_t const&, std::tuple<unsigned char*&&>&&, std::tuple<>&&)':
C:/msys64/mingw64/include/c++/5.3.0/ext/new_allocator.h:120: undefined reference to `_Unwind_Resume'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(alloc.cpp.obj):alloc.cpp:(.xdata$_ZN9__gnu_cxx13new_allocatorISt13_Rb_tree_nodeISt4pairIKPhPSt6vectorIhSaIhEEEEE9constructIS9_JRKSt21piecewise_construct_tSt5tupleIJOS3_EESG_IJEEEEEvPT_DpOT0_+0x10): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(alloc.cpp.obj): In function `void __gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<unsigned char* const, std::vector<unsigned char, std::allocator<unsigned char> >*> > >::construct<std::pair<unsigned char* const, std::vector<unsigned char, std::allocator<unsigned char> >*>, std::piecewise_construct_t const&, std::tuple<unsigned char* const&>, std::tuple<> >(std::pair<unsigned char* const, std::vector<unsigned char, std::allocator<unsigned char> >*>*, std::piecewise_construct_t const&, std::tuple<unsigned char* const&>&&, std::tuple<>&&)':
C:/msys64/mingw64/include/c++/5.3.0/ext/new_allocator.h:120: undefined reference to `_Unwind_Resume'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(alloc.cpp.obj):alloc.cpp:(.xdata$_ZN9__gnu_cxx13new_allocatorISt13_Rb_tree_nodeISt4pairIKPhPSt6vectorIhSaIhEEEEE9constructIS9_JRKSt21piecewise_construct_tSt5tupleIJRS4_EESG_IJEEEEEvPT_DpOT0_+0x10): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(box.cpp.obj):box.cpp:(.data+0x0): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(box.cpp.obj):box.cpp:(.xdata$_ZNSt6vectorI8boxChildSaIS0_EED1Ev+0xc): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(box.cpp.obj):box.cpp:(.xdata$_ZNSt6vectorI8boxChildSaIS0_EEC1Ev+0xc): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(box.cpp.obj):box.cpp:(.xdata$_ZNSt12_Vector_baseI8boxChildSaIS0_EED2Ev+0xc): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(box.cpp.obj): In function `void std::vector<boxChild, std::allocator<boxChild> >::_M_emplace_back_aux<boxChild const&>(boxChild const&)':
C:/msys64/mingw64/include/c++/5.3.0/bits/vector.tcc:427: undefined reference to `_Unwind_Resume'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(box.cpp.obj):box.cpp:(.xdata$_ZNSt6vectorI8boxChildSaIS0_EE19_M_emplace_back_auxIJRKS0_EEEvDpOT_+0xc): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(draw.cpp.obj):draw.cpp:(.data+0x0): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(draw.cpp.obj):draw.cpp:(.xdata$_ZNSt6vectorI9drawStateSaIS0_EEC1Ev+0xc): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(draw.cpp.obj):draw.cpp:(.xdata$_ZNSt6vectorI9drawStateSaIS0_EED1Ev+0xc): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(draw.cpp.obj):draw.cpp:(.xdata$_ZNSt6vectorI9drawStateSaIS0_EE8pop_backEv+0xc): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(draw.cpp.obj):draw.cpp:(.xdata$_ZNSt12_Vector_baseI9drawStateSaIS0_EED2Ev+0xc): more undefined references to `__gxx_personality_seh0' follow
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(draw.cpp.obj): In function `void std::vector<drawState, std::allocator<drawState> >::_M_emplace_back_aux<drawState const&>(drawState const&)':
C:/msys64/mingw64/include/c++/5.3.0/bits/vector.tcc:427: undefined reference to `_Unwind_Resume'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(draw.cpp.obj):draw.cpp:(.xdata$_ZNSt6vectorI9drawStateSaIS0_EE19_M_emplace_back_auxIJRKS0_EEEvDpOT_+0xc): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(drawtext.cpp.obj):drawtext.cpp:(.data+0x0): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(drawtext.cpp.obj):drawtext.cpp:(.xdata$_ZNSt6vectorI10layoutAttrSaIS0_EEC1Ev+0xc): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(drawtext.cpp.obj):drawtext.cpp:(.xdata$_ZNSt6vectorI10layoutAttrSaIS0_EED1Ev+0xc): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(drawtext.cpp.obj):drawtext.cpp:(.xdata$_ZNSt12_Vector_baseI10layoutAttrSaIS0_EED2Ev+0xc): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(drawtext.cpp.obj): In function `void std::vector<layoutAttr, std::allocator<layoutAttr> >::_M_emplace_back_aux<layoutAttr const&>(layoutAttr const&)':
C:/msys64/mingw64/include/c++/5.3.0/bits/vector.tcc:427: undefined reference to `_Unwind_Resume'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(drawtext.cpp.obj):drawtext.cpp:(.xdata$_ZNSt6vectorI10layoutAttrSaIS0_EE19_M_emplace_back_auxIJRKS0_EEEvDpOT_+0xc): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(events.cpp.obj):events.cpp:(.data+0x0): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(events.cpp.obj):events.cpp:(.xdata$_ZNSt3mapIP6HWND__7handlerSt4lessIS1_ESaISt4pairIKS1_S2_EEEC1Ev+0xc): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(events.cpp.obj): In function `std::map<HWND__*, handler, std::less<HWND__*>, std::allocator<std::pair<HWND__* const, handler> > >::operator[](HWND__* const&)':
C:/msys64/mingw64/include/c++/5.3.0/bits/stl_map.h:481: undefined reference to `_Unwind_Resume'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(events.cpp.obj):events.cpp:(.xdata$_ZNSt3mapIP6HWND__7handlerSt4lessIS1_ESaISt4pairIKS1_S2_EEEixERS6_+0x10): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(events.cpp.obj):events.cpp:(.xdata$_ZNSt3mapIP6HWND__bSt4lessIS1_ESaISt4pairIKS1_bEEEC1Ev+0xc): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(events.cpp.obj): In function `std::map<HWND__*, bool, std::less<HWND__*>, std::allocator<std::pair<HWND__* const, bool> > >::operator[](HWND__* const&)':
C:/msys64/mingw64/include/c++/5.3.0/bits/stl_map.h:481: undefined reference to `_Unwind_Resume'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(events.cpp.obj):events.cpp:(.xdata$_ZNSt3mapIP6HWND__bSt4lessIS1_ESaISt4pairIKS1_bEEEixERS5_+0x10): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(events.cpp.obj):events.cpp:(.xdata$_ZNSt8_Rb_treeIP6HWND__St4pairIKS1_7handlerESt10_Select1stIS5_ESt4lessIS1_ESaIS5_EED1Ev+0xc): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(events.cpp.obj): In function `std::_Rb_tree_iterator<std::pair<HWND__* const, handler> > std::_Rb_tree<HWND__*, std::pair<HWND__* const, handler>, std::_Select1st<std::pair<HWND__* const, handler> >, std::less<HWND__*>, std::allocator<std::pair<HWND__* const, handler> > >::_M_emplace_hint_unique<std::piecewise_construct_t const&, std::tuple<HWND__* const&>, std::tuple<> >(std::_Rb_tree_const_iterator<std::pair<HWND__* const, handler> >, std::piecewise_construct_t const&, std::tuple<HWND__* const&>&&, std::tuple<>&&)':
C:/msys64/mingw64/include/c++/5.3.0/bits/stl_tree.h:2182: undefined reference to `_Unwind_Resume'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(events.cpp.obj):events.cpp:(.xdata$_ZNSt8_Rb_treeIP6HWND__St4pairIKS1_7handlerESt10_Select1stIS5_ESt4lessIS1_ESaIS5_EE22_M_emplace_hint_uniqueIJRKSt21piecewise_construct_tSt5tupleIJRS3_EESG_IJEEEEESt17_Rb_tree_iteratorIS5_ESt23_Rb_tree_const_iteratorIS5_EDpOT_+0x10): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(events.cpp.obj):events.cpp:(.xdata$_ZNSt8_Rb_treeIP6HWND__St4pairIKS1_bESt10_Select1stIS4_ESt4lessIS1_ESaIS4_EED1Ev+0xc): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(events.cpp.obj): In function `std::_Rb_tree_iterator<std::pair<HWND__* const, bool> > std::_Rb_tree<HWND__*, std::pair<HWND__* const, bool>, std::_Select1st<std::pair<HWND__* const, bool> >, std::less<HWND__*>, std::allocator<std::pair<HWND__* const, bool> > >::_M_emplace_hint_unique<std::piecewise_construct_t const&, std::tuple<HWND__* const&>, std::tuple<> >(std::_Rb_tree_const_iterator<std::pair<HWND__* const, bool> >, std::piecewise_construct_t const&, std::tuple<HWND__* const&>&&, std::tuple<>&&)':
C:/msys64/mingw64/include/c++/5.3.0/bits/stl_tree.h:2182: undefined reference to `_Unwind_Resume'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(events.cpp.obj):events.cpp:(.xdata$_ZNSt8_Rb_treeIP6HWND__St4pairIKS1_bESt10_Select1stIS4_ESt4lessIS1_ESaIS4_EE22_M_emplace_hint_uniqueIJRKSt21piecewise_construct_tSt5tupleIJRS3_EESF_IJEEEEESt17_Rb_tree_iteratorIS4_ESt23_Rb_tree_const_iteratorIS4_EDpOT_+0x10): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(events.cpp.obj): In function `void std::_Rb_tree<HWND__*, std::pair<HWND__* const, handler>, std::_Select1st<std::pair<HWND__* const, handler> >, std::less<HWND__*>, std::allocator<std::pair<HWND__* const, handler> > >::_M_construct_node<std::piecewise_construct_t const&, std::tuple<HWND__* const&>, std::tuple<> >(std::_Rb_tree_node<std::pair<HWND__* const, handler> >*, std::piecewise_construct_t const&, std::tuple<HWND__* const&>&&, std::tuple<>&&)':
C:/msys64/mingw64/include/c++/5.3.0/bits/stl_tree.h:533: undefined reference to `_Unwind_Resume'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(events.cpp.obj):events.cpp:(.xdata$_ZNSt8_Rb_treeIP6HWND__St4pairIKS1_7handlerESt10_Select1stIS5_ESt4lessIS1_ESaIS5_EE17_M_construct_nodeIJRKSt21piecewise_construct_tSt5tupleIJRS3_EESG_IJEEEEEvPSt13_Rb_tree_nodeIS5_EDpOT_+0x14): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(events.cpp.obj):events.cpp:(.xdata$_ZNSt8_Rb_treeIP6HWND__St4pairIKS1_7handlerESt10_Select1stIS5_ESt4lessIS1_ESaIS5_EE15_M_destroy_nodeEPSt13_Rb_tree_nodeIS5_E+0xc): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(events.cpp.obj):events.cpp:(.xdata$_ZNSt8_Rb_treeIP6HWND__St4pairIKS1_7handlerESt10_Select1stIS5_ESt4lessIS1_ESaIS5_EE11_M_put_nodeEPSt13_Rb_tree_nodeIS5_E+0xc): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(events.cpp.obj): In function `void std::_Rb_tree<HWND__*, std::pair<HWND__* const, bool>, std::_Select1st<std::pair<HWND__* const, bool> >, std::less<HWND__*>, std::allocator<std::pair<HWND__* const, bool> > >::_M_construct_node<std::piecewise_construct_t const&, std::tuple<HWND__* const&>, std::tuple<> >(std::_Rb_tree_node<std::pair<HWND__* const, bool> >*, std::piecewise_construct_t const&, std::tuple<HWND__* const&>&&, std::tuple<>&&)':
C:/msys64/mingw64/include/c++/5.3.0/bits/stl_tree.h:533: undefined reference to `_Unwind_Resume'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(events.cpp.obj):events.cpp:(.xdata$_ZNSt8_Rb_treeIP6HWND__St4pairIKS1_bESt10_Select1stIS4_ESt4lessIS1_ESaIS4_EE17_M_construct_nodeIJRKSt21piecewise_construct_tSt5tupleIJRS3_EESF_IJEEEEEvPSt13_Rb_tree_nodeIS4_EDpOT_+0x14): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(events.cpp.obj):events.cpp:(.xdata$_ZNSt8_Rb_treeIP6HWND__St4pairIKS1_bESt10_Select1stIS4_ESt4lessIS1_ESaIS4_EE15_M_destroy_nodeEPSt13_Rb_tree_nodeIS4_E+0xc): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(events.cpp.obj):events.cpp:(.xdata$_ZNSt8_Rb_treeIP6HWND__St4pairIKS1_bESt10_Select1stIS4_ESt4lessIS1_ESaIS4_EE11_M_put_nodeEPSt13_Rb_tree_nodeIS4_E+0xc): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(events.cpp.obj): In function `void __gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<HWND__* const, handler> > >::construct<std::pair<HWND__* const, handler>, std::piecewise_construct_t const&, std::tuple<HWND__* const&>, std::tuple<> >(std::pair<HWND__* const, handler>*, std::piecewise_construct_t const&, std::tuple<HWND__* const&>&&, std::tuple<>&&)':
C:/msys64/mingw64/include/c++/5.3.0/ext/new_allocator.h:120: undefined reference to `_Unwind_Resume'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(events.cpp.obj):events.cpp:(.xdata$_ZN9__gnu_cxx13new_allocatorISt13_Rb_tree_nodeISt4pairIKP6HWND__7handlerEEE9constructIS7_JRKSt21piecewise_construct_tSt5tupleIJRS5_EESE_IJEEEEEvPT_DpOT0_+0x10): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(events.cpp.obj): In function `void __gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<HWND__* const, bool> > >::construct<std::pair<HWND__* const, bool>, std::piecewise_construct_t const&, std::tuple<HWND__* const&>, std::tuple<> >(std::pair<HWND__* const, bool>*, std::piecewise_construct_t const&, std::tuple<HWND__* const&>&&, std::tuple<>&&)':
C:/msys64/mingw64/include/c++/5.3.0/ext/new_allocator.h:120: undefined reference to `_Unwind_Resume'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(events.cpp.obj):events.cpp:(.xdata$_ZN9__gnu_cxx13new_allocatorISt13_Rb_tree_nodeISt4pairIKP6HWND__bEEE9constructIS6_JRKSt21piecewise_construct_tSt5tupleIJRS5_EESD_IJEEEEEvPT_DpOT0_+0x10): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(radiobuttons.cpp.obj):radiobuttons.cpp:(.data+0x0): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(radiobuttons.cpp.obj):radiobuttons.cpp:(.xdata$_ZNSt6vectorIP6HWND__SaIS1_EED1Ev+0xc): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(radiobuttons.cpp.obj):radiobuttons.cpp:(.xdata$_ZNSt6vectorIP6HWND__SaIS1_EEC1Ev+0xc): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(radiobuttons.cpp.obj):radiobuttons.cpp:(.xdata$_ZNSt12_Vector_baseIP6HWND__SaIS1_EED2Ev+0xc): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(radiobuttons.cpp.obj): In function `void std::vector<HWND__*, std::allocator<HWND__*> >::_M_emplace_back_aux<HWND__* const&>(HWND__* const&)':
C:/msys64/mingw64/include/c++/5.3.0/bits/vector.tcc:427: undefined reference to `_Unwind_Resume'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(radiobuttons.cpp.obj):radiobuttons.cpp:(.xdata$_ZNSt6vectorIP6HWND__SaIS1_EE19_M_emplace_back_auxIJRKS1_EEEvDpOT_+0xc): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(tab.cpp.obj):tab.cpp:(.data+0x0): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(tab.cpp.obj):tab.cpp:(.xdata$_ZNSt6vectorIP7tabPageSaIS1_EED1Ev+0xc): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(tab.cpp.obj):tab.cpp:(.xdata$_ZNSt6vectorIP7tabPageSaIS1_EEC1Ev+0xc): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(tab.cpp.obj):tab.cpp:(.xdata$_ZNSt12_Vector_baseIP7tabPageSaIS1_EED2Ev+0xc): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(tab.cpp.obj): In function `void std::vector<tabPage*, std::allocator<tabPage*> >::_M_insert_aux<tabPage*>(__gnu_cxx::__normal_iterator<tabPage**, std::vector<tabPage*, std::allocator<tabPage*> > >, tabPage*&&)':
C:/msys64/mingw64/include/c++/5.3.0/bits/vector.tcc:382: undefined reference to `_Unwind_Resume'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(tab.cpp.obj):tab.cpp:(.xdata$_ZNSt6vectorIP7tabPageSaIS1_EE13_M_insert_auxIJS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_+0x10): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(tab.cpp.obj): In function `void std::vector<tabPage*, std::allocator<tabPage*> >::_M_insert_aux<tabPage* const&>(__gnu_cxx::__normal_iterator<tabPage**, std::vector<tabPage*, std::allocator<tabPage*> > >, tabPage* const&)':
C:/msys64/mingw64/include/c++/5.3.0/bits/vector.tcc:382: undefined reference to `_Unwind_Resume'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(tab.cpp.obj):tab.cpp:(.xdata$_ZNSt6vectorIP7tabPageSaIS1_EE13_M_insert_auxIJRKS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_+0x10): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(utf16.cpp.obj): In function `ftoutf16(double)':
E:/github.com/andlabs/libui/windows/utf16.cpp:136: undefined reference to `_Unwind_Resume'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(utf16.cpp.obj): In function `itoutf16(long long)':
E:/github.com/andlabs/libui/windows/utf16.cpp:147: undefined reference to `_Unwind_Resume'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(utf16.cpp.obj):utf16.cpp:(.data+0x0): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(utf16.cpp.obj):utf16.cpp:(.xdata+0x64): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(utf16.cpp.obj):utf16.cpp:(.xdata+0x98): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(window.cpp.obj):window.cpp:(.data+0x0): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(window.cpp.obj):window.cpp:(.xdata$_ZNSt3mapIP8uiWindowbSt4lessIS1_ESaISt4pairIKS1_bEEEC1Ev+0xc): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(window.cpp.obj): In function `std::map<uiWindow*, bool, std::less<uiWindow*>, std::allocator<std::pair<uiWindow* const, bool> > >::operator[](uiWindow* const&)':
C:/msys64/mingw64/include/c++/5.3.0/bits/stl_map.h:481: undefined reference to `_Unwind_Resume'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(window.cpp.obj):window.cpp:(.xdata$_ZNSt3mapIP8uiWindowbSt4lessIS1_ESaISt4pairIKS1_bEEEixERS5_+0x10): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(window.cpp.obj):window.cpp:(.xdata$_ZNSt8_Rb_treeIP8uiWindowSt4pairIKS1_bESt10_Select1stIS4_ESt4lessIS1_ESaIS4_EED1Ev+0xc): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(window.cpp.obj): In function `std::_Rb_tree_iterator<std::pair<uiWindow* const, bool> > std::_Rb_tree<uiWindow*, std::pair<uiWindow* const, bool>, std::_Select1st<std::pair<uiWindow* const, bool> >, std::less<uiWindow*>, std::allocator<std::pair<uiWindow* const, bool> > >::_M_emplace_hint_unique<std::piecewise_construct_t const&, std::tuple<uiWindow* const&>, std::tuple<> >(std::_Rb_tree_const_iterator<std::pair<uiWindow* const, bool> >, std::piecewise_construct_t const&, std::tuple<uiWindow* const&>&&, std::tuple<>&&)':
C:/msys64/mingw64/include/c++/5.3.0/bits/stl_tree.h:2182: undefined reference to `_Unwind_Resume'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(window.cpp.obj):window.cpp:(.xdata$_ZNSt8_Rb_treeIP8uiWindowSt4pairIKS1_bESt10_Select1stIS4_ESt4lessIS1_ESaIS4_EE22_M_emplace_hint_uniqueIJRKSt21piecewise_construct_tSt5tupleIJRS3_EESF_IJEEEEESt17_Rb_tree_iteratorIS4_ESt23_Rb_tree_const_iteratorIS4_EDpOT_+0x10): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(window.cpp.obj): In function `void std::_Rb_tree<uiWindow*, std::pair<uiWindow* const, bool>, std::_Select1st<std::pair<uiWindow* const, bool> >, std::less<uiWindow*>, std::allocator<std::pair<uiWindow* const, bool> > >::_M_construct_node<std::piecewise_construct_t const&, std::tuple<uiWindow* const&>, std::tuple<> >(std::_Rb_tree_node<std::pair<uiWindow* const, bool> >*, std::piecewise_construct_t const&, std::tuple<uiWindow* const&>&&, std::tuple<>&&)':
C:/msys64/mingw64/include/c++/5.3.0/bits/stl_tree.h:533: undefined reference to `_Unwind_Resume'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(window.cpp.obj):window.cpp:(.xdata$_ZNSt8_Rb_treeIP8uiWindowSt4pairIKS1_bESt10_Select1stIS4_ESt4lessIS1_ESaIS4_EE17_M_construct_nodeIJRKSt21piecewise_construct_tSt5tupleIJRS3_EESF_IJEEEEEvPSt13_Rb_tree_nodeIS4_EDpOT_+0x14): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(window.cpp.obj):window.cpp:(.xdata$_ZNSt8_Rb_treeIP8uiWindowSt4pairIKS1_bESt10_Select1stIS4_ESt4lessIS1_ESaIS4_EE15_M_destroy_nodeEPSt13_Rb_tree_nodeIS4_E+0xc): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(window.cpp.obj):window.cpp:(.xdata$_ZNSt8_Rb_treeIP8uiWindowSt4pairIKS1_bESt10_Select1stIS4_ESt4lessIS1_ESaIS4_EE11_M_put_nodeEPSt13_Rb_tree_nodeIS4_E+0xc): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(window.cpp.obj):window.cpp:(.xdata$_ZNSt8_Rb_treeIP8uiWindowSt4pairIKS1_bESt10_Select1stIS4_ESt4lessIS1_ESaIS4_EE5clearEv+0xc): undefined reference to `__gxx_personality_seh0'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(window.cpp.obj): In function `void __gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<uiWindow* const, bool> > >::construct<std::pair<uiWindow* const, bool>, std::piecewise_construct_t const&, std::tuple<uiWindow* const&>, std::tuple<> >(std::pair<uiWindow* const, bool>*, std::piecewise_construct_t const&, std::tuple<uiWindow* const&>&&, std::tuple<>&&)':
C:/msys64/mingw64/include/c++/5.3.0/ext/new_allocator.h:120: undefined reference to `_Unwind_Resume'
D:/go/src/github.com/andlabs/ui/libui_windows_amd64.a(window.cpp.obj):window.cpp:(.xdata$_ZN9__gnu_cxx13new_allocatorISt13_Rb_tree_nodeISt4pairIKP8uiWindowbEEE9constructIS6_JRKSt21piecewise_construct_tSt5tupleIJRS5_EESD_IJEEEEEvPT_DpOT0_+0x10): undefined reference to `__gxx_personality_seh0'
collect2.exe: error: ld returned 1 exit status```

@andlabs
Copy link
Owner

andlabs commented May 8, 2017

I'm starting to wonder why some MinGW-w64s seem to not take other MinGW-w64 binaries...

@labrusca
Copy link

I found a way to solve this problem: install MinGW-W64 with MinGW-W64 online-installer

version 7.1 passed

@limingjie
Copy link

limingjie commented Jul 7, 2017

Here is a simple solution for Windows

  • Download MinGW Distro from nuwen.net, as of Jul 7, 2017 it is mingw-15.0.exe, gcc 7.1.0.
  • Install it and add [path_to_install]\MinGW\bin to environment variable PATH.
  • Now run go get github.com/andlabs/ui
  • Build the sample code from Getting Started page.
    ** (Update) Build go build -ldflags -H=windowsgui ui.go
    ** After strip -s ui.go, it is 2,117KB
    ** Dependency walker shows it depends on COMCTL32.DLL, D2D1.DLL, DWRITE.DLL, GDI32.DLL, KERNEL32.DLL, MSVCRT.DLL, OLE32.DLL, USER32.DLL, USP10.DLL, UXTHEME.DLL and WINMM.DLL WS2_32.DLL. Looks good.

The only issue I got now is, launching it will always open a console window.
Edit: The issue above can be solved by adding flag go build -ldflags -H=windowsgui ui.go, solution found from #90.

@rffanlab
Copy link

rffanlab commented Jul 7, 2017

@limingjie
go build -ldflags="-H windowsgui"
This will not open a console window after building.

@limingjie
Copy link

Thank you @rffanlab! I also found this solution in #90.

@manav14
Copy link

manav14 commented Dec 10, 2017

Guys, I was just running a code compiling using Arduino compiler and ran into following problem-

Arduino: 1.8.4 (Windows 7), Board: "Arduino/Genuino Uno"

D:\Users\DR7964~1.YAD\AppData\Local\Temp\ccFPCXTd.ltrans0.ltrans.o: In function `setup':

D:\Users\Dr. YADUNATH SINGH\Documents\Arduino\any/any.ino:23: undefined reference to `LedControl::shutdown(int, bool)'

D:\Users\Dr. YADUNATH SINGH\Documents\Arduino\any/any.ino:25: undefined reference to `LedControl::setIntensity(int, int)'

D:\Users\Dr. YADUNATH SINGH\Documents\Arduino\any/any.ino:27: undefined reference to `LedControl::clearDisplay(int)'

D:\Users\DR7964~1.YAD\AppData\Local\Temp\ccFPCXTd.ltrans0.ltrans.o: In function `writeArduinoOnMatrix':

D:\Users\Dr. YADUNATH SINGH\Documents\Arduino\any/any.ino:46: undefined reference to `LedControl::setRow(int, int, unsigned char)'

D:\Users\Dr. YADUNATH SINGH\Documents\Arduino\any/any.ino:47: undefined reference to `LedControl::setRow(int, int, unsigned char)'

D:\Users\Dr. YADUNATH SINGH\Documents\Arduino\any/any.ino:48: undefined reference to `LedControl::setRow(int, int, unsigned char)'

D:\Users\Dr. YADUNATH SINGH\Documents\Arduino\any/any.ino:49: undefined reference to `LedControl::setRow(int, int, unsigned char)'

D:\Users\Dr. YADUNATH SINGH\Documents\Arduino\any/any.ino:50: undefined reference to `LedControl::setRow(int, int, unsigned char)'

D:\Users\DR7964~1.YAD\AppData\Local\Temp\ccFPCXTd.ltrans0.ltrans.o:D:\Users\Dr. YADUNATH SINGH\Documents\Arduino\any/any.ino:52: more undefined references to `LedControl::setRow(int, int, unsigned char)' follow

D:\Users\DR7964~1.YAD\AppData\Local\Temp\ccFPCXTd.ltrans0.ltrans.o: In function `columns':

D:\Users\Dr. YADUNATH SINGH\Documents\Arduino\any/any.ino:126: undefined reference to `LedControl::setColumn(int, int, unsigned char)'

D:\Users\Dr. YADUNATH SINGH\Documents\Arduino\any/any.ino:128: undefined reference to `LedControl::setColumn(int, int, unsigned char)'

D:\Users\Dr. YADUNATH SINGH\Documents\Arduino\any/any.ino:131: undefined reference to `LedControl::setColumn(int, int, unsigned char)'

D:\Users\Dr. YADUNATH SINGH\Documents\Arduino\any/any.ino:133: undefined reference to `LedControl::setColumn(int, int, unsigned char)'

D:\Users\DR7964~1.YAD\AppData\Local\Temp\ccFPCXTd.ltrans0.ltrans.o: In function `single':

D:\Users\Dr. YADUNATH SINGH\Documents\Arduino\any/any.ino:147: undefined reference to `LedControl::setLed(int, int, int, bool)'

D:\Users\Dr. YADUNATH SINGH\Documents\Arduino\any/any.ino:150: undefined reference to `LedControl::setLed(int, int, int, bool)'

D:\Users\Dr. YADUNATH SINGH\Documents\Arduino\any/any.ino:152: undefined reference to `LedControl::setLed(int, int, int, bool)'

D:\Users\DR7964~1.YAD\AppData\Local\Temp\ccFPCXTd.ltrans0.ltrans.o: In function `__static_initialization_and_destruction_0':

D:\Users\Dr. YADUNATH SINGH\Documents\Arduino\any/any.ino:13: undefined reference to `LedControl::LedControl(int, int, int, int)'

collect2.exe: error: ld returned 1 exit status
exit status 1

Error compiling for board Arduino/Genuino Uno.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Please, help me regarding this problem...
Thank you!!!!!

@andlabs
Copy link
Owner

andlabs commented Dec 10, 2017

All of those undefined symbols are in the Arduino SDK, not in package ui. You'll have to ask there; sorry.

@andlabs
Copy link
Owner

andlabs commented Mar 26, 2018

Merged with #281.

I don't know if @limingjie's solution was ever correct unless the download is actually for MinGW-w64, though this now makes me wonder if MinGW-w64 is even needed anymore...

@andlabs andlabs closed this as completed Mar 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants