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

(sometimes) Linking or runtime errors with gcc (and windows) #10

Closed
neroist opened this issue Apr 17, 2024 · 1 comment
Closed

(sometimes) Linking or runtime errors with gcc (and windows) #10

neroist opened this issue Apr 17, 2024 · 1 comment

Comments

@neroist
Copy link
Owner

neroist commented Apr 17, 2024

This is really weird since I haven't been having these issues before (e.g. when developing the library).

One of three things happen:

  1. Compilation and linking go through fine! But when the program tries to run it simply fails:

No other message is provided

Error: execution of an external program failed: examples\mac.exe
  1. Same thing as above, but the program complains of a missing DLL in a GUI message box

Seemingly, this only happens when C:\Program Files\LLVM\bin is in PATH, otherwise 1. or 3. happen.

image

  1. "multiple definition of..." linking errors
Hint:  [Link]
c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib\libstdc++.a(ios-inst.o):(.text$_ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate[_ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate]+0x0): multiple definition of `std::basic_ios<char, std::char_traits<char> >::clear(std::_Ios_Iostate)'; c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib/libstdc++.dll.a(d005301.o):(.text+0x0): first defined here
c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib\libstdc++.a(ios-inst.o):(.text$_ZNSt9basic_iosIcSt11char_traitsIcEE4initEPSt15basic_streambufIcS1_E[_ZNSt9basic_iosIcSt11char_traitsIcEE4initEPSt15basic_streambufIcS1_E]+0x0): multiple definition of `std::basic_ios<char, std::char_traits<char> >::init(std::basic_streambuf<char, std::char_traits<char> >*)'; c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib/libstdc++.dll.a(d005297.o):(.text+0x0): first defined here
c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib\libstdc++.a(ios-inst.o):(.text$_ZNSt9basic_iosIwSt11char_traitsIwEE4initEPSt15basic_streambufIwS1_E[_ZNSt9basic_iosIwSt11char_traitsIwEE4initEPSt15basic_streambufIwS1_E]+0x0): multiple definition of `std::basic_ios<wchar_t, std::char_traits<wchar_t> >::init(std::basic_streambuf<wchar_t, std::char_traits<wchar_t> >*)'; c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib/libstdc++.dll.a(d005319.o):(.text+0x0): first defined here
c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib\libstdc++.a(ios.o):(.text$_ZNSt8ios_baseC2Ev+0x0): multiple definition of `std::ios_base::ios_base()'; c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib/libstdc++.dll.a(d005205.o):(.text+0x0): first defined here
c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib\libstdc++.a(ios.o):(.text$_ZNSt8ios_baseD2Ev+0x0): multiple definition of `std::ios_base::~ios_base()'; c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib/libstdc++.dll.a(d005208.o):(.text+0x0): first defined here
c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib\libstdc++.a(sstream-inst.o):(.text$_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev[_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev]+0x0): multiple definition of `std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >::~basic_ostringstream()'; c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib/libstdc++.dll.a(d004950.o):(.text+0x0): first defined here
c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib\libstdc++.a(sstream-inst.o):(.text$_ZNSt7__cxx1119basic_ostringstreamIwSt11char_traitsIwESaIwEED1Ev[_ZNSt7__cxx1119basic_ostringstreamIwSt11char_traitsIwESaIwEED1Ev]+0x0): multiple definition of `std::__cxx11::basic_ostringstream<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::~basic_ostringstream()'; c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib/libstdc++.dll.a(d004969.o):(.text+0x0): first defined here
c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib\libstdc++.a(string-inst.o):(.text$_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_[_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_]+0x0): multiple definition of `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_assign(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'; c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib/libstdc++.dll.a(d004484.o):(.text+0x0): first defined here
c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib\libstdc++.a(string-inst.o):(.text$_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEyyPKcy[_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEyyPKcy]+0x0): multiple definition of `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_replace(unsigned long long, unsigned long long, char const*, unsigned long long)'; c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib/libstdc++.dll.a(d004386.o):(.text+0x0): first defined here
c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib\libstdc++.a(wstring-inst.o):(.text$_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEE9_M_assignERKS4_[_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEE9_M_assignERKS4_]+0x0): multiple definition of `std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_M_assign(std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)'; c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib/libstdc++.dll.a(d004636.o):(.text+0x0): first defined here
c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib\libstdc++.a(wstring-inst.o):(.text$_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEE10_M_replaceEyyPKwy[_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEE10_M_replaceEyyPKwy]+0x0): multiple definition of `std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_M_replace(unsigned long long, unsigned long long, wchar_t const*, unsigned long long)'; c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib/libstdc++.dll.a(d004538.o):(.text+0x0): first defined here
c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib\libstdc++.a(eh_aux_runtime.o):(.text.unlikely.__cxa_throw_bad_array_new_length+0x0): multiple definition of `__cxa_throw_bad_array_new_length'; c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib/libstdc++.dll.a(d006677.o):(.text+0x0): first defined here
c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib\libstdc++.a(eh_personality.o):(.text$__gxx_personality_seh0+0x0): multiple definition of `__gxx_personality_seh0'; c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib/libstdc++.dll.a(d006693.o):(.text+0x0): first defined here
c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib\libstdc++.a(eh_throw.o):(.text$__cxa_rethrow+0x0): multiple definition of `__cxa_rethrow'; c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib/libstdc++.dll.a(d006674.o):(.text+0x0): first defined here
c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib\libstdc++.a(locale.o):(.text$_ZNSt6localeD2Ev+0x0): multiple definition of `std::locale::~locale()'; c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib/libstdc++.dll.a(d004323.o):(.text+0x0): first defined here
c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib\libstdc++.a(locale_init.o):(.text$_ZNSt6localeC2Ev+0x0): multiple definition of `std::locale::locale()'; c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib/libstdc++.dll.a(d004316.o):(.text+0x0): first defined here
c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib\libstdc++.a(functexcept.o):(.text.unlikely._ZSt17__throw_bad_allocv+0x0): multiple definition of `std::__throw_bad_alloc()'; c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib/libstdc++.dll.a(d005411.o):(.text+0x0): first defined here
c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib\libstdc++.a(functexcept.o):(.text.unlikely._ZSt28__throw_bad_array_new_lengthv+0x0): multiple definition of `std::__throw_bad_array_new_length()'; c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib/libstdc++.dll.a(d005455.o):(.text+0x0): first defined here
c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib\libstdc++.a(functexcept.o):(.text.unlikely._ZSt20__throw_length_errorPKc+0x0): multiple definition of `std::__throw_length_error(char const*)'; c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib/libstdc++.dll.a(d005435.o):(.text+0x0): first defined here
c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib\libstdc++.a(ostream-inst.o):(.text$_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_x[_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_x]+0x0): multiple definition of `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 long)'; c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib/libstdc++.dll.a(d005402.o):(.text+0x0): first defined here
c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib\libstdc++.a(ostream-inst.o):(.text$_ZNSo9_M_insertIPKvEERSoT_[_ZNSo9_M_insertIPKvEERSoT_]+0x0): multiple definition of `std::ostream& std::ostream::_M_insert<void const*>(void const*)'; c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib/libstdc++.dll.a(d001875.o):(.text+0x0): first defined here
c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib\libstdc++.a(ostream-inst.o):(.text$_ZNSt13basic_ostreamIwSt11char_traitsIwEElsEi[_ZNSt13basic_ostreamIwSt11char_traitsIwEElsEi]+0x0): multiple definition of `std::basic_ostream<wchar_t, std::char_traits<wchar_t> >::operator<<(int)'; c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib/libstdc++.dll.a(d002963.o):(.text+0x0): first defined here
c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib\libstdc++.a(ostream-inst.o):(.text$_ZNSt13basic_ostreamIwSt11char_traitsIwEE9_M_insertIdEERS2_T_[_ZNSt13basic_ostreamIwSt11char_traitsIwEE9_M_insertIdEERS2_T_]+0x0): multiple definition of `std::basic_ostream<wchar_t, std::char_traits<wchar_t> >& std::basic_ostream<wchar_t, std::char_traits<wchar_t> >::_M_insert<double>(double)'; c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib/libstdc++.dll.a(d002935.o):(.text+0x0): first defined here
c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib\libstdc++.a(eh_catch.o):(.text$__cxa_begin_catch+0x0): multiple definition of `__cxa_begin_catch'; c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib/libstdc++.dll.a(d006657.o):(.text+0x0): first defined here
c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib\libstdc++.a(eh_catch.o):(.text$__cxa_end_catch+0x0): multiple definition of `__cxa_end_catch'; c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib/libstdc++.dll.a(d006663.o):(.text+0x0): first defined here
collect2.exe: error: ld returned 1 exit status
Error: execution of an external program failed: 'g++.exe   -o C:\Users\xx\OneDrive\Documents\uing\examples\mac.exe  C:\Users\xx\OneDrive\Documents\uing\res\winim64.res C:\Users\xx\OneDrive\Documents\uing\res\resources.o C:\Users\xx\nimcache\mac_r\common_areaevents.c.obj C:\Users\xx\nimcache\mac_r\common_attribute.c.obj C:\Users\xx\nimcache\mac_r\common_attrlist.c.obj C:\Users\xx\nimcache\mac_r\common_attrstr.c.obj C:\Users\xx\nimcache\mac_r\common_control.c.obj C:\Users\xx\nimcache\mac_r\common_debug.c.obj C:\Users\xx\nimcache\mac_r\common_matrix.c.obj C:\Users\xx\nimcache\mac_r\common_opentype.c.obj C:\Users\xx\nimcache\mac_r\common_shouldquit.c.obj C:\Users\xx\nimcache\mac_r\common_table.c.obj C:\Users\xx\nimcache\mac_r\common_tablemodel.c.obj C:\Users\xx\nimcache\mac_r\common_tablevalue.c.obj C:\Users\xx\nimcache\mac_r\common_userbugs.c.obj C:\Users\xx\nimcache\mac_r\common_utf.c.obj C:\Users\xx\nimcache\mac_r\win_alloc.cpp.obj C:\Users\xx\nimcache\mac_r\win_area.cpp.obj C:\Users\xx\nimcache\mac_r\win_areadraw.cpp.obj C:\Users\xx\nimcache\mac_r\win_areaevents.cpp.obj C:\Users\xx\nimcache\mac_r\win_areascroll.cpp.obj C:\Users\xx\nimcache\mac_r\win_areautil.cpp.obj C:\Users\xx\nimcache\mac_r\win_attrstr.cpp.obj C:\Users\xx\nimcache\mac_r\win_box.cpp.obj C:\Users\xx\nimcache\mac_r\win_button.cpp.obj C:\Users\xx\nimcache\mac_r\win_checkbox.cpp.obj C:\Users\xx\nimcache\mac_r\win_colorbutton.cpp.obj C:\Users\xx\nimcache\mac_r\win_colordialog.cpp.obj C:\Users\xx\nimcache\mac_r\win_combobox.cpp.obj C:\Users\xx\nimcache\mac_r\win_container.cpp.obj C:\Users\xx\nimcache\mac_r\win_control.cpp.obj C:\Users\xx\nimcache\mac_r\win_d2dscratch.cpp.obj C:\Users\xx\nimcache\mac_r\win_datetimepicker.cpp.obj C:\Users\xx\nimcache\mac_r\win_debug.cpp.obj C:\Users\xx\nimcache\mac_r\win_draw.cpp.obj C:\Users\xx\nimcache\mac_r\win_drawmatrix.cpp.obj C:\Users\xx\nimcache\mac_r\win_drawpath.cpp.obj C:\Users\xx\nimcache\mac_r\win_drawtext.cpp.obj C:\Users\xx\nimcache\mac_r\win_dwrite.cpp.obj C:\Users\xx\nimcache\mac_r\win_editablecombo.cpp.obj C:\Users\xx\nimcache\mac_r\win_entry.cpp.obj C:\Users\xx\nimcache\mac_r\win_events.cpp.obj C:\Users\xx\nimcache\mac_r\win_fontbutton.cpp.obj C:\Users\xx\nimcache\mac_r\win_fontdialog.cpp.obj C:\Users\xx\nimcache\mac_r\win_fontmatch.cpp.obj C:\Users\xx\nimcache\mac_r\win_form.cpp.obj C:\Users\xx\nimcache\mac_r\win_graphemes.cpp.obj C:\Users\xx\nimcache\mac_r\win_grid.cpp.obj C:\Users\xx\nimcache\mac_r\win_group.cpp.obj C:\Users\xx\nimcache\mac_r\win_image.cpp.obj C:\Users\xx\nimcache\mac_r\win_init.cpp.obj C:\Users\xx\nimcache\mac_r\win_label.cpp.obj C:\Users\xx\nimcache\mac_r\win_main.cpp.obj C:\Users\xx\nimcache\mac_r\win_menu.cpp.obj C:\Users\xx\nimcache\mac_r\win_multilineentry.cpp.obj C:\Users\xx\nimcache\mac_r\win_opentype.cpp.obj C:\Users\xx\nimcache\mac_r\win_parent.cpp.obj C:\Users\xx\nimcache\mac_r\win_progressbar.cpp.obj C:\Users\xx\nimcache\mac_r\win_radiobuttons.cpp.obj C:\Users\xx\nimcache\mac_r\win_separator.cpp.obj C:\Users\xx\nimcache\mac_r\win_sizing.cpp.obj C:\Users\xx\nimcache\mac_r\win_slider.cpp.obj C:\Users\xx\nimcache\mac_r\win_spinbox.cpp.obj C:\Users\xx\nimcache\mac_r\win_stddialogs.cpp.obj C:\Users\xx\nimcache\mac_r\win_tab.cpp.obj C:\Users\xx\nimcache\mac_r\win_table.cpp.obj C:\Users\xx\nimcache\mac_r\win_tabledispinfo.cpp.obj C:\Users\xx\nimcache\mac_r\win_tabledraw.cpp.obj C:\Users\xx\nimcache\mac_r\win_tableediting.cpp.obj C:\Users\xx\nimcache\mac_r\win_tablemetrics.cpp.obj C:\Users\xx\nimcache\mac_r\win_tabpage.cpp.obj C:\Users\xx\nimcache\mac_r\win_text.cpp.obj C:\Users\xx\nimcache\mac_r\win_utf16.cpp.obj C:\Users\xx\nimcache\mac_r\win_utilwin.cpp.obj C:\Users\xx\nimcache\mac_r\win_window.cpp.obj C:\Users\xx\nimcache\mac_r\win_winpublic.cpp.obj C:\Users\xx\nimcache\mac_r\win_winutil.cpp.obj C:\Users\xx\nimcache\mac_r\@m..@s..@s..@s..@s.choosenim@stoolchains@snim-2.0.2@slib@ssystem@sexceptions.nim.c.o C:\Users\xx\nimcache\mac_r\@m..@s..@s..@s..@s.choosenim@stoolchains@snim-2.0.2@slib@sstd@sprivate@sdigitsutils.nim.c.o C:\Users\xx\nimcache\mac_r\@m..@s..@s..@s..@s.choosenim@stoolchains@snim-2.0.2@slib@ssystem@sdollars.nim.c.o C:\Users\xx\nimcache\mac_r\@m..@s..@s..@s..@s.choosenim@stoolchains@snim-2.0.2@slib@ssystem@srepr_v2.nim.c.o C:\Users\xx\nimcache\mac_r\@m..@s..@s..@s..@s.choosenim@stoolchains@snim-2.0.2@slib@sstd@sexitprocs.nim.c.o C:\Users\xx\nimcache\mac_r\@m..@s..@s..@s..@s.choosenim@stoolchains@snim-2.0.2@slib@sstd@ssyncio.nim.c.o C:\Users\xx\nimcache\mac_r\@m..@s..@s..@s..@s.choosenim@stoolchains@snim-2.0.2@slib@ssystem.nim.c.o C:\Users\xx\nimcache\mac_r\@m..@s..@s..@s..@s.choosenim@stoolchains@snim-2.0.2@slib@spure@sdynlib.nim.c.o C:\Users\xx\nimcache\mac_r\@m..@s..@s..@s..@s.choosenim@stoolchains@snim-2.0.2@slib@swindows@swinlean.nim.c.o C:\Users\xx\nimcache\mac_r\@m..@s..@s..@s..@s.choosenim@stoolchains@snim-2.0.2@slib@spure@stimes.nim.c.o C:\Users\xx\nimcache\mac_r\@m..@suing.nim.c.o C:\Users\xx\nimcache\mac_r\@mmac.nim.c.o  -lstdc++ -lwindowscodecs -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -lcomctl32 -ld2d1 -ldwrite -luxTheme -lusp10 -lgdi32 -luser32 -lkernel32   -Wl,-Bstatic -lpthread'

fix

{.passL: "-static".}
{.passL: "-static-libgcc".}
{.passL: "-static-libstdc++".}
@neroist neroist changed the title (sometimes) Linking & runtime errors with gcc (and windows) (sometimes) Linking or runtime errors with gcc (and windows) Apr 17, 2024
neroist added a commit that referenced this issue Apr 17, 2024
@neroist neroist closed this as completed Apr 17, 2024
@neroist neroist pinned this issue Jun 8, 2024
@neroist
Copy link
Owner Author

neroist commented Jun 8, 2024

Pinning this issue as it is a common issue I find in other wrappers when compiling with c++

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

1 participant