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

add -static to mingw option #1032

Merged
merged 5 commits into from
Sep 24, 2023
Merged

add -static to mingw option #1032

merged 5 commits into from
Sep 24, 2023

Conversation

yosupo06
Copy link
Owner

ref #1031

@yosupo06
Copy link
Owner Author

2023-09-23 12:24:52,900 [INFO] ANS    657 msecs : sort_only_short_01 : b'ok 25113 tokens\r\n'
datastructure\point_set_range_sort_range_composite\sol\naive.cpp: In function 'int main()':
datastructure\point_set_range_sort_range_composite\sol\naive.cpp:27:24: error: invalid use of incomplete type '__gnu_cxx::__alloc_traits<std::allocator<std::tuple<int, int, int> >, std::tuple<int, int, int> >::value_type' {aka 'class std::tuple<int, int, int>'}
   27 |       dat[i] = {p, a, b};
      |                        ^
In file included from C:/ProgramData/Chocolatey/lib/mingw/tools/install/mingw64/lib/gcc/x86_64-w64-mingw32/12.2.0/include/c++/bits/stl_algobase.h:64,
                 from C:/ProgramData/Chocolatey/lib/mingw/tools/install/mingw64/lib/gcc/x86_64-w64-mingw32/12.2.0/include/c++/vector:60,
                 from datastructure\point_set_range_sort_range_composite\sol\naive.cpp:2:
C:/ProgramData/Chocolatey/lib/mingw/tools/install/mingw64/lib/gcc/x86_64-w64-mingw32/12.2.0/include/c++/bits/stl_pair.h:90:11: note: declaration of '__gnu_cxx::__alloc_traits<std::allocator<std::tuple<int, int, int> >, std::tuple<int, int, int> >::value_type' {aka 'class std::tuple<int, int, int>'}
   90 |     class tuple;
      |           ^~~~~
datastructure\point_set_range_sort_range_composite\sol\naive.cpp:33:14: error: 'std::tuple<int, int, int> <structured bindings>' has incomplete type
   33 |         auto [p, a, b] = dat[i];
      |              ^~~~~~~~~
In file included from C:/ProgramData/Chocolatey/lib/mingw/tools/install/mingw64/lib/gcc/x86_64-w64-mingw32/12.2.0/include/c++/vector:64:
C:/ProgramData/Chocolatey/lib/mingw/tools/install/mingw64/lib/gcc/x86_64-w64-mingw32/12.2.0/include/c++/bits/stl_vector.h: In instantiation of 'std::_Vector_base<_Tp, _Alloc>::~_Vector_base() [with _Tp = std::tuple<int, int, int>; _Alloc = std::allocator<std::tuple<int, int, int> >]':
C:/ProgramData/Chocolatey/lib/mingw/tools/install/mingw64/lib/gcc/x86_64-w64-mingw32/12.2.0/include/c++/bits/stl_vector.h:526:7:   required from here
C:/ProgramData/Chocolatey/lib/mingw/tools/install/mingw64/lib/gcc/x86_64-w64-mingw32/12.2.0/include/c++/bits/stl_vector.h:367:49: error: invalid use of incomplete type 'class std::tuple<int, int, int>'
  367 |                       _M_impl._M_end_of_storage - _M_impl._M_start);
      |                       ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~

なんかエラー出た

@yosupo06 yosupo06 merged commit a378631 into master Sep 24, 2023
5 checks passed
@yosupo06 yosupo06 deleted the patch/issue1031 branch September 24, 2023 09:13
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

Successfully merging this pull request may close these issues.

1 participant