abclinuxu.cz AbcLinuxu.cz itbiz.cz ITBiz.cz HDmag.cz HDmag.cz abcprace.cz AbcPráce.cz
AbcLinuxu hledá autory!
Inzerujte na AbcPráce.cz od 950 Kč
Rozšířené hledání
×
    včera 18:55 | Humor

    Jak na webu co nejšíleněji zadávat datum? Jak to uživatelům co nejvíce znepříjemnit? V Bad UX World Cup 2025 (YouTube) se vybíraly ty nejšílenější UX návrhy. Vítězným návrhem se stal Perfect Date.

    Ladislav Hagara | Komentářů: 1
    včera 12:44 | Zajímavý software

    Společnost Collabora vydala (YouTube) na LibreOffice založený desktopový kancelářský balík Collabora Office. Pro Windows, macOS a Linux. Se stejným uživatelským rozhraním jako Collabora Online. Svůj desktopový kancelářský balík s rozhraním LibreOffice pojmenovala Collabora Office Classic.

    Ladislav Hagara | Komentářů: 4
    včera 12:00 | Nová verze

    Glen MacArthur vydal AV Linux (AVL) a MX Moksha (MXM) 25. S linuxovým jádrem Liquorix. AV Linux (Wikipedie) je linuxová distribuce optimalizována pro tvůrce audio a video obsahu. Nejnovější AV Linux vychází z MX Linuxu 25 a Debianu 13 Trixie. AV Linux přichází s desktopovým prostředím Enlightenment 0.27.1 a MX Moksha s prostředím Moksha 0.4.1 (fork Enlightenmentu).

    Ladislav Hagara | Komentářů: 0
    27.11. 17:55 | Nová verze

    Ubuntu pro testování nových verzí vydává měsíční snapshoty. Dnes vyšel 1. snapshot Ubuntu 26.04 LTS (Resolute Raccoon).

    Ladislav Hagara | Komentářů: 0
    27.11. 14:33 | IT novinky

    Zástupci členských států EU se včera shodli na návrhu, který má bojovat proti šíření materiálů na internetu zobrazujících sexuální zneužívání dětí. Nařízení známé pod zkratkou CSAM a přezdívané chat control mělo množství kritiků a dlouho nebyla pro jeho schválení dostatečná podpora. Pro schválení byla potřeba kvalifikovaná většina a dánské předsednictví v Radě EU se snažilo dosáhnout kompromisu. Návrh nakonec po dlouhých týdnech

    … více »
    Ladislav Hagara | Komentářů: 12
    27.11. 12:22 | Zajímavý software

    Britské herní studio Facepunch stojící za počítačovými hrami Garry's Mod a Rust uvolnilo svůj herní engine s&box (Wikipedie) jako open source. Zdrojové kódy jsou k dispozici na GitHubu pod licencí MIT. Herní engine s&box je postavený nad proprietárním herním enginem Source 2 od společnosti Valve.

    Ladislav Hagara | Komentářů: 1
    27.11. 04:55 | Komunita

    Vývoj programovacího jazyka Zig byl přesunut z GitHubu na Codeberg. Sponzoring na Every.

    Ladislav Hagara | Komentářů: 6
    27.11. 04:44 | Komunita

    Stejně jako GNOME i KDE Plasma končí s X11. KDE Plasma 6.8 poběží už pouze nad Waylandem. Aplikace pro X11 budou využívat XWayland.

    Ladislav Hagara | Komentářů: 3
    26.11. 14:55 | IT novinky

    Poslanci Evropského parlamentu dnes vyzvali k výraznému zvýšení ochrany nezletilých na internetu, včetně zákazu vstupu na sociální sítě pro osoby mladší 16 let. Legislativně nezávazná zpráva, kterou dnes odsouhlasil Evropský parlament poměrem 493 hlasů pro ku 92 proti, kromě zavedení věkové hranice 16 let pro využívání sociálních sítí, platforem pro sdílení videí či společníků s umělou inteligencí (AI) vyzývá také k zákazu … více »

    Ladislav Hagara | Komentářů: 52
    26.11. 14:11 | Humor

    Doom v KiCadu nebo na osciloskopu? Žádný problém: KiDoom: Running DOOM on PCB Traces a ScopeDoom: DOOM on an Oscilloscope via Sound Card.

    Ladislav Hagara | Komentářů: 3
    Jaké řešení používáte k vývoji / práci?
     (34%)
     (47%)
     (19%)
     (18%)
     (23%)
     (16%)
     (24%)
     (16%)
     (18%)
    Celkem 417 hlasů
     Komentářů: 17, poslední 19.11. 21:57
    Rozcestník

    Dotaz: Rozbite G++

    26.7.2020 22:38 LK
    Rozbite G++
    Přečteno: 663×

    Nazdar, na PC mam rozbite g++ - tusite, kde moze byt problem? Najmensi reproducer:

    $ cat /tmp/a.cpp 
    #include <string>
    
    int main() {
      return 0;
    }

    Vystup:

    $ g++ /tmp/a.cpp 
    In file included from /usr/include/c++/9/bits/stl_iterator.h:66,
                     from /usr/include/c++/9/bits/stl_algobase.h:67,
                     from /usr/include/c++/9/bits/char_traits.h:39,
                     from /usr/include/c++/9/string:40,
                     from /tmp/a.cpp:1:
    /usr/include/c++/9/bits/ptr_traits.h:144:14: error: ‘_GLIBCXX20_CONSTEXPR’ does not name a type
      144 |       static _GLIBCXX20_CONSTEXPR pointer
          |              ^~~~~~~~~~~~~~~~~~~~
    In file included from /usr/include/c++/9/ext/new_allocator.h:33,
                     from /usr/include/x86_64-linux-gnu/c++/8/bits/c++allocator.h:33,
                     from /usr/include/c++/9/bits/allocator.h:46,
                     from /usr/include/c++/9/string:41,
                     from /tmp/a.cpp:1:
    /usr/include/c++/9/new:125:1: error: ‘_GLIBCXX_NODISCARD’ does not name a type
      125 | _GLIBCXX_NODISCARD void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc)
          | ^~~~~~~~~~~~~~~~~~
    /usr/include/c++/9/new:127:1: error: ‘_GLIBCXX_NODISCARD’ does not name a type
      127 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
          | ^~~~~~~~~~~~~~~~~~
    /usr/include/c++/9/new:139:1: error: ‘_GLIBCXX_NODISCARD’ does not name a type
      139 | _GLIBCXX_NODISCARD void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
          | ^~~~~~~~~~~~~~~~~~
    /usr/include/c++/9/new:141:1: error: ‘_GLIBCXX_NODISCARD’ does not name a type
      141 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
          | ^~~~~~~~~~~~~~~~~~
    /usr/include/c++/9/new:173:1: error: ‘_GLIBCXX_NODISCARD’ does not name a type
      173 | _GLIBCXX_NODISCARD inline void* operator new(std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
          | ^~~~~~~~~~~~~~~~~~
    /usr/include/c++/9/new:175:1: error: ‘_GLIBCXX_NODISCARD’ does not name a type
      175 | _GLIBCXX_NODISCARD inline void* operator new[](std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
          | ^~~~~~~~~~~~~~~~~~
    In file included from /usr/include/x86_64-linux-gnu/c++/8/bits/c++allocator.h:33,
                     from /usr/include/c++/9/bits/allocator.h:46,
                     from /usr/include/c++/9/string:41,
                     from /tmp/a.cpp:1:
    /usr/include/c++/9/ext/new_allocator.h:79:7: error: ‘_GLIBCXX20_CONSTEXPR’ does not name a type
       79 |       _GLIBCXX20_CONSTEXPR
          |       ^~~~~~~~~~~~~~~~~~~~
    /usr/include/c++/9/ext/new_allocator.h:82:7: error: ‘_GLIBCXX20_CONSTEXPR’ does not name a type
       82 |       _GLIBCXX20_CONSTEXPR
          |       ^~~~~~~~~~~~~~~~~~~~
    /usr/include/c++/9/ext/new_allocator.h:86:2: error: ‘_GLIBCXX20_CONSTEXPR’ does not name a type
       86 |  _GLIBCXX20_CONSTEXPR
          |  ^~~~~~~~~~~~~~~~~~~~
    /usr/include/c++/9/ext/new_allocator.h:101:7: error: ‘_GLIBCXX_NODISCARD’ does not name a type
      101 |       _GLIBCXX_NODISCARD pointer
          |       ^~~~~~~~~~~~~~~~~~
    In file included from /usr/include/c++/9/string:41,
                     from /tmp/a.cpp:1:
    /usr/include/c++/9/bits/allocator.h:137:7: error: ‘_GLIBCXX20_CONSTEXPR’ does not name a type
      137 |       _GLIBCXX20_CONSTEXPR
          |       ^~~~~~~~~~~~~~~~~~~~
    /usr/include/c++/9/bits/allocator.h:140:7: error: ‘_GLIBCXX20_CONSTEXPR’ does not name a type
      140 |       _GLIBCXX20_CONSTEXPR
          |       ^~~~~~~~~~~~~~~~~~~~
    /usr/include/c++/9/bits/allocator.h:150:2: error: ‘_GLIBCXX20_CONSTEXPR’ does not name a type
      150 |  _GLIBCXX20_CONSTEXPR
          |  ^~~~~~~~~~~~~~~~~~~~
    In file included from /usr/include/c++/9/ext/alloc_traits.h:36,
                     from /usr/include/c++/9/bits/basic_string.h:40,
                     from /usr/include/c++/9/string:55,
                     from /tmp/a.cpp:1:
    /usr/include/c++/9/bits/alloc_traits.h:304:7: error: ‘_GLIBCXX_NODISCARD’ does not name a type
      304 |       _GLIBCXX_NODISCARD static pointer
          |       ^~~~~~~~~~~~~~~~~~
    /usr/include/c++/9/bits/alloc_traits.h:319:7: error: ‘_GLIBCXX_NODISCARD’ does not name a type
      319 |       _GLIBCXX_NODISCARD static pointer
          |       ^~~~~~~~~~~~~~~~~~
    /usr/include/c++/9/bits/alloc_traits.h:442:7: error: ‘_GLIBCXX_NODISCARD’ does not name a type
      442 |       _GLIBCXX_NODISCARD static pointer
          |       ^~~~~~~~~~~~~~~~~~
    /usr/include/c++/9/bits/alloc_traits.h:456:7: error: ‘_GLIBCXX_NODISCARD’ does not name a type
      456 |       _GLIBCXX_NODISCARD static pointer
          |       ^~~~~~~~~~~~~~~~~~
    In file included from /usr/include/c++/9/string:55,
                     from /tmp/a.cpp:1:
    /usr/include/c++/9/bits/basic_string.h:1030:7: error: ‘_GLIBCXX_NODISCARD’ does not name a type
     1030 |       _GLIBCXX_NODISCARD bool
          |       ^~~~~~~~~~~~~~~~~~
    In file included from /usr/include/c++/9/bits/basic_string.h:40,
                     from /usr/include/c++/9/string:55,
                     from /tmp/a.cpp:1:
    /usr/include/c++/9/ext/alloc_traits.h: In instantiation of ‘struct __gnu_cxx::__alloc_traits<std::allocator<char>, char>’:
    /usr/include/c++/9/bits/basic_string.h:80:24:   required from ‘class std::__cxx11::basic_string<char>’
    /usr/include/c++/9/bits/basic_string.h:6504:68:   required from here
    /usr/include/c++/9/ext/alloc_traits.h:66:23: error: no members matching ‘__gnu_cxx::__alloc_traits<std::allocator<char>, char>::_Base_type {aka std::allocator_traits<std::allocator<char> >}::allocate’ in ‘__gnu_cxx::__alloc_traits<std::allocator<char>, char>::_Base_type’ {aka ‘struct std::allocator_traits<std::allocator<char> >’}
       66 |     using _Base_type::allocate;
          |                       ^~~~~~~~
    /usr/include/c++/9/ext/alloc_traits.h: In instantiation of ‘struct __gnu_cxx::__alloc_traits<std::allocator<wchar_t>, wchar_t>’:
    /usr/include/c++/9/bits/basic_string.h:80:24:   required from ‘class std::__cxx11::basic_string<wchar_t>’
    /usr/include/c++/9/bits/basic_string.h:6610:68:   required from here
    /usr/include/c++/9/ext/alloc_traits.h:66:23: error: no members matching ‘__gnu_cxx::__alloc_traits<std::allocator<wchar_t>, wchar_t>::_Base_type {aka std::allocator_traits<std::allocator<wchar_t> >}::allocate’ in ‘__gnu_cxx::__alloc_traits<std::allocator<wchar_t>, wchar_t>::_Base_type’ {aka ‘struct std::allocator_traits<std::allocator<wchar_t> >’}
    /usr/include/c++/9/ext/alloc_traits.h: In instantiation of ‘struct __gnu_cxx::__alloc_traits<std::allocator<char16_t>, char16_t>’:
    /usr/include/c++/9/bits/basic_string.h:80:24:   required from ‘class std::__cxx11::basic_string<char16_t>’
    /usr/include/c++/9/bits/basic_string.h:6784:41:   required from here
    /usr/include/c++/9/ext/alloc_traits.h:66:23: error: no members matching ‘__gnu_cxx::__alloc_traits<std::allocator<char16_t>, char16_t>::_Base_type {aka std::allocator_traits<std::allocator<char16_t> >}::allocate’ in ‘__gnu_cxx::__alloc_traits<std::allocator<char16_t>, char16_t>::_Base_type’ {aka ‘struct std::allocator_traits<std::allocator<char16_t> >’}
    /usr/include/c++/9/ext/alloc_traits.h: In instantiation of ‘struct __gnu_cxx::__alloc_traits<std::allocator<char32_t>, char32_t>’:
    /usr/include/c++/9/bits/basic_string.h:80:24:   required from ‘class std::__cxx11::basic_string<char32_t>’
    /usr/include/c++/9/bits/basic_string.h:6799:41:   required from here
    /usr/include/c++/9/ext/alloc_traits.h:66:23: error: no members matching ‘__gnu_cxx::__alloc_traits<std::allocator<char32_t>, char32_t>::_Base_type {aka std::allocator_traits<std::allocator<char32_t> >}::allocate’ in ‘__gnu_cxx::__alloc_traits<std::allocator<char32_t>, char32_t>::_Base_type’ {aka ‘struct std::allocator_traits<std::allocator<char32_t> >’}
    In file included from /usr/include/c++/9/string:55,
                     from /tmp/a.cpp:1:
    /usr/include/c++/9/bits/basic_string.h: In instantiation of ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::pointer std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_local_data() [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::pointer = char*]’:
    /usr/include/c++/9/bits/basic_string.h:553:73:   required from ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’
    /usr/include/c++/9/bits/basic_string.h:6548:20:   required from here
    /usr/include/c++/9/bits/basic_string.h:193:49: error: ‘pointer_to’ is not a member of ‘std::pointer_traits<char*>’
      193 |  return std::pointer_traits<pointer>::pointer_to(*_M_local_buf);
          |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
    /usr/include/c++/9/bits/basic_string.h: In instantiation of ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::pointer std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_local_data() [with _CharT = wchar_t; _Traits = std::char_traits<wchar_t>; _Alloc = std::allocator<wchar_t>; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::pointer = wchar_t*]’:
    /usr/include/c++/9/bits/basic_string.h:553:73:   required from ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&) [with _CharT = wchar_t; _Traits = std::char_traits<wchar_t>; _Alloc = std::allocator<wchar_t>]’
    /usr/include/c++/9/bits/basic_string.h:6651:22:   required from here
    /usr/include/c++/9/bits/basic_string.h:193:49: error: ‘pointer_to’ is not a member of ‘std::pointer_traits<wchar_t*>’
    /usr/include/c++/9/bits/basic_string.h: In instantiation of ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::pointer std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_local_data() [with _CharT = char16_t; _Traits = std::char_traits<char16_t>; _Alloc = std::allocator<char16_t>; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::pointer = char16_t*]’:
    /usr/include/c++/9/bits/basic_string.h:512:41:   required from ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type, const _Alloc&) [with _CharT = char16_t; _Traits = std::char_traits<char16_t>; _Alloc = std::allocator<char16_t>; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]’
    /usr/include/c++/9/bits/basic_string.h:6839:49:   required from here
    /usr/include/c++/9/bits/basic_string.h:193:49: error: ‘pointer_to’ is not a member of ‘std::pointer_traits<char16_t*>’
    /usr/include/c++/9/bits/basic_string.h: In instantiation of ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::pointer std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_local_data() [with _CharT = char32_t; _Traits = std::char_traits<char32_t>; _Alloc = std::allocator<char32_t>; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::pointer = char32_t*]’:
    /usr/include/c++/9/bits/basic_string.h:512:41:   required from ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type, const _Alloc&) [with _CharT = char32_t; _Traits = std::char_traits<char32_t>; _Alloc = std::allocator<char32_t>; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]’
    /usr/include/c++/9/bits/basic_string.h:6844:49:   required from here
    /usr/include/c++/9/bits/basic_string.h:193:49: error: ‘pointer_to’ is not a member of ‘std::pointer_traits<char32_t*>’
    /usr/include/c++/9/bits/basic_string.h: In instantiation of ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::const_pointer std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_local_data() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::const_pointer = const char*]’:
    /usr/include/c++/9/bits/basic_string.h:222:26:   required from ‘bool std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_is_local() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’
    /usr/include/c++/9/bits/basic_string.h:555:12:   required from ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’
    /usr/include/c++/9/bits/basic_string.h:6548:20:   required from here
    /usr/include/c++/9/bits/basic_string.h:203:55: error: ‘pointer_to’ is not a member of ‘std::pointer_traits<const char*>’
      203 |  return std::pointer_traits<const_pointer>::pointer_to(*_M_local_buf);
          |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
    /usr/include/c++/9/bits/basic_string.h: In instantiation of ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::const_pointer std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_local_data() const [with _CharT = wchar_t; _Traits = std::char_traits<wchar_t>; _Alloc = std::allocator<wchar_t>; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::const_pointer = const wchar_t*]’:
    /usr/include/c++/9/bits/basic_string.h:222:26:   required from ‘bool std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_is_local() const [with _CharT = wchar_t; _Traits = std::char_traits<wchar_t>; _Alloc = std::allocator<wchar_t>]’
    /usr/include/c++/9/bits/basic_string.h:555:12:   required from ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&) [with _CharT = wchar_t; _Traits = std::char_traits<wchar_t>; _Alloc = std::allocator<wchar_t>]’
    /usr/include/c++/9/bits/basic_string.h:6651:22:   required from here
    /usr/include/c++/9/bits/basic_string.h:203:55: error: ‘pointer_to’ is not a member of ‘std::pointer_traits<const wchar_t*>’
    /usr/include/c++/9/bits/basic_string.h: In instantiation of ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::const_pointer std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_local_data() const [with _CharT = char16_t; _Traits = std::char_traits<char16_t>; _Alloc = std::allocator<char16_t>; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::const_pointer = const char16_t*]’:
    /usr/include/c++/9/bits/basic_string.h:222:26:   required from ‘bool std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_is_local() const [with _CharT = char16_t; _Traits = std::char_traits<char16_t>; _Alloc = std::allocator<char16_t>]’
    /usr/include/c++/9/bits/basic_string.h:555:12:   required from ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&) [with _CharT = char16_t; _Traits = std::char_traits<char16_t>; _Alloc = std::allocator<char16_t>]’
    /usr/include/c++/9/bits/basic_string.h:6839:49:   required from here
    /usr/include/c++/9/bits/basic_string.h:203:55: error: ‘pointer_to’ is not a member of ‘std::pointer_traits<const char16_t*>’
    /usr/include/c++/9/bits/basic_string.h: In instantiation of ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::const_pointer std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_local_data() const [with _CharT = char32_t; _Traits = std::char_traits<char32_t>; _Alloc = std::allocator<char32_t>; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::const_pointer = const char32_t*]’:
    /usr/include/c++/9/bits/basic_string.h:222:26:   required from ‘bool std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_is_local() const [with _CharT = char32_t; _Traits = std::char_traits<char32_t>; _Alloc = std::allocator<char32_t>]’
    /usr/include/c++/9/bits/basic_string.h:555:12:   required from ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&) [with _CharT = char32_t; _Traits = std::char_traits<char32_t>; _Alloc = std::allocator<char32_t>]’
    /usr/include/c++/9/bits/basic_string.h:6844:49:   required from here
    /usr/include/c++/9/bits/basic_string.h:203:55: error: ‘pointer_to’ is not a member of ‘std::pointer_traits<const char32_t*>’
    In file included from /usr/include/c++/9/string:56,
                     from /tmp/a.cpp:1:
    /usr/include/c++/9/bits/basic_string.tcc: In instantiation of ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::pointer std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_create(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type&, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type) [with _CharT = char16_t; _Traits = std::char_traits<char16_t>; _Alloc = std::allocator<char16_t>; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::pointer = char16_t*; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]’:
    /usr/include/c++/9/bits/basic_string.tcc:219:14:   required from ‘void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_construct(_InIterator, _InIterator, std::forward_iterator_tag) [with _FwdIterator = const char16_t*; _CharT = char16_t; _Traits = std::char_traits<char16_t>; _Alloc = std::allocator<char16_t>]’
    /usr/include/c++/9/bits/basic_string.h:247:11:   required from ‘void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_construct_aux(_InIterator, _InIterator, std::__false_type) [with _InIterator = const char16_t*; _CharT = char16_t; _Traits = std::char_traits<char16_t>; _Alloc = std::allocator<char16_t>]’
    /usr/include/c++/9/bits/basic_string.h:266:4:   required from ‘void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_construct(_InIterator, _InIterator) [with _InIterator = const char16_t*; _CharT = char16_t; _Traits = std::char_traits<char16_t>; _Alloc = std::allocator<char16_t>]’
    /usr/include/c++/9/bits/basic_string.h:513:9:   required from ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type, const _Alloc&) [with _CharT = char16_t; _Traits = std::char_traits<char16_t>; _Alloc = std::allocator<char16_t>; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]’
    /usr/include/c++/9/bits/basic_string.h:6839:49:   required from here
    /usr/include/c++/9/bits/basic_string.tcc:153:37: error: ‘allocate’ is not a member of ‘std::__cxx11::basic_string<char16_t>::_Alloc_traits’ {aka ‘__gnu_cxx::__alloc_traits<std::allocator<char16_t>, char16_t>’}
      153 |       return _Alloc_traits::allocate(_M_get_allocator(), __capacity + 1);
          |              ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /usr/include/c++/9/bits/basic_string.tcc: In instantiation of ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::pointer std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_create(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type&, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type) [with _CharT = char32_t; _Traits = std::char_traits<char32_t>; _Alloc = std::allocator<char32_t>; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::pointer = char32_t*; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]’:
    /usr/include/c++/9/bits/basic_string.tcc:219:14:   required from ‘void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_construct(_InIterator, _InIterator, std::forward_iterator_tag) [with _FwdIterator = const char32_t*; _CharT = char32_t; _Traits = std::char_traits<char32_t>; _Alloc = std::allocator<char32_t>]’
    /usr/include/c++/9/bits/basic_string.h:247:11:   required from ‘void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_construct_aux(_InIterator, _InIterator, std::__false_type) [with _InIterator = const char32_t*; _CharT = char32_t; _Traits = std::char_traits<char32_t>; _Alloc = std::allocator<char32_t>]’
    /usr/include/c++/9/bits/basic_string.h:266:4:   required from ‘void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_construct(_InIterator, _InIterator) [with _InIterator = const char32_t*; _CharT = char32_t; _Traits = std::char_traits<char32_t>; _Alloc = std::allocator<char32_t>]’
    /usr/include/c++/9/bits/basic_string.h:513:9:   required from ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type, const _Alloc&) [with _CharT = char32_t; _Traits = std::char_traits<char32_t>; _Alloc = std::allocator<char32_t>; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]’
    /usr/include/c++/9/bits/basic_string.h:6844:49:   required from here
    /usr/include/c++/9/bits/basic_string.tcc:153:37: error: ‘allocate’ is not a member of ‘std::__cxx11::basic_string<char32_t>::_Alloc_traits’ {aka ‘__gnu_cxx::__alloc_traits<std::allocator<char32_t>, char32_t>’}
    
    

    Detaily: Ubuntu 20.04.1 LTS (focal) "g++ --version" vracia "g++ (Ubuntu 9.3.0-10ubuntu2) 9.3.0" (+GNU reci)


    Řešení dotazu:


    Odpovědi

    26.7.2020 22:46 z_sk | skóre: 34 | blog: analyzy
    Rozbalit Rozbalit vše Re: Rozbite G++
    Nemas rozbite. Ale ak chces includovat a la string.h z C-ka, tak mas includovat cstring.
    debian.plus@protonmail.com
    28.7.2020 20:29 hm
    Rozbalit Rozbalit vše Re: Rozbite G++
    Debiane děláš si prdel???????????????????????
    26.7.2020 22:50 z_sk | skóre: 34 | blog: analyzy
    Rozbalit Rozbalit vše Re: Rozbite G++
    Nemas to ok:
    $ cat a.cpp
    #include <string>
    
    int main() {
    	  return 0;
    }
    $
    $ g++ a.cpp
    $ g++ --version
    g++ (Debian 9.3.0-16) 9.3.0
    Copyright (C) 2019 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.  There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    
    debian.plus@protonmail.com
    26.7.2020 22:54 z_sk | skóre: 34 | blog: analyzy
    Rozbalit Rozbalit vše Re: Rozbite G++
    Nainstaluj si balicek g++-10, a robi to aj v g++ desiatke?

    Zdroj: https://packages.ubuntu.com/search?keywords=g%2B%2B
    debian.plus@protonmail.com
    27.7.2020 01:36 Bherzet | skóre: 19 | blog: Bherzetův blog
    Rozbalit Rozbalit vše Re: Rozbite G++
    Připadá mi to jako by se ti nějak pomíchaly hlavičkové soubory s jinou verzí g++. _GLIBCXX_NODISCARD je nejspíš atribut [[nodiscard]], _GLIBCXX20_CONSTEXPR je constexpr. Našel jsem třeba nějaký náhodný zdroják, kde (CTRL+F _GLIBCXX20_CONSTEXPR):
    #ifndef _GLIBCXX20_CONSTEXPR
    # if __cplusplus > 201703L
    #  define _GLIBCXX20_CONSTEXPR constexpr
    
    Takže je otázka, proč ty tam tyhle definice nemáš (i když jinde se tam používají) a kompilátor tomu nerozumí. Zkus g++ prostě přeinstalovat (a případně předtím ještě promazat ty hlavičkové soubory).
    Řešení 1× (Bherzet)
    27.7.2020 06:59 LK
    Rozbalit Rozbalit vše Re: Rozbite G++

    Diky moc, toto nakoniec nepriamo pomohlo.

    Preinstalovat g++ nepomohlo - ale mas dobry postreh a vsimol si si, ze mam premiesane hlavickove subory. Tak som odinstaloval libgcc-8-dev a libgcc-7-dev (a vsetko, co na tom zaviselo) a kompilacia uz ide.

    Založit nové vláknoNahoru

    Tiskni Sdílej: Linkuj Jaggni to Vybrali.sme.sk Google Del.icio.us Facebook

    ISSN 1214-1267   www.czech-server.cz
    © 1999-2015 Nitemedia s. r. o. Všechna práva vyhrazena.