Tenderfoot Thahd MUSTDOS Posted June 25, 2023 Share Posted June 25, 2023 I'm on slackware 15 and followed the git hub posted instructions to compile openBoE; I got these errors In file included from /usr/local/include/TGUI/String.hpp:30, from /usr/local/include/TGUI/Vector2.hpp:30, from /usr/local/include/TGUI/Layout.hpp:30, from /usr/local/include/TGUI/Animation.hpp:29, from /usr/local/include/TGUI/Core.hpp:30, from /usr/local/include/TGUI/TGUI.hpp:30, from build/obj/game/boe.menu.hpp:7, from build/obj/game/boe.menus.linux.cpp:9: /usr/local/include/TGUI/StringView.hpp:45:29: error: ‘u32string_view’ in namespace ‘std’ does not name a type; did you mean ‘u32string’? 45 | using StringView = std::u32string_view; | ^~~~~~~~~~~~~~ | u32string /usr/local/include/TGUI/StringView.hpp:46:33: error: ‘string_view’ in namespace ‘std’ does not name a type 46 | using CharStringView = std::string_view; | ^~~~~~~~~~~ /usr/local/include/TGUI/StringView.hpp:46:28: note: ‘std::string_view’ is only available from C++17 onwards 46 | using CharStringView = std::string_view; | ^~~ /usr/local/include/TGUI/StringView.hpp:54:44: error: ‘string_view_literals’ is not a namespace-name; did you mean ‘string_literals’? 54 | using namespace std::literals::string_view_literals; | ^~~~~~~~~~~~~~~~~~~~ | string_literals /usr/local/include/TGUI/StringView.hpp:311:52: error: ‘CharStringView’ was not declared in this scope 311 | TGUI_NODISCARD inline bool viewEqualIgnoreCase(CharStringView view1, CharStringView view2) | ^~~~~~~~~~~~~~ /usr/local/include/TGUI/StringView.hpp:311:74: error: ‘CharStringView’ was not declared in this scope 311 | TGUI_NODISCARD inline bool viewEqualIgnoreCase(CharStringView view1, CharStringView view2) | ^~~~~~~~~~~~~~ /usr/local/include/TGUI/StringView.hpp:311:94: error: expression list treated as compound expression in initializer [-fpermissive] 311 | TGUI_NODISCARD inline bool viewEqualIgnoreCase(CharStringView view1, CharStringView view2) | ^ /usr/local/include/TGUI/StringView.hpp:332:32: error: redefinition of ‘bool tgui::viewEqualIgnoreCase’ 332 | TGUI_NODISCARD inline bool viewEqualIgnoreCase(StringView view1, StringView view2) | ^~~~~~~~~~~~~~~~~~~ /usr/local/include/TGUI/StringView.hpp:311:32: note: ‘bool tgui::viewEqualIgnoreCase’ previously defined here 311 | TGUI_NODISCARD inline bool viewEqualIgnoreCase(CharStringView view1, CharStringView view2) | ^~~~~~~~~~~~~~~~~~~ /usr/local/include/TGUI/StringView.hpp:332:52: error: ‘StringView’ was not declared in this scope 332 | TGUI_NODISCARD inline bool viewEqualIgnoreCase(StringView view1, StringView view2) | ^~~~~~~~~~ /usr/local/include/TGUI/StringView.hpp:332:70: error: ‘StringView’ was not declared in this scope 332 | TGUI_NODISCARD inline bool viewEqualIgnoreCase(StringView view1, StringView view2) | ^~~~~~~~~~ /usr/local/include/TGUI/StringView.hpp:460:47: error: ‘CharStringView’ was not declared in this scope 460 | TGUI_NODISCARD inline bool viewStartsWith(CharStringView viewToLookInto, CharStringView viewToLookFor) | ^~~~~~~~~~~~~~ /usr/local/include/TGUI/StringView.hpp:460:78: error: ‘CharStringView’ was not declared in this scope 460 | TGUI_NODISCARD inline bool viewStartsWith(CharStringView viewToLookInto, CharStringView viewToLookFor) | ^~~~~~~~~~~~~~ /usr/local/include/TGUI/StringView.hpp:460:106: error: expression list treated as compound expression in initializer [-fpermissive] 460 | TGUI_NODISCARD inline bool viewStartsWith(CharStringView viewToLookInto, CharStringView viewToLookFor) | ^ /usr/local/include/TGUI/StringView.hpp:476:32: error: redefinition of ‘bool tgui::viewStartsWith’ 476 | TGUI_NODISCARD inline bool viewStartsWith(CharStringView viewToLookInto, char charToLookFor) | ^~~~~~~~~~~~~~ /usr/local/include/TGUI/StringView.hpp:460:32: note: ‘bool tgui::viewStartsWith’ previously defined here 460 | TGUI_NODISCARD inline bool viewStartsWith(CharStringView viewToLookInto, CharStringView viewToLookFor) | ^~~~~~~~~~~~~~ /usr/local/include/TGUI/StringView.hpp:476:47: error: ‘CharStringView’ was not declared in this scope 476 | TGUI_NODISCARD inline bool viewStartsWith(CharStringView viewToLookInto, char charToLookFor) | ^~~~~~~~~~~~~~ /usr/local/include/TGUI/StringView.hpp:476:78: error: expected primary-expression before ‘char’ 476 | TGUI_NODISCARD inline bool viewStartsWith(CharStringView viewToLookInto, char charToLookFor) | ^~~~ /usr/local/include/TGUI/StringView.hpp:489:45: error: ‘CharStringView’ was not declared in this scope 489 | TGUI_NODISCARD inline bool viewEndsWith(CharStringView viewToLookInto, CharStringView viewToLookFor) | ^~~~~~~~~~~~~~ /usr/local/include/TGUI/StringView.hpp:489:76: error: ‘CharStringView’ was not declared in this scope 489 | TGUI_NODISCARD inline bool viewEndsWith(CharStringView viewToLookInto, CharStringView viewToLookFor) | ^~~~~~~~~~~~~~ /usr/local/include/TGUI/StringView.hpp:489:104: error: expression list treated as compound expression in initializer [-fpermissive] 489 | TGUI_NODISCARD inline bool viewEndsWith(CharStringView viewToLookInto, CharStringView viewToLookFor) | ^ /usr/local/include/TGUI/StringView.hpp:505:32: error: redefinition of ‘bool tgui::viewEndsWith’ 505 | TGUI_NODISCARD inline bool viewEndsWith(CharStringView viewToLookInto, char charToLookFor) | ^~~~~~~~~~~~ /usr/local/include/TGUI/StringView.hpp:489:32: note: ‘bool tgui::viewEndsWith’ previously defined here 489 | TGUI_NODISCARD inline bool viewEndsWith(CharStringView viewToLookInto, CharStringView viewToLookFor) | ^~~~~~~~~~~~ /usr/local/include/TGUI/StringView.hpp:505:45: error: ‘CharStringView’ was not declared in this scope 505 | TGUI_NODISCARD inline bool viewEndsWith(CharStringView viewToLookInto, char charToLookFor) | ^~~~~~~~~~~~~~ /usr/local/include/TGUI/StringView.hpp:505:76: error: expected primary-expression before ‘char’ 505 | TGUI_NODISCARD inline bool viewEndsWith(CharStringView viewToLookInto, char charToLookFor) | ^~~~ /usr/local/include/TGUI/StringView.hpp:518:32: error: redefinition of ‘bool tgui::viewStartsWith’ 518 | TGUI_NODISCARD inline bool viewStartsWith(StringView viewToLookInto, StringView viewToLookFor) | ^~~~~~~~~~~~~~ /usr/local/include/TGUI/StringView.hpp:460:32: note: ‘bool tgui::viewStartsWith’ previously defined here 460 | TGUI_NODISCARD inline bool viewStartsWith(CharStringView viewToLookInto, CharStringView viewToLookFor) | ^~~~~~~~~~~~~~ /usr/local/include/TGUI/StringView.hpp:518:47: error: ‘StringView’ was not declared in this scope 518 | TGUI_NODISCARD inline bool viewStartsWith(StringView viewToLookInto, StringView viewToLookFor) | ^~~~~~~~~~ /usr/local/include/TGUI/StringView.hpp:518:74: error: ‘StringView’ was not declared in this scope 518 | TGUI_NODISCARD inline bool viewStartsWith(StringView viewToLookInto, StringView viewToLookFor) | ^~~~~~~~~~ /usr/local/include/TGUI/StringView.hpp:534:32: error: redefinition of ‘bool tgui::viewStartsWith’ 534 | TGUI_NODISCARD inline bool viewStartsWith(StringView viewToLookInto, char32_t charToLookFor) | ^~~~~~~~~~~~~~ /usr/local/include/TGUI/StringView.hpp:460:32: note: ‘bool tgui::viewStartsWith’ previously defined here 460 | TGUI_NODISCARD inline bool viewStartsWith(CharStringView viewToLookInto, CharStringView viewToLookFor) | ^~~~~~~~~~~~~~ /usr/local/include/TGUI/StringView.hpp:534:47: error: ‘StringView’ was not declared in this scope 534 | TGUI_NODISCARD inline bool viewStartsWith(StringView viewToLookInto, char32_t charToLookFor) | ^~~~~~~~~~ /usr/local/include/TGUI/StringView.hpp:534:74: error: expected primary-expression before ‘char32_t’ 534 | TGUI_NODISCARD inline bool viewStartsWith(StringView viewToLookInto, char32_t charToLookFor) | ^~~~~~~~ /usr/local/include/TGUI/StringView.hpp:547:32: error: redefinition of ‘bool tgui::viewEndsWith’ 547 | TGUI_NODISCARD inline bool viewEndsWith(StringView viewToLookInto, StringView viewToLookFor) | ^~~~~~~~~~~~ /usr/local/include/TGUI/StringView.hpp:489:32: note: ‘bool tgui::viewEndsWith’ previously defined here 489 | TGUI_NODISCARD inline bool viewEndsWith(CharStringView viewToLookInto, CharStringView viewToLookFor) | ^~~~~~~~~~~~ /usr/local/include/TGUI/StringView.hpp:547:45: error: ‘StringView’ was not declared in this scope 547 | TGUI_NODISCARD inline bool viewEndsWith(StringView viewToLookInto, StringView viewToLookFor) | ^~~~~~~~~~ /usr/local/include/TGUI/StringView.hpp:547:72: error: ‘StringView’ was not declared in this scope 547 | TGUI_NODISCARD inline bool viewEndsWith(StringView viewToLookInto, StringView viewToLookFor) | ^~~~~~~~~~ /usr/local/include/TGUI/StringView.hpp:563:32: error: redefinition of ‘bool tgui::viewEndsWith’ 563 | TGUI_NODISCARD inline bool viewEndsWith(StringView viewToLookInto, char32_t charToLookFor) | ^~~~~~~~~~~~ /usr/local/include/TGUI/StringView.hpp:489:32: note: ‘bool tgui::viewEndsWith’ previously defined here 489 | TGUI_NODISCARD inline bool viewEndsWith(CharStringView viewToLookInto, CharStringView viewToLookFor) | ^~~~~~~~~~~~ /usr/local/include/TGUI/StringView.hpp:563:45: error: ‘StringView’ was not declared in this scope 563 | TGUI_NODISCARD inline bool viewEndsWith(StringView viewToLookInto, char32_t charToLookFor) | ^~~~~~~~~~ /usr/local/include/TGUI/StringView.hpp:563:72: error: expected primary-expression before ‘char32_t’ 563 | TGUI_NODISCARD inline bool viewEndsWith(StringView viewToLookInto, char32_t charToLookFor) | ^~~~~~~~ In file included from /usr/local/include/TGUI/Vector2.hpp:30, from /usr/local/include/TGUI/Layout.hpp:30, from /usr/local/include/TGUI/Animation.hpp:29, from /usr/local/include/TGUI/Core.hpp:30, from /usr/local/include/TGUI/TGUI.hpp:30, from build/obj/game/boe.menu.hpp:7, from build/obj/game/boe.menus.linux.cpp:9: /usr/local/include/TGUI/String.hpp:109:18: error: ‘is_same_v’ is not a member of ‘std’; did you mean ‘is_same’? 109 | std::is_same_v<StringViewType, std::string_view> | ^~~~~~~~~ | is_same /usr/local/include/TGUI/String.hpp:109:18: error: ‘is_same_v’ is not a member of ‘std’; did you mean ‘is_same’? 109 | std::is_same_v<StringViewType, std::string_view> | ^~~~~~~~~ | is_same /usr/local/include/TGUI/String.hpp:109:49: error: ‘string_view’ is not a member of ‘std’ 109 | std::is_same_v<StringViewType, std::string_view> | ^~~~~~~~~~~ /usr/local/include/TGUI/String.hpp:109:49: note: ‘std::string_view’ is only available from C++17 onwards /usr/local/include/TGUI/String.hpp:109:49: error: ‘string_view’ is not a member of ‘std’ /usr/local/include/TGUI/String.hpp:109:49: note: ‘std::string_view’ is only available from C++17 onwards /usr/local/include/TGUI/String.hpp:109:60: error: template argument 1 is invalid 109 | std::is_same_v<StringViewType, std::string_view> | ^ /usr/local/include/TGUI/String.hpp:109:60: error: template argument 2 is invalid /usr/local/include/TGUI/String.hpp:122:43: error: ‘std::u32string_view’ has not been declared 122 | static constexpr auto npos = std::u32string_view::npos; | ^~~~~~~~~~~~~~ /usr/local/include/TGUI/String.hpp:415:55: error: ‘IsStringViewType’ does not name a type; did you mean ‘StringViewType’? 415 | template <typename StringViewType, typename = IsStringViewType<StringViewType>> | ^~~~~~~~~~~~~~~~ | StringViewType /usr/local/include/TGUI/String.hpp:415:71: error: expected ‘>’ before ‘<’ token 415 | template <typename StringViewType, typename = IsStringViewType<StringViewType>> | ^ /usr/local/include/TGUI/String.hpp:421:55: error: ‘IsStringViewType’ does not name a type; did you mean ‘StringViewType’? 421 | template <typename StringViewType, typename = IsStringViewType<StringViewType>> | ^~~~~~~~~~~~~~~~ | StringViewType /usr/local/include/TGUI/String.hpp:421:71: error: expected ‘>’ before ‘<’ token 421 | template <typename StringViewType, typename = IsStringViewType<StringViewType>> | ^ /usr/local/include/TGUI/String.hpp:461:18: error: expected type-specifier before ‘StringView’ 461 | operator StringView() const noexcept | ^~~~~~~~~~ /usr/local/include/TGUI/String.hpp:483:24: error: ‘StringView’ has not been declared 483 | String& assign(StringView sv); | ^~~~~~~~~~ /usr/local/include/TGUI/String.hpp:488:24: error: ‘StringView’ has not been declared 488 | String& assign(StringView sv, std::size_t pos, std::size_t count = npos); | ^~~~~~~~~~ /usr/local/include/TGUI/String.hpp:512:24: error: ‘StringView’ has not been declared 512 | String& assign(StringView::const_iterator first, StringView::const_iterator last); | ^~~~~~~~~~ /usr/local/include/TGUI/String.hpp:512:51: error: expected ‘,’ or ‘...’ before ‘first’ 512 | String& assign(StringView::const_iterator first, StringView::const_iterator last); | ^~~~~ /usr/local/include/TGUI/String.hpp:512:17: error: ‘tgui::String& tgui::String::assign(int)’ cannot be overloaded with ‘tgui::String& tgui::String::assign(int)’ 512 | String& assign(StringView::const_iterator first, StringView::const_iterator last); | ^~~~~~ /usr/local/include/TGUI/String.hpp:483:17: note: previous declaration ‘tgui::String& tgui::String::assign(int)’ 483 | String& assign(StringView sv); | ^~~~~~ /usr/local/include/TGUI/String.hpp:589:43: error: ‘StringView’ has not been declared 589 | String& insert(std::size_t index, StringView sv); | ^~~~~~~~~~ /usr/local/include/TGUI/String.hpp:594:43: error: ‘StringView’ has not been declared 594 | String& insert(std::size_t index, StringView sv, std::size_t pos, std::size_t count = npos); | ^~~~~~~~~~ /usr/local/include/TGUI/String.hpp:625:45: error: ‘StringView’ has not been declared 625 | iterator insert(const_iterator pos, StringView::const_iterator first, StringView::const_iterator last); | ^~~~~~~~~~ /usr/local/include/TGUI/String.hpp:625:72: error: expected ‘,’ or ‘...’ before ‘first’ 625 | iterator insert(const_iterator pos, StringView::const_iterator first, StringView::const_iterator last); | ^~~~~ /usr/local/include/TGUI/String.hpp:644:24: error: ‘StringView’ has not been declared 644 | String& append(StringView sv); | ^~~~~~~~~~ /usr/local/include/TGUI/String.hpp:649:24: error: ‘StringView’ has not been declared 649 | String& append(StringView sv, std::size_t pos, std::size_t count = npos); | ^~~~~~~~~~ /usr/local/include/TGUI/String.hpp:665:24: error: ‘StringView’ has not been declared 665 | String& append(StringView::const_iterator first, StringView::const_iterator last); | ^~~~~~~~~~ /usr/local/include/TGUI/String.hpp:665:51: error: expected ‘,’ or ‘...’ before ‘first’ 665 | String& append(StringView::const_iterator first, StringView::const_iterator last); | ^~~~~ /usr/local/include/TGUI/String.hpp:665:17: error: ‘tgui::String& tgui::String::append(int)’ cannot be overloaded with ‘tgui::String& tgui::String::append(int)’ 665 | String& append(StringView::const_iterator first, StringView::const_iterator last); | ^~~~~~ /usr/local/include/TGUI/String.hpp:644:17: note: previous declaration ‘tgui::String& tgui::String::append(int)’ 644 | String& append(StringView sv); | ^~~~~~ /usr/local/include/TGUI/String.hpp:674:36: error: ‘StringView’ has not been declared 674 | TGUI_NODISCARD int compare(StringView sv) const noexcept; | ^~~~~~~~~~ /usr/local/include/TGUI/String.hpp:679:74: error: ‘StringView’ has not been declared 679 | TGUI_NODISCARD int compare(std::size_t pos1, std::size_t count1, StringView sv) const; | ^~~~~~~~~~ /usr/local/include/TGUI/String.hpp:684:74: error: ‘StringView’ has not been declared 684 | TGUI_NODISCARD int compare(std::size_t pos1, std::size_t count1, StringView sv, std::size_t pos2, std::size_t count2 = npos) const; | ^~~~~~~~~~ /usr/local/include/TGUI/String.hpp:696:61: error: ‘StringView’ has not been declared 696 | String& replace(std::size_t pos, std::size_t count, StringView sv); | ^~~~~~~~~~ /usr/local/include/TGUI/String.hpp:701:68: error: ‘StringView’ has not been declared 701 | String& replace(const_iterator first, const_iterator last, StringView sv); | ^~~~~~~~~~ /usr/local/include/TGUI/String.hpp:706:61: error: ‘StringView’ has not been declared 706 | String& replace(std::size_t pos, std::size_t count, StringView sv, std::size_t pos2, std::size_t count2 = npos); | ^~~~~~~~~~ /usr/local/include/TGUI/String.hpp:717:68: error: ‘StringView’ has not been declared 717 | String& replace(const_iterator first, const_iterator last, StringView::const_iterator first2, StringView::const_iterator last2); | ^~~~~~~~~~ /usr/local/include/TGUI/String.hpp:717:95: error: expected ‘,’ or ‘...’ before ‘first2’ 717 | String& replace(const_iterator first, const_iterator last, StringView::const_iterator first2, StringView::const_iterator last2); | ^~~~~~ /usr/local/include/TGUI/String.hpp:717:17: error: ‘tgui::String& tgui::String::replace(tgui::String::const_iterator, tgui::String::const_iterator, int)’ cannot be overloaded with ‘tgui::String& tgui::String::replace(tgui::String::const_iterator, tgui::String::const_iterator, int)’ 717 | String& replace(const_iterator first, const_iterator last, StringView::const_iterator first2, StringView::const_iterator last2); | ^~~~~~~ /usr/local/include/TGUI/String.hpp:701:17: note: previous declaration ‘tgui::String& tgui::String::replace(tgui::String::const_iterator, tgui::String::const_iterator, int)’ 701 | String& replace(const_iterator first, const_iterator last, StringView sv); | ^~~~~~~ /usr/local/include/TGUI/String.hpp:761:38: error: ‘StringView’ has not been declared 761 | TGUI_NODISCARD bool contains(StringView sv) const noexcept; | ^~~~~~~~~~ /usr/local/include/TGUI/String.hpp:766:41: error: ‘StringView’ has not been declared 766 | TGUI_NODISCARD std::size_t find(StringView sv, std::size_t pos = 0) const noexcept; | ^~~~~~~~~~ /usr/local/include/TGUI/String.hpp:781:50: error: ‘StringView’ has not been declared 781 | TGUI_NODISCARD std::size_t find_first_of(StringView sv, std::size_t pos = 0) const noexcept; | ^~~~~~~~~~ /usr/local/include/TGUI/String.hpp:796:54: error: ‘StringView’ has not been declared 796 | TGUI_NODISCARD std::size_t find_first_not_of(StringView sv, std::size_t pos = 0) const noexcept; | ^~~~~~~~~~ /usr/local/include/TGUI/String.hpp:811:42: error: ‘StringView’ has not been declared 811 | TGUI_NODISCARD std::size_t rfind(StringView sv, std::size_t pos = npos) const noexcept; | ^~~~~~~~~~ /usr/local/include/TGUI/String.hpp:826:49: error: ‘StringView’ has not been declared 826 | TGUI_NODISCARD std::size_t find_last_of(StringView sv, std::size_t pos = npos) const noexcept; | ^~~~~~~~~~ /usr/local/include/TGUI/String.hpp:841:53: error: ‘StringView’ has not been declared 841 | TGUI_NODISCARD std::size_t find_last_not_of(StringView sv, std::size_t pos = npos) const noexcept; | ^~~~~~~~~~ /usr/local/include/TGUI/String.hpp:856:48: error: ‘StringView’ has not been declared 856 | TGUI_NODISCARD inline bool starts_with(StringView sv) const noexcept; | ^~~~~~~~~~ /usr/local/include/TGUI/String.hpp:866:46: error: ‘StringView’ has not been declared 866 | TGUI_NODISCARD inline bool ends_with(StringView sv) const noexcept; | ^~~~~~~~~~ /usr/local/include/TGUI/String.hpp:876:59: error: ‘StringView’ has not been declared 876 | inline friend bool operator==(const String& left, StringView right); | ^~~~~~~~~~ /usr/local/include/TGUI/String.hpp:881:59: error: ‘StringView’ has not been declared 881 | inline friend bool operator!=(const String& left, StringView right); | ^~~~~~~~~~ /usr/local/include/TGUI/String.hpp:886:58: error: ‘StringView’ has not been declared 886 | inline friend bool operator<(const String& left, StringView right); | ^~~~~~~~~~ /usr/local/include/TGUI/String.hpp:891:59: error: ‘StringView’ has not been declared 891 | inline friend bool operator<=(const String& left, StringView right); | ^~~~~~~~~~ /usr/local/include/TGUI/String.hpp:896:58: error: ‘StringView’ has not been declared 896 | inline friend bool operator>(const String& left, StringView right); | ^~~~~~~~~~ /usr/local/include/TGUI/String.hpp:901:59: error: ‘StringView’ has not been declared 901 | inline friend bool operator>=(const String& left, StringView right); | ^~~~~~~~~~ /usr/local/include/TGUI/String.hpp:986:17: error: ‘bool tgui::String::starts_with’ is not a static data member of ‘class tgui::String’ 986 | inline bool String::starts_with(StringView sv) const noexcept | ^~~~~~ /usr/local/include/TGUI/String.hpp:986:37: error: ‘StringView’ was not declared in this scope; did you mean ‘String’? 986 | inline bool String::starts_with(StringView sv) const noexcept | ^~~~~~~~~~ | String /usr/local/include/TGUI/String.hpp: In member function ‘bool tgui::String::starts_with(const char32_t*) const’: /usr/local/include/TGUI/String.hpp:993:31: error: ‘StringView’ was not declared in this scope; did you mean ‘String’? 993 | return viewStartsWith(StringView(m_string), StringView(s)); | ^~~~~~~~~~ | String /usr/local/include/TGUI/String.hpp:993:66: error: ‘tgui::viewStartsWith’ cannot be used as a function 993 | return viewStartsWith(StringView(m_string), StringView(s)); | ^ /usr/local/include/TGUI/String.hpp: In member function ‘bool tgui::String::starts_with(const u32string&) const’: /usr/local/include/TGUI/String.hpp:998:31: error: ‘StringView’ was not declared in this scope; did you mean ‘String’? 998 | return viewStartsWith(StringView(m_string), StringView(s)); | ^~~~~~~~~~ | String /usr/local/include/TGUI/String.hpp:998:66: error: ‘tgui::viewStartsWith’ cannot be used as a function 998 | return viewStartsWith(StringView(m_string), StringView(s)); | ^ /usr/local/include/TGUI/String.hpp: In member function ‘bool tgui::String::starts_with(const tgui::String&) const’: /usr/local/include/TGUI/String.hpp:1003:31: error: ‘StringView’ was not declared in this scope; did you mean ‘String’? 1003 | return viewStartsWith(StringView(m_string), StringView(s)); | ^~~~~~~~~~ | String /usr/local/include/TGUI/String.hpp:1003:66: error: ‘tgui::viewStartsWith’ cannot be used as a function 1003 | return viewStartsWith(StringView(m_string), StringView(s)); | ^ /usr/local/include/TGUI/String.hpp: In member function ‘bool tgui::String::starts_with(char) const’: /usr/local/include/TGUI/String.hpp:1008:31: error: ‘StringView’ was not declared in this scope; did you mean ‘String’? 1008 | return viewStartsWith(StringView(m_string), static_cast<char32_t>(ch)); | ^~~~~~~~~~ | String /usr/local/include/TGUI/String.hpp:1008:30: error: ‘tgui::viewStartsWith’ cannot be used as a function 1008 | return viewStartsWith(StringView(m_string), static_cast<char32_t>(ch)); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/TGUI/String.hpp: In member function ‘bool tgui::String::starts_with(wchar_t) const’: /usr/local/include/TGUI/String.hpp:1013:31: error: ‘StringView’ was not declared in this scope; did you mean ‘String’? 1013 | return viewStartsWith(StringView(m_string), static_cast<char32_t>(ch)); | ^~~~~~~~~~ | String /usr/local/include/TGUI/String.hpp:1013:30: error: ‘tgui::viewStartsWith’ cannot be used as a function 1013 | return viewStartsWith(StringView(m_string), static_cast<char32_t>(ch)); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/TGUI/String.hpp: In member function ‘bool tgui::String::starts_with(char16_t) const’: /usr/local/include/TGUI/String.hpp:1018:31: error: ‘StringView’ was not declared in this scope; did you mean ‘String’? 1018 | return viewStartsWith(StringView(m_string), static_cast<char32_t>(ch)); | ^~~~~~~~~~ | String /usr/local/include/TGUI/String.hpp:1018:30: error: ‘tgui::viewStartsWith’ cannot be used as a function 1018 | return viewStartsWith(StringView(m_string), static_cast<char32_t>(ch)); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/TGUI/String.hpp: In member function ‘bool tgui::String::starts_with(char32_t) const’: /usr/local/include/TGUI/String.hpp:1023:31: error: ‘StringView’ was not declared in this scope; did you mean ‘String’? 1023 | return viewStartsWith(StringView(m_string), ch); | ^~~~~~~~~~ | String /usr/local/include/TGUI/String.hpp:1023:30: error: ‘tgui::viewStartsWith’ cannot be used as a function 1023 | return viewStartsWith(StringView(m_string), ch); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/TGUI/String.hpp: At global scope: /usr/local/include/TGUI/String.hpp:1026:17: error: ‘bool tgui::String::ends_with’ is not a static data member of ‘class tgui::String’ 1026 | inline bool String::ends_with(StringView sv) const noexcept | ^~~~~~ /usr/local/include/TGUI/String.hpp:1026:35: error: ‘StringView’ was not declared in this scope; did you mean ‘String’? 1026 | inline bool String::ends_with(StringView sv) const noexcept | ^~~~~~~~~~ | String /usr/local/include/TGUI/String.hpp: In member function ‘bool tgui::String::ends_with(const char32_t*) const’: /usr/local/include/TGUI/String.hpp:1033:29: error: ‘StringView’ was not declared in this scope; did you mean ‘String’? 1033 | return viewEndsWith(StringView(m_string), StringView(s)); | ^~~~~~~~~~ | String /usr/local/include/TGUI/String.hpp:1033:64: error: ‘tgui::viewEndsWith’ cannot be used as a function 1033 | return viewEndsWith(StringView(m_string), StringView(s)); | ^ /usr/local/include/TGUI/String.hpp: In member function ‘bool tgui::String::ends_with(const u32string&) const’: /usr/local/include/TGUI/String.hpp:1038:29: error: ‘StringView’ was not declared in this scope; did you mean ‘String’? 1038 | return viewEndsWith(StringView(m_string), StringView(s)); | ^~~~~~~~~~ | String /usr/local/include/TGUI/String.hpp:1038:64: error: ‘tgui::viewEndsWith’ cannot be used as a function 1038 | return viewEndsWith(StringView(m_string), StringView(s)); | ^ /usr/local/include/TGUI/String.hpp: In member function ‘bool tgui::String::ends_with(const tgui::String&) const’: /usr/local/include/TGUI/String.hpp:1043:29: error: ‘StringView’ was not declared in this scope; did you mean ‘String’? 1043 | return viewEndsWith(StringView(m_string), StringView(s)); | ^~~~~~~~~~ | String /usr/local/include/TGUI/String.hpp:1043:64: error: ‘tgui::viewEndsWith’ cannot be used as a function 1043 | return viewEndsWith(StringView(m_string), StringView(s)); | ^ /usr/local/include/TGUI/String.hpp: In member function ‘bool tgui::String::ends_with(char) const’: /usr/local/include/TGUI/String.hpp:1048:29: error: ‘StringView’ was not declared in this scope; did you mean ‘String’? 1048 | return viewEndsWith(StringView(m_string), static_cast<char32_t>(ch)); | ^~~~~~~~~~ | String /usr/local/include/TGUI/String.hpp:1048:28: error: ‘tgui::viewEndsWith’ cannot be used as a function 1048 | return viewEndsWith(StringView(m_string), static_cast<char32_t>(ch)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/TGUI/String.hpp: In member function ‘bool tgui::String::ends_with(wchar_t) const’: /usr/local/include/TGUI/String.hpp:1053:29: error: ‘StringView’ was not declared in this scope; did you mean ‘String’? 1053 | return viewEndsWith(StringView(m_string), static_cast<char32_t>(ch)); | ^~~~~~~~~~ | String /usr/local/include/TGUI/String.hpp:1053:28: error: ‘tgui::viewEndsWith’ cannot be used as a function 1053 | return viewEndsWith(StringView(m_string), static_cast<char32_t>(ch)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/TGUI/String.hpp: In member function ‘bool tgui::String::ends_with(char16_t) const’: /usr/local/include/TGUI/String.hpp:1058:29: error: ‘StringView’ was not declared in this scope; did you mean ‘String’? 1058 | return viewEndsWith(StringView(m_string), static_cast<char32_t>(ch)); | ^~~~~~~~~~ | String /usr/local/include/TGUI/String.hpp:1058:28: error: ‘tgui::viewEndsWith’ cannot be used as a function 1058 | return viewEndsWith(StringView(m_string), static_cast<char32_t>(ch)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/TGUI/String.hpp: In member function ‘bool tgui::String::ends_with(char32_t) const’: /usr/local/include/TGUI/String.hpp:1063:29: error: ‘StringView’ was not declared in this scope; did you mean ‘String’? 1063 | return viewEndsWith(StringView(m_string), ch); | ^~~~~~~~~~ | String /usr/local/include/TGUI/String.hpp:1063:28: error: ‘tgui::viewEndsWith’ cannot be used as a function 1063 | return viewEndsWith(StringView(m_string), ch); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/TGUI/String.hpp: At global scope: /usr/local/include/TGUI/String.hpp:1067:63: error: ‘StringView’ has not been declared 1067 | TGUI_NODISCARD inline bool operator==(const String& left, StringView right) | ^~~~~~~~~~ /usr/local/include/TGUI/String.hpp: In function ‘bool tgui::operator==(const tgui::String&, int)’: /usr/local/include/TGUI/String.hpp:1069:16: error: ‘StringView’ was not declared in this scope; did you mean ‘String’? 1069 | return StringView(left) == right; | ^~~~~~~~~~ | String /usr/local/include/TGUI/String.hpp: In function ‘bool tgui::operator==(const tgui::String&, const char32_t*)’: /usr/local/include/TGUI/String.hpp:1074:16: error: ‘StringView’ was not declared in this scope; did you mean ‘String’? 1074 | return StringView(left) == right; | ^~~~~~~~~~ | String /usr/local/include/TGUI/String.hpp: In function ‘bool tgui::operator==(const tgui::String&, const u32string&)’: /usr/local/include/TGUI/String.hpp:1079:16: error: ‘StringView’ was not declared in this scope; did you mean ‘String’? 1079 | return StringView(left) == right; | ^~~~~~~~~~ | String /usr/local/include/TGUI/String.hpp: At global scope: /usr/local/include/TGUI/String.hpp:1087:63: error: ‘StringView’ has not been declared 1087 | TGUI_NODISCARD inline bool operator!=(const String& left, StringView right) | ^~~~~~~~~~ /usr/local/include/TGUI/String.hpp: In function ‘bool tgui::operator!=(const tgui::String&, int)’: /usr/local/include/TGUI/String.hpp:1089:16: error: ‘StringView’ was not declared in this scope; did you mean ‘String’? 1089 | return StringView(left) != right; | ^~~~~~~~~~ | String /usr/local/include/TGUI/String.hpp: In function ‘bool tgui::operator!=(const tgui::String&, const char32_t*)’: /usr/local/include/TGUI/String.hpp:1094:16: error: ‘StringView’ was not declared in this scope; did you mean ‘String’? 1094 | return StringView(left) != right; | ^~~~~~~~~~ | String /usr/local/include/TGUI/String.hpp: In function ‘bool tgui::operator!=(const tgui::String&, const u32string&)’: /usr/local/include/TGUI/String.hpp:1099:16: error: ‘StringView’ was not declared in this scope; did you mean ‘String’? 1099 | return StringView(left) != right; | ^~~~~~~~~~ | String /usr/local/include/TGUI/String.hpp: At global scope: /usr/local/include/TGUI/String.hpp:1107:62: error: ‘StringView’ has not been declared 1107 | TGUI_NODISCARD inline bool operator<(const String& left, StringView right) | ^~~~~~~~~~ /usr/local/include/TGUI/String.hpp: In function ‘bool tgui::operator<(const tgui::String&, int)’: /usr/local/include/TGUI/String.hpp:1109:16: error: ‘StringView’ was not declared in this scope; did you mean ‘String’? 1109 | return StringView(left) < right; | ^~~~~~~~~~ | String /usr/local/include/TGUI/String.hpp: In function ‘bool tgui::operator<(const tgui::String&, const char32_t*)’: /usr/local/include/TGUI/String.hpp:1114:16: error: ‘StringView’ was not declared in this scope; did you mean ‘String’? 1114 | return StringView(left) < right; | ^~~~~~~~~~ | String /usr/local/include/TGUI/String.hpp: In function ‘bool tgui::operator<(const tgui::String&, const u32string&)’: /usr/local/include/TGUI/String.hpp:1119:16: error: ‘StringView’ was not declared in this scope; did you mean ‘String’? 1119 | return StringView(left) < right; | ^~~~~~~~~~ | String /usr/local/include/TGUI/String.hpp: At global scope: /usr/local/include/TGUI/String.hpp:1127:63: error: ‘StringView’ has not been declared 1127 | TGUI_NODISCARD inline bool operator<=(const String& left, StringView right) | ^~~~~~~~~~ /usr/local/include/TGUI/String.hpp: In function ‘bool tgui::operator<=(const tgui::String&, int)’: /usr/local/include/TGUI/String.hpp:1129:16: error: ‘StringView’ was not declared in this scope; did you mean ‘String’? 1129 | return StringView(left) <= right; | ^~~~~~~~~~ | String /usr/local/include/TGUI/String.hpp: In function ‘bool tgui::operator<=(const tgui::String&, const char32_t*)’: /usr/local/include/TGUI/String.hpp:1134:16: error: ‘StringView’ was not declared in this scope; did you mean ‘String’? 1134 | return StringView(left) <= right; | ^~~~~~~~~~ | String /usr/local/include/TGUI/String.hpp: In function ‘bool tgui::operator<=(const tgui::String&, const u32string&)’: /usr/local/include/TGUI/String.hpp:1139:16: error: ‘StringView’ was not declared in this scope; did you mean ‘String’? 1139 | return StringView(left) <= right; | ^~~~~~~~~~ | String /usr/local/include/TGUI/String.hpp: At global scope: /usr/local/include/TGUI/String.hpp:1147:62: error: ‘StringView’ has not been declared 1147 | TGUI_NODISCARD inline bool operator>(const String& left, StringView right) | ^~~~~~~~~~ /usr/local/include/TGUI/String.hpp: In function ‘bool tgui::operator>(const tgui::String&, int)’: /usr/local/include/TGUI/String.hpp:1149:16: error: ‘StringView’ was not declared in this scope; did you mean ‘String’? 1149 | return StringView(left) > right; | ^~~~~~~~~~ | String /usr/local/include/TGUI/String.hpp: In function ‘bool tgui::operator>(const tgui::String&, const char32_t*)’: /usr/local/include/TGUI/String.hpp:1154:16: error: ‘StringView’ was not declared in this scope; did you mean ‘String’? 1154 | return StringView(left) > right; | ^~~~~~~~~~ | String /usr/local/include/TGUI/String.hpp: In function ‘bool tgui::operator>(const tgui::String&, const u32string&)’: /usr/local/include/TGUI/String.hpp:1159:16: error: ‘StringView’ was not declared in this scope; did you mean ‘String’? 1159 | return StringView(left) > right; | ^~~~~~~~~~ | String /usr/local/include/TGUI/String.hpp: At global scope: /usr/local/include/TGUI/String.hpp:1167:63: error: ‘StringView’ has not been declared 1167 | TGUI_NODISCARD inline bool operator>=(const String& left, StringView right) | ^~~~~~~~~~ /usr/local/include/TGUI/String.hpp: In function ‘bool tgui::operator>=(const tgui::String&, int)’: /usr/local/include/TGUI/String.hpp:1169:16: error: ‘StringView’ was not declared in this scope; did you mean ‘String’? 1169 | return StringView(left) >= right; | ^~~~~~~~~~ | String /usr/local/include/TGUI/String.hpp: In function ‘bool tgui::operator>=(const tgui::String&, const char32_t*)’: /usr/local/include/TGUI/String.hpp:1174:16: error: ‘StringView’ was not declared in this scope; did you mean ‘String’? 1174 | return StringView(left) >= right; | ^~~~~~~~~~ | String /usr/local/include/TGUI/String.hpp: In function ‘bool tgui::operator>=(const tgui::String&, const u32string&)’: /usr/local/include/TGUI/String.hpp:1179:16: error: ‘StringView’ was not declared in this scope; did you mean ‘String’? 1179 | return StringView(left) >= right; | ^~~~~~~~~~ | String In file included from /usr/local/include/TGUI/Timer.hpp:31, from /usr/local/include/TGUI/Core.hpp:32, from /usr/local/include/TGUI/TGUI.hpp:30, from build/obj/game/boe.menu.hpp:7, from build/obj/game/boe.menus.linux.cpp:9: /usr/local/include/TGUI/Optional.hpp: At global scope: /usr/local/include/TGUI/Optional.hpp:42:27: error: ‘optional’ in namespace ‘std’ does not name a template type 42 | using Optional = std::optional<T>; | ^~~~~~~~ /usr/local/include/TGUI/Optional.hpp:42:22: note: ‘std::optional’ is only available from C++17 onwards 42 | using Optional = std::optional<T>; | ^~~ In file included from /usr/local/include/TGUI/Core.hpp:32, from /usr/local/include/TGUI/TGUI.hpp:30, from build/obj/game/boe.menu.hpp:7, from build/obj/game/boe.menus.linux.cpp:9: /usr/local/include/TGUI/Timer.hpp:164:31: error: ‘Optional’ does not name a type 164 | TGUI_NODISCARD static Optional<Duration> getNextScheduledTime(); | ^~~~~~~~ In file included from /usr/local/include/TGUI/Global.hpp:35, from /usr/local/include/TGUI/Signal.hpp:31, from /usr/local/include/TGUI/Widget.hpp:31, from /usr/local/include/TGUI/Core.hpp:33, from /usr/local/include/TGUI/TGUI.hpp:30, from build/obj/game/boe.menu.hpp:7, from build/obj/game/boe.menus.linux.cpp:9: /usr/local/include/TGUI/Filesystem.hpp:83:64: error: ‘is_same_v’ is not a member of ‘std’; did you mean ‘is_same’? 83 | template <typename PathType, std::enable_if_t<std::is_same_v<PathType, std::filesystem::path>, int> = 0> | ^~~~~~~~~ | is_same /usr/local/include/TGUI/Filesystem.hpp:83:64: error: ‘is_same_v’ is not a member of ‘std’; did you mean ‘is_same’? 83 | template <typename PathType, std::enable_if_t<std::is_same_v<PathType, std::filesystem::path>, int> = 0> | ^~~~~~~~~ | is_same /usr/local/include/TGUI/Filesystem.hpp:83:89: error: ‘filesystem’ is not a member of ‘std’; did you mean ‘system’? 83 | template <typename PathType, std::enable_if_t<std::is_same_v<PathType, std::filesystem::path>, int> = 0> | ^~~~~~~~~~ | system /usr/local/include/TGUI/Filesystem.hpp:83:89: error: ‘filesystem’ is not a member of ‘std’; did you mean ‘system’? 83 | template <typename PathType, std::enable_if_t<std::is_same_v<PathType, std::filesystem::path>, int> = 0> | ^~~~~~~~~~ | system /usr/local/include/TGUI/Filesystem.hpp:83:105: error: template argument 1 is invalid 83 | template <typename PathType, std::enable_if_t<std::is_same_v<PathType, std::filesystem::path>, int> = 0> | ^ /usr/local/include/TGUI/Filesystem.hpp:83:105: error: template argument 2 is invalid /usr/local/include/TGUI/Filesystem.hpp:83:113: error: expected unqualified-id before ‘=’ token 83 | template <typename PathType, std::enable_if_t<std::is_same_v<PathType, std::filesystem::path>, int> = 0> | ^ /usr/local/include/TGUI/Filesystem.hpp:174:13: error: ‘operator const int’ does not name a type 174 | operator const std::filesystem::path&() const | ^~~~~~~~ /usr/local/include/TGUI/Filesystem.hpp:250:18: error: ‘filesystem’ in namespace ‘std’ does not name a type; did you mean ‘system’? 250 | std::filesystem::path m_path; | ^~~~~~~~~~ | system In file included from /usr/local/include/TGUI/Signal.hpp:31, from /usr/local/include/TGUI/Widget.hpp:31, from /usr/local/include/TGUI/Core.hpp:33, from /usr/local/include/TGUI/TGUI.hpp:30, from build/obj/game/boe.menu.hpp:7, from build/obj/game/boe.menus.linux.cpp:9: /usr/local/include/TGUI/Global.hpp:165:53: error: ‘CharStringView’ has not been declared 165 | TGUI_API bool writeFile(const String& filename, CharStringView textToWrite); | ^~~~~~~~~~~~~~ In file included from /usr/local/include/TGUI/Signal.hpp:33, from /usr/local/include/TGUI/Widget.hpp:31, from /usr/local/include/TGUI/Core.hpp:33, from /usr/local/include/TGUI/TGUI.hpp:30, from build/obj/game/boe.menu.hpp:7, from build/obj/game/boe.menus.linux.cpp:9: /usr/local/include/TGUI/Color.hpp:274:43: error: ‘StringView’ was not declared in this scope; did you mean ‘String’? 274 | static const std::array<std::pair<StringView, Color>, 9> colorNamesMap; | ^~~~~~~~~~ | String /usr/local/include/TGUI/Color.hpp:274:60: error: template argument 1 is invalid 274 | static const std::array<std::pair<StringView, Color>, 9> colorNamesMap; | ^ /usr/local/include/TGUI/Color.hpp:274:64: error: template argument 1 is invalid 274 | static const std::array<std::pair<StringView, Color>, 9> colorNamesMap; | ^ /usr/local/include/TGUI/Color.hpp:322:49: error: ‘StringView’ was not declared in this scope; did you mean ‘String’? 322 | inline constexpr const std::array<std::pair<StringView, Color>, 9> Color::colorNamesMap | ^~~~~~~~~~ | String /usr/local/include/TGUI/Color.hpp:322:66: error: template argument 1 is invalid 322 | inline constexpr const std::array<std::pair<StringView, Color>, 9> Color::colorNamesMap | ^ /usr/local/include/TGUI/Color.hpp:322:70: error: template argument 1 is invalid 322 | inline constexpr const std::array<std::pair<StringView, Color>, 9> Color::colorNamesMap | ^ /usr/local/include/TGUI/Color.hpp:324:11: error: unable to find string literal operator ‘operator""sv’ with ‘const char32_t [6]’, ‘long unsigned int’ arguments 324 | {{U"black"sv, Color::Black}, | ^~~~~~~~~~ /usr/local/include/TGUI/Color.hpp:325:11: error: unable to find string literal operator ‘operator""sv’ with ‘const char32_t [6]’, ‘long unsigned int’ arguments 325 | {U"white"sv, Color::White}, | ^~~~~~~~~~ /usr/local/include/TGUI/Color.hpp:326:11: error: unable to find string literal operator ‘operator""sv’ with ‘const char32_t [4]’, ‘long unsigned int’ arguments 326 | {U"red"sv, Color::Red}, | ^~~~~~~~ /usr/local/include/TGUI/Color.hpp:327:11: error: unable to find string literal operator ‘operator""sv’ with ‘const char32_t [7]’, ‘long unsigned int’ arguments 327 | {U"yellow"sv, Color::Yellow}, | ^~~~~~~~~~~ /usr/local/include/TGUI/Color.hpp:328:11: error: unable to find string literal operator ‘operator""sv’ with ‘const char32_t [6]’, ‘long unsigned int’ arguments 328 | {U"green"sv, Color::Green}, | ^~~~~~~~~~ /usr/local/include/TGUI/Color.hpp:329:11: error: unable to find string literal operator ‘operator""sv’ with ‘const char32_t [5]’, ‘long unsigned int’ arguments 329 | {U"cyan"sv, Color::Cyan}, | ^~~~~~~~~ /usr/local/include/TGUI/Color.hpp:330:11: error: unable to find string literal operator ‘operator""sv’ with ‘const char32_t [5]’, ‘long unsigned int’ arguments 330 | {U"blue"sv, Color::Blue}, | ^~~~~~~~~ /usr/local/include/TGUI/Color.hpp:331:11: error: unable to find string literal operator ‘operator""sv’ with ‘const char32_t [8]’, ‘long unsigned int’ arguments 331 | {U"magenta"sv, Color::Magenta}, | ^~~~~~~~~~~~ /usr/local/include/TGUI/Color.hpp:332:11: error: unable to find string literal operator ‘operator""sv’ with ‘const char32_t [12]’, ‘long unsigned int’ arguments 332 | {U"transparent"sv, Color::Transparent}} | ^~~~~~~~~~~~~~~~ /usr/local/include/TGUI/Color.hpp:333:5: error: too many braces around scalar initializer for type ‘const int’ 333 | }; | ^ In file included from /usr/local/include/TGUI/Texture.hpp:31, from /usr/local/include/TGUI/Sprite.hpp:29, from /usr/local/include/TGUI/Widget.hpp:33, from /usr/local/include/TGUI/Core.hpp:33, from /usr/local/include/TGUI/TGUI.hpp:30, from build/obj/game/boe.menu.hpp:7, from build/obj/game/boe.menus.linux.cpp:9: /usr/local/include/TGUI/TextureData.hpp:52:9: error: ‘Optional’ does not name a type 52 | Optional<SvgImage> svgImage; | ^~~~~~~~ In file included from /usr/local/include/TGUI/Sprite.hpp:29, from /usr/local/include/TGUI/Widget.hpp:33, from /usr/local/include/TGUI/Core.hpp:33, from /usr/local/include/TGUI/TGUI.hpp:30, from build/obj/game/boe.menu.hpp:7, from build/obj/game/boe.menus.linux.cpp:9: /usr/local/include/TGUI/Texture.hpp:226:29: error: ‘CharStringView’ has not been declared 226 | void loadFromBase64(CharStringView imageAsBase64, const UIntRect& partRect = {}, const UIntRect& middleRect = {}, bool smooth = m_defaultSmooth); | ^~~~~~~~~~~~~~ In file included from /usr/local/include/TGUI/Widget.hpp:40, from /usr/local/include/TGUI/Core.hpp:33, from /usr/local/include/TGUI/TGUI.hpp:30, from build/obj/game/boe.menu.hpp:7, from build/obj/game/boe.menus.linux.cpp:9: /usr/local/include/TGUI/Any.hpp:45:22: error: ‘any’ in namespace ‘std’ does not name a type 45 | using Any = std::any; | ^~~ /usr/local/include/TGUI/Any.hpp:45:17: note: ‘std::any’ is only available from C++17 onwards 45 | using Any = std::any; | ^~~ /usr/local/include/TGUI/Any.hpp:48:21: error: ‘Any’ does not name a type 48 | T AnyCast(const Any& obj) | ^~~ /usr/local/include/TGUI/Any.hpp: In function ‘T tgui::AnyCast(const int&)’: /usr/local/include/TGUI/Any.hpp:50:21: error: ‘any_cast’ is not a member of ‘std’ 50 | return std::any_cast<T>(obj); | ^~~~~~~~ /usr/local/include/TGUI/Any.hpp:50:21: note: ‘std::any_cast’ is only available from C++17 onwards /usr/local/include/TGUI/Any.hpp:50:31: error: expected primary-expression before ‘>’ token 50 | return std::any_cast<T>(obj); | ^ In file included from /usr/local/include/TGUI/ObjectConverter.hpp:31, from /usr/local/include/TGUI/Renderers/WidgetRenderer.hpp:31, from /usr/local/include/TGUI/Loading/Theme.hpp:30, from /usr/local/include/TGUI/Widget.hpp:42, from /usr/local/include/TGUI/Core.hpp:33, from /usr/local/include/TGUI/TGUI.hpp:30, from build/obj/game/boe.menu.hpp:7, from build/obj/game/boe.menus.linux.cpp:9: /usr/local/include/TGUI/Variant.hpp: At global scope: /usr/local/include/TGUI/Variant.hpp:209:14: error: ‘variant’ in namespace ‘std’ does not name a template type 209 | std::variant<Types...> m_variant; | ^~~~~~~ /usr/local/include/TGUI/Variant.hpp:209:9: note: ‘std::variant’ is only available from C++17 onwards 209 | std::variant<Types...> m_variant; | ^~~ /usr/local/include/TGUI/Variant.hpp: In constructor ‘tgui::Variant<Types>::Variant()’: /usr/local/include/TGUI/Variant.hpp:104:13: error: class ‘tgui::Variant<Types>’ does not have any field named ‘m_variant’ 104 | m_variant{} | ^~~~~~~~~ /usr/local/include/TGUI/Variant.hpp: In constructor ‘tgui::Variant<Types>::Variant(T&&)’: /usr/local/include/TGUI/Variant.hpp:120:13: error: class ‘tgui::Variant<Types>’ does not have any field named ‘m_variant’ 120 | m_variant{std::forward<T>(value)} | ^~~~~~~~~ /usr/local/include/TGUI/Variant.hpp: In member function ‘T& tgui::Variant<Types>::get()’: /usr/local/include/TGUI/Variant.hpp:137:32: error: ‘m_variant’ was not declared in this scope; did you mean ‘Variant’? 137 | return std::get<T>(m_variant); | ^~~~~~~~~ | Variant /usr/local/include/TGUI/Variant.hpp: In member function ‘const T& tgui::Variant<Types>::get() const’: /usr/local/include/TGUI/Variant.hpp:153:32: error: ‘m_variant’ was not declared in this scope; did you mean ‘Variant’? 153 | return std::get<T>(m_variant); | ^~~~~~~~~ | Variant In file included from /usr/local/include/TGUI/Core.hpp:33, from /usr/local/include/TGUI/TGUI.hpp:30, from build/obj/game/boe.menu.hpp:7, from build/obj/game/boe.menus.linux.cpp:9: /usr/local/include/TGUI/Widget.hpp: At global scope: /usr/local/include/TGUI/Widget.hpp:673:26: error: ‘Any’ has not been declared 673 | void setUserData(Any userData) | ^~~ /usr/local/include/TGUI/Widget.hpp:1163:9: error: ‘Optional’ does not name a type 1163 | Optional<Vector2f> m_rotationOrigin; | ^~~~~~~~ /usr/local/include/TGUI/Widget.hpp:1164:9: error: ‘Optional’ does not name a type 1164 | Optional<Vector2f> m_scaleOrigin; | ^~~~~~~~ /usr/local/include/TGUI/Widget.hpp:1231:9: error: ‘Any’ does not name a type 1231 | Any m_userData; | ^~~ /usr/local/include/TGUI/Widget.hpp: In member function ‘void tgui::Widget::setUserData(int)’: /usr/local/include/TGUI/Widget.hpp:675:13: error: ‘m_userData’ was not declared in this scope; did you mean ‘userData’? 675 | m_userData = std::move(userData); | ^~~~~~~~~~ | userData /usr/local/include/TGUI/Widget.hpp: In member function ‘DataType tgui::Widget::getUserData() const’: /usr/local/include/TGUI/Widget.hpp:686:38: error: ‘m_userData’ was not declared in this scope 686 | return AnyCast<DataType>(m_userData); | ^~~~~~~~~~ /usr/local/include/TGUI/Widget.hpp: In member function ‘bool tgui::Widget::hasUserData() const’: /usr/local/include/TGUI/Widget.hpp:696:20: error: ‘m_userData’ was not declared in this scope 696 | return m_userData.has_value(); | ^~~~~~~~~~ In file included from /usr/local/include/TGUI/Widgets/ComboBox.hpp:30, from /usr/local/include/TGUI/AllWidgets.hpp:37, from /usr/local/include/TGUI/TGUI.hpp:31, from build/obj/game/boe.menu.hpp:7, from build/obj/game/boe.menus.linux.cpp:9: /usr/local/include/TGUI/Widgets/ListBox.hpp: At global scope: /usr/local/include/TGUI/Widgets/ListBox.hpp:402:45: error: ‘Any’ has not been declared 402 | void setItemData(std::size_t index, Any data); | ^~~ /usr/local/include/TGUI/Widgets/ListBox.hpp:700:13: error: ‘Any’ does not name a type 700 | Any data; | ^~~ /usr/local/include/TGUI/Widgets/ListBox.hpp: In member function ‘DataType tgui::ListBox::getItemData(std::size_t) const’: /usr/local/include/TGUI/Widgets/ListBox.hpp:415:57: error: ‘const value_type’ {aka ‘const struct tgui::ListBox::Item’} has no member named ‘data’ 415 | return AnyCast<DataType>(m_items[index].data); | ^~~~ In file included from /usr/local/include/TGUI/Widgets/FileDialog.hpp:35, from /usr/local/include/TGUI/AllWidgets.hpp:39, from /usr/local/include/TGUI/TGUI.hpp:31, from build/obj/game/boe.menu.hpp:7, from build/obj/game/boe.menus.linux.cpp:9: /usr/local/include/TGUI/Widgets/ListView.hpp: At global scope: /usr/local/include/TGUI/Widgets/ListView.hpp:71:13: error: ‘Any’ does not name a type 71 | Any data; | ^~~ /usr/local/include/TGUI/Widgets/ListView.hpp:423:45: error: ‘Any’ has not been declared 423 | void setItemData(std::size_t index, Any data); | ^~~ /usr/local/include/TGUI/Widgets/ListView.hpp: In member function ‘DataType tgui::ListView::getItemData(std::size_t) const’: /usr/local/include/TGUI/Widgets/ListView.hpp:436:57: error: ‘const value_type’ {aka ‘const struct tgui::ListView::Item’} has no member named ‘data’ 436 | return AnyCast<DataType>(m_items[index].data); | ^~~~ In file included from build/obj/game/boe.menus.linux.cpp:9: build/obj/game/boe.menu.hpp: At global scope: build/obj/game/boe.menu.hpp:31:15: error: ‘Gui’ in namespace ‘tgui’ does not name a type 31 | tgui::Gui tgui; | ^~~ scons: *** [build/obj/game/boe.menus.linux.o] Error 1 Quote Link to comment Share on other sites More sharing options...
Understated Ur-Drakon Celtic Minstrel Posted June 26, 2023 Share Posted June 26, 2023 Those all seem to be errors with TGUI… what version of TGUI are you building against? Quote Link to comment Share on other sites More sharing options...
Tenderfoot Thahd MUSTDOS Posted June 26, 2023 Author Share Posted June 26, 2023 Version 0.9 Quote Link to comment Share on other sites More sharing options...
Tenderfoot Thahd MUSTDOS Posted June 26, 2023 Author Share Posted June 26, 2023 Oops, I may have downloaded 1.0 beta by mistake Quote Link to comment Share on other sites More sharing options...
Tenderfoot Thahd MUSTDOS Posted June 26, 2023 Author Share Posted June 26, 2023 Installed version 0.95 and got these instead In file included from /usr/local/include/TGUI/Vector2.hpp:30, from /usr/local/include/TGUI/Layout.hpp:30, from /usr/local/include/TGUI/Animation.hpp:29, from /usr/local/include/TGUI/Core.hpp:30, from /usr/local/include/TGUI/TGUI.hpp:30, from build/obj/game/boe.menu.hpp:7, from build/obj/game/boe.menus.linux.cpp:9: /usr/local/include/TGUI/String.hpp:87:18: error: ‘is_same_v’ is not a member of ‘std’; did you mean ‘is_same’? 87 | std::is_same_v<StringViewType, std::string_view> | ^~~~~~~~~ | is_same /usr/local/include/TGUI/String.hpp:87:18: error: ‘is_same_v’ is not a member of ‘std’; did you mean ‘is_same’? 87 | std::is_same_v<StringViewType, std::string_view> | ^~~~~~~~~ | is_same /usr/local/include/TGUI/String.hpp:87:49: error: ‘string_view’ is not a member of ‘std’ 87 | std::is_same_v<StringViewType, std::string_view> | ^~~~~~~~~~~ /usr/local/include/TGUI/String.hpp:87:49: note: ‘std::string_view’ is only available from C++17 onwards /usr/local/include/TGUI/String.hpp:87:49: error: ‘string_view’ is not a member of ‘std’ /usr/local/include/TGUI/String.hpp:87:49: note: ‘std::string_view’ is only available from C++17 onwards /usr/local/include/TGUI/String.hpp:87:60: error: template argument 1 is invalid 87 | std::is_same_v<StringViewType, std::string_view> | ^ /usr/local/include/TGUI/String.hpp:87:60: error: template argument 2 is invalid /usr/local/include/TGUI/String.hpp:359:55: error: ‘IsStringViewType’ does not name a type; did you mean ‘StringViewType’? 359 | template <typename StringViewType, typename = IsStringViewType<StringViewType>> | ^~~~~~~~~~~~~~~~ | StringViewType /usr/local/include/TGUI/String.hpp:359:71: error: expected ‘>’ before ‘<’ token 359 | template <typename StringViewType, typename = IsStringViewType<StringViewType>> | ^ /usr/local/include/TGUI/String.hpp:365:55: error: ‘IsStringViewType’ does not name a type; did you mean ‘StringViewType’? 365 | template <typename StringViewType, typename = IsStringViewType<StringViewType>> | ^~~~~~~~~~~~~~~~ | StringViewType /usr/local/include/TGUI/String.hpp:365:71: error: expected ‘>’ before ‘<’ token 365 | template <typename StringViewType, typename = IsStringViewType<StringViewType>> | ^ /usr/local/include/TGUI/String.hpp:394:18: error: expected type-specifier 394 | operator std::u32string_view() const noexcept | ^~~ /usr/local/include/TGUI/String.hpp:736:28: error: ‘std::u32string_view’ has not been declared 736 | bool contains(std::u32string_view sv) const noexcept; | ^~~~~~~~~~~~~~ /usr/local/include/TGUI/String.hpp:771:31: error: ‘std::u32string_view’ has not been declared 771 | std::size_t find(std::u32string_view sv, std::size_t pos = 0) const noexcept; | ^~~~~~~~~~~~~~ /usr/local/include/TGUI/String.hpp:1466:29: error: ‘u32string_view’ in namespace ‘std’ does not name a type; did you mean ‘u32string’? 1466 | using StringView = std::u32string_view; | ^~~~~~~~~~~~~~ | u32string /usr/local/include/TGUI/String.hpp:1467:33: error: ‘string_view’ in namespace ‘std’ does not name a type 1467 | using CharStringView = std::string_view; | ^~~~~~~~~~~ /usr/local/include/TGUI/String.hpp:1467:28: note: ‘std::string_view’ is only available from C++17 onwards 1467 | using CharStringView = std::string_view; | ^~~ In file included from /usr/local/include/TGUI/Timer.hpp:31, from /usr/local/include/TGUI/Core.hpp:32, from /usr/local/include/TGUI/TGUI.hpp:30, from build/obj/game/boe.menu.hpp:7, from build/obj/game/boe.menus.linux.cpp:9: /usr/local/include/TGUI/Optional.hpp:40:27: error: ‘optional’ in namespace ‘std’ does not name a template type 40 | using Optional = std::optional<T>; | ^~~~~~~~ /usr/local/include/TGUI/Optional.hpp:40:22: note: ‘std::optional’ is only available from C++17 onwards 40 | using Optional = std::optional<T>; | ^~~ In file included from /usr/local/include/TGUI/Core.hpp:32, from /usr/local/include/TGUI/TGUI.hpp:30, from build/obj/game/boe.menu.hpp:7, from build/obj/game/boe.menus.linux.cpp:9: /usr/local/include/TGUI/Timer.hpp:162:16: error: ‘Optional’ does not name a type 162 | static Optional<Duration> getNextScheduledTime(); | ^~~~~~~~ In file included from /usr/local/include/TGUI/Global.hpp:35, from /usr/local/include/TGUI/Signal.hpp:31, from /usr/local/include/TGUI/Widget.hpp:31, from /usr/local/include/TGUI/Core.hpp:33, from /usr/local/include/TGUI/TGUI.hpp:30, from build/obj/game/boe.menu.hpp:7, from build/obj/game/boe.menus.linux.cpp:9: /usr/local/include/TGUI/Filesystem.hpp:80:64: error: ‘is_same_v’ is not a member of ‘std’; did you mean ‘is_same’? 80 | template <typename PathType, std::enable_if_t<std::is_same_v<PathType, std::filesystem::path>, int> = 0> | ^~~~~~~~~ | is_same /usr/local/include/TGUI/Filesystem.hpp:80:64: error: ‘is_same_v’ is not a member of ‘std’; did you mean ‘is_same’? 80 | template <typename PathType, std::enable_if_t<std::is_same_v<PathType, std::filesystem::path>, int> = 0> | ^~~~~~~~~ | is_same /usr/local/include/TGUI/Filesystem.hpp:80:89: error: ‘filesystem’ is not a member of ‘std’; did you mean ‘system’? 80 | template <typename PathType, std::enable_if_t<std::is_same_v<PathType, std::filesystem::path>, int> = 0> | ^~~~~~~~~~ | system /usr/local/include/TGUI/Filesystem.hpp:80:89: error: ‘filesystem’ is not a member of ‘std’; did you mean ‘system’? 80 | template <typename PathType, std::enable_if_t<std::is_same_v<PathType, std::filesystem::path>, int> = 0> | ^~~~~~~~~~ | system /usr/local/include/TGUI/Filesystem.hpp:80:105: error: template argument 1 is invalid 80 | template <typename PathType, std::enable_if_t<std::is_same_v<PathType, std::filesystem::path>, int> = 0> | ^ /usr/local/include/TGUI/Filesystem.hpp:80:105: error: template argument 2 is invalid /usr/local/include/TGUI/Filesystem.hpp:80:113: error: expected unqualified-id before ‘=’ token 80 | template <typename PathType, std::enable_if_t<std::is_same_v<PathType, std::filesystem::path>, int> = 0> | ^ /usr/local/include/TGUI/Filesystem.hpp:171:13: error: ‘operator const int’ does not name a type 171 | operator const std::filesystem::path&() const | ^~~~~~~~ /usr/local/include/TGUI/Filesystem.hpp:247:18: error: ‘filesystem’ in namespace ‘std’ does not name a type; did you mean ‘system’? 247 | std::filesystem::path m_path; | ^~~~~~~~~~ | system In file included from /usr/local/include/TGUI/Signal.hpp:31, from /usr/local/include/TGUI/Widget.hpp:31, from /usr/local/include/TGUI/Core.hpp:33, from /usr/local/include/TGUI/TGUI.hpp:30, from build/obj/game/boe.menu.hpp:7, from build/obj/game/boe.menus.linux.cpp:9: /usr/local/include/TGUI/Global.hpp:162:59: error: ‘CharStringView’ does not name a type 162 | TGUI_API bool writeFile(const String& filename, const CharStringView& textToWrite); | ^~~~~~~~~~~~~~ In file included from /usr/local/include/TGUI/Signal.hpp:33, from /usr/local/include/TGUI/Widget.hpp:31, from /usr/local/include/TGUI/Core.hpp:33, from /usr/local/include/TGUI/TGUI.hpp:30, from build/obj/game/boe.menu.hpp:7, from build/obj/game/boe.menus.linux.cpp:9: /usr/local/include/TGUI/Color.hpp:266:43: error: ‘StringView’ was not declared in this scope; did you mean ‘String’? 266 | static const std::array<std::pair<StringView, Color>, 9> colorNamesMap; | ^~~~~~~~~~ | String /usr/local/include/TGUI/Color.hpp:266:60: error: template argument 1 is invalid 266 | static const std::array<std::pair<StringView, Color>, 9> colorNamesMap; | ^ /usr/local/include/TGUI/Color.hpp:266:64: error: template argument 1 is invalid 266 | static const std::array<std::pair<StringView, Color>, 9> colorNamesMap; | ^ /usr/local/include/TGUI/Color.hpp:313:49: error: ‘StringView’ was not declared in this scope; did you mean ‘String’? 313 | inline constexpr const std::array<std::pair<StringView, Color>, 9> Color::colorNamesMap | ^~~~~~~~~~ | String /usr/local/include/TGUI/Color.hpp:313:66: error: template argument 1 is invalid 313 | inline constexpr const std::array<std::pair<StringView, Color>, 9> Color::colorNamesMap | ^ /usr/local/include/TGUI/Color.hpp:313:70: error: template argument 1 is invalid 313 | inline constexpr const std::array<std::pair<StringView, Color>, 9> Color::colorNamesMap | ^ /usr/local/include/TGUI/Color.hpp:324:5: error: too many braces around scalar initializer for type ‘const int’ 324 | }; | ^ In file included from /usr/local/include/TGUI/Texture.hpp:31, from /usr/local/include/TGUI/Sprite.hpp:29, from /usr/local/include/TGUI/Widget.hpp:33, from /usr/local/include/TGUI/Core.hpp:33, from /usr/local/include/TGUI/TGUI.hpp:30, from build/obj/game/boe.menu.hpp:7, from build/obj/game/boe.menus.linux.cpp:9: /usr/local/include/TGUI/TextureData.hpp:50:9: error: ‘Optional’ does not name a type 50 | Optional<SvgImage> svgImage; | ^~~~~~~~ In file included from /usr/local/include/TGUI/Widget.hpp:40, from /usr/local/include/TGUI/Core.hpp:33, from /usr/local/include/TGUI/TGUI.hpp:30, from build/obj/game/boe.menu.hpp:7, from build/obj/game/boe.menus.linux.cpp:9: /usr/local/include/TGUI/Any.hpp:42:22: error: ‘any’ in namespace ‘std’ does not name a type 42 | using Any = std::any; | ^~~ /usr/local/include/TGUI/Any.hpp:42:17: note: ‘std::any’ is only available from C++17 onwards 42 | using Any = std::any; | ^~~ /usr/local/include/TGUI/Any.hpp:45:21: error: ‘Any’ does not name a type 45 | T AnyCast(const Any& obj) | ^~~ /usr/local/include/TGUI/Any.hpp: In function ‘T tgui::AnyCast(const int&)’: /usr/local/include/TGUI/Any.hpp:47:21: error: ‘any_cast’ is not a member of ‘std’ 47 | return std::any_cast<T>(obj); | ^~~~~~~~ /usr/local/include/TGUI/Any.hpp:47:21: note: ‘std::any_cast’ is only available from C++17 onwards /usr/local/include/TGUI/Any.hpp:47:31: error: expected primary-expression before ‘>’ token 47 | return std::any_cast<T>(obj); | ^ In file included from /usr/local/include/TGUI/ObjectConverter.hpp:31, from /usr/local/include/TGUI/Renderers/WidgetRenderer.hpp:31, from /usr/local/include/TGUI/Loading/Theme.hpp:30, from /usr/local/include/TGUI/Widget.hpp:42, from /usr/local/include/TGUI/Core.hpp:33, from /usr/local/include/TGUI/TGUI.hpp:30, from build/obj/game/boe.menu.hpp:7, from build/obj/game/boe.menus.linux.cpp:9: /usr/local/include/TGUI/Variant.hpp: At global scope: /usr/local/include/TGUI/Variant.hpp:205:14: error: ‘variant’ in namespace ‘std’ does not name a template type 205 | std::variant<Types...> m_variant; | ^~~~~~~ /usr/local/include/TGUI/Variant.hpp:205:9: note: ‘std::variant’ is only available from C++17 onwards 205 | std::variant<Types...> m_variant; | ^~~ /usr/local/include/TGUI/Variant.hpp: In constructor ‘tgui::Variant<Types>::Variant()’: /usr/local/include/TGUI/Variant.hpp:100:13: error: class ‘tgui::Variant<Types>’ does not have any field named ‘m_variant’ 100 | m_variant{} | ^~~~~~~~~ /usr/local/include/TGUI/Variant.hpp: In constructor ‘tgui::Variant<Types>::Variant(const T&)’: /usr/local/include/TGUI/Variant.hpp:116:13: error: class ‘tgui::Variant<Types>’ does not have any field named ‘m_variant’ 116 | m_variant{value} | ^~~~~~~~~ /usr/local/include/TGUI/Variant.hpp: In member function ‘T& tgui::Variant<Types>::get()’: /usr/local/include/TGUI/Variant.hpp:133:32: error: ‘m_variant’ was not declared in this scope; did you mean ‘Variant’? 133 | return std::get<T>(m_variant); | ^~~~~~~~~ | Variant /usr/local/include/TGUI/Variant.hpp: In member function ‘const T& tgui::Variant<Types>::get() const’: /usr/local/include/TGUI/Variant.hpp:149:32: error: ‘m_variant’ was not declared in this scope; did you mean ‘Variant’? 149 | return std::get<T>(m_variant); | ^~~~~~~~~ | Variant In file included from /usr/local/include/TGUI/Core.hpp:33, from /usr/local/include/TGUI/TGUI.hpp:30, from build/obj/game/boe.menu.hpp:7, from build/obj/game/boe.menus.linux.cpp:9: /usr/local/include/TGUI/Widget.hpp: At global scope: /usr/local/include/TGUI/Widget.hpp:646:26: error: ‘Any’ has not been declared 646 | void setUserData(Any userData) | ^~~ /usr/local/include/TGUI/Widget.hpp:1090:9: error: ‘Optional’ does not name a type 1090 | Optional<Vector2f> m_rotationOrigin; | ^~~~~~~~ /usr/local/include/TGUI/Widget.hpp:1091:9: error: ‘Optional’ does not name a type 1091 | Optional<Vector2f> m_scaleOrigin; | ^~~~~~~~ /usr/local/include/TGUI/Widget.hpp:1151:9: error: ‘Any’ does not name a type 1151 | Any m_userData; | ^~~ /usr/local/include/TGUI/Widget.hpp: In member function ‘void tgui::Widget::setUserData(int)’: /usr/local/include/TGUI/Widget.hpp:648:13: error: ‘m_userData’ was not declared in this scope; did you mean ‘userData’? 648 | m_userData = std::move(userData); | ^~~~~~~~~~ | userData /usr/local/include/TGUI/Widget.hpp: In member function ‘T tgui::Widget::getUserData() const’: /usr/local/include/TGUI/Widget.hpp:659:31: error: ‘m_userData’ was not declared in this scope 659 | return AnyCast<T>(m_userData); | ^~~~~~~~~~ In file included from /usr/local/include/TGUI/Widgets/ComboBox.hpp:30, from /usr/local/include/TGUI/AllWidgets.hpp:38, from /usr/local/include/TGUI/TGUI.hpp:31, from build/obj/game/boe.menu.hpp:7, from build/obj/game/boe.menus.linux.cpp:9: /usr/local/include/TGUI/Widgets/ListBox.hpp: At global scope: /usr/local/include/TGUI/Widgets/ListBox.hpp:411:45: error: ‘Any’ has not been declared 411 | void setItemData(std::size_t index, Any data); | ^~~ /usr/local/include/TGUI/Widgets/ListBox.hpp:714:13: error: ‘Any’ does not name a type 714 | Any data; | ^~~ /usr/local/include/TGUI/Widgets/ListBox.hpp: In member function ‘T tgui::ListBox::getItemData(std::size_t) const’: /usr/local/include/TGUI/Widgets/ListBox.hpp:424:50: error: ‘const value_type’ {aka ‘const struct tgui::ListBox::Item’} has no member named ‘data’ 424 | return AnyCast<T>(m_items[index].data); | ^~~~ In file included from /usr/local/include/TGUI/Widgets/FileDialog.hpp:35, from /usr/local/include/TGUI/AllWidgets.hpp:40, from /usr/local/include/TGUI/TGUI.hpp:31, from build/obj/game/boe.menu.hpp:7, from build/obj/game/boe.menus.linux.cpp:9: /usr/local/include/TGUI/Widgets/ListView.hpp: At global scope: /usr/local/include/TGUI/Widgets/ListView.hpp:65:13: error: ‘Any’ does not name a type 65 | Any data; | ^~~ /usr/local/include/TGUI/Widgets/ListView.hpp:410:45: error: ‘Any’ has not been declared 410 | void setItemData(std::size_t index, Any data); | ^~~ /usr/local/include/TGUI/Widgets/ListView.hpp: In member function ‘T tgui::ListView::getItemData(std::size_t) const’: /usr/local/include/TGUI/Widgets/ListView.hpp:423:50: error: ‘const value_type’ {aka ‘const struct tgui::ListView::Item’} has no member named ‘data’ 423 | return AnyCast<T>(m_items[index].data); | ^~~~ scons: *** [build/obj/game/boe.menus.linux.o] Error 1 Quote Link to comment Share on other sites More sharing options...
Understated Ur-Drakon Celtic Minstrel Posted June 28, 2023 Share Posted June 28, 2023 Did you install TGUI from a package repository, or did you build it from source? Those errors all look like a C++ version issue – if TGUI is built for C++11, then it should work. Conversely, if you were to build the game for C++17, it should also work. Keep in mind that I have a policy of keeping it C++11-compatible, so if you wish to contribute, it would be preferable to have TGUI built for C++11; however, if you only want to build the game and try it out, it might be easier to force the build process to use C++17. Quote Link to comment Share on other sites More sharing options...
Tenderfoot Thahd MUSTDOS Posted June 29, 2023 Author Share Posted June 29, 2023 I built it since Slackware doesn't have TGUI in it's repository. So I should recompile with C++11 next time. Quote Link to comment Share on other sites More sharing options...
Tenderfoot Thahd MUSTDOS Posted July 6, 2023 Author Share Posted July 6, 2023 Weird; using ccmake with TGUI-0.95, it gave me an error of needing at least C++14, so I used it. All is well until I tried building with scons and got 2023-06-26-|21:15:36| mustdos:/home/mustdos/Desktop/Games/git/cboe> scons scons: Reading SConscript files ... Building for: posix Using toolchain: default C++ compiler: g++ Checking whether the C compiler works... (cached) yes Checking whether the C++ compiler works... (cached) yes Checking for C library z... (cached) yes Checking for C++ header file boost/lexical_cast.hpp... (cached) yes Checking for C++ header file boost/optional.hpp... (cached) yes Checking for C++ header file boost/ptr_container/ptr_container.hpp... (cached) yes Checking for C++ header file boost/any.hpp... (cached) yes Checking for C++ header file boost/math_fwd.hpp... (cached) yes Checking for C++ header file boost/spirit/include/classic.hpp... (cached) yes Checking for C++ library boost_system... (cached) yes Checking for C++ library boost_filesystem... (cached) yes Checking for C++ library sfml-system... (cached) yes Checking for C++ library sfml-window... (cached) yes Checking for C++ library sfml-audio... (cached) yes Checking for C++ library sfml-graphics... (cached) yes scons: done reading SConscript files. scons: Building targets ... g++ -o build/obj/game/boe.menus.linux.o -c -std=c++14 -include global.hpp -DTIXML_USE_TICPP -Isrc -Isrc/fileio/gzstream -Isrc/fileio/xml-parser -Ibuild/obj/game/deps/Catch2/single_include build/obj/game/boe.menus.linux.cpp In file included from build/obj/game/boe.menus.linux.cpp:9: build/obj/game/boe.menu.hpp:31:15: error: ‘Gui’ in namespace ‘tgui’ does not name a type 31 | tgui::Gui tgui; | ^~~ scons: *** [build/obj/game/boe.menus.linux.o] Error 1 scons: building terminated because of errors. 2023-06-26-|21:15:36| mustdos:/home/mustdos/Desktop/Games/git/cboe> Quote Link to comment Share on other sites More sharing options...
Understated Ur-Drakon Celtic Minstrel Posted July 8, 2023 Share Posted July 8, 2023 C++14 might be close enough, though you probably need to build the whole game with C++14 in that case. I'm not really sure why it would complain that tgui::Gui is not defined, but maybe there's a missing include somehow – it appears to be defined in "TGUI/Backends/SFML.hpp". Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.