<86>Dec 25 04:50:22 userdel[379157]: delete user 'rooter' <86>Dec 25 04:50:22 userdel[379157]: removed group 'rooter' owned by 'rooter' <86>Dec 25 04:50:22 userdel[379157]: removed shadow group 'rooter' owned by 'rooter' <86>Dec 25 04:50:22 groupadd[379233]: group added to /etc/group: name=rooter, GID=1814 <86>Dec 25 04:50:22 groupadd[379233]: group added to /etc/gshadow: name=rooter <86>Dec 25 04:50:22 groupadd[379233]: new group: name=rooter, GID=1814 <86>Dec 25 04:50:22 useradd[379275]: new user: name=rooter, UID=1814, GID=1814, home=/root, shell=/bin/bash, from=none <86>Dec 25 04:50:22 userdel[379689]: delete user 'builder' <86>Dec 25 04:50:22 groupadd[379765]: group added to /etc/group: name=builder, GID=1815 <86>Dec 25 04:50:22 groupadd[379765]: group added to /etc/gshadow: name=builder <86>Dec 25 04:50:22 groupadd[379765]: new group: name=builder, GID=1815 <86>Dec 25 04:50:22 useradd[379820]: new user: name=builder, UID=1815, GID=1815, home=/usr/src, shell=/bin/bash, from=none <13>Dec 25 04:50:37 rpmi: libexpat-2.6.4-alt1 sisyphus+365521.100.1.1 1734700243 installed <13>Dec 25 04:50:37 rpmi: libglvnd-7:1.7.0-alt1 sisyphus+330949.100.1.1 1696424893 installed <13>Dec 25 04:50:37 rpmi: libwayland-client-1.23.1-alt1.1 sisyphus+356019.140.3.1 1724572111 installed <13>Dec 25 04:50:37 rpmi: libidn2-2.3.7-alt1 sisyphus+339505.100.1.2 1706718968 installed <13>Dec 25 04:50:37 rpmi: libnettle8-3.9.1-alt1 sisyphus+322548.100.1.2 1686176879 installed <13>Dec 25 04:50:37 rpmi: libogg-1.3.5-alt1 sisyphus+278100.3400.1.1 1626058929 installed <13>Dec 25 04:50:37 rpmi: perl-HTTP-Date-6.06-alt1 sisyphus+324527.100.1.1 1688834564 installed <13>Dec 25 04:50:37 rpmi: perl-XML-NamespaceSupport-1.12-alt1 1491296348 installed <13>Dec 25 04:50:37 rpmi: libpng16-1.6.42-alt2 sisyphus+339555.100.1.1 1706781682 installed <13>Dec 25 04:50:37 rpmi: libfribidi-1.0.16-alt1 sisyphus+358393.100.1.1 1727333692 installed <13>Dec 25 04:50:37 rpmi: liblcms2-2.16-alt1 sisyphus+335676.100.1.1 1701682597 installed <13>Dec 25 04:50:37 rpmi: libwayland-server-1.23.1-alt1.1 sisyphus+356019.140.3.1 1724572111 installed <13>Dec 25 04:50:37 rpmi: perl-LWP-MediaTypes-6.04-alt1 sisyphus+225468.100.1.1 1553186684 installed <13>Dec 25 04:50:37 rpmi: perl-Compress-Raw-Zlib-2.206-alt1 sisyphus+335067.600.1.1 1700901499 installed <13>Dec 25 04:50:37 rpmi: perl-libnet-1:3.15-alt1 sisyphus+317310.100.1.1 1679580208 installed <13>Dec 25 04:50:37 rpmi: perl-XML-SAX-Base-1.09-alt1 1494364363 installed <13>Dec 25 04:50:37 rpmi: libjpeg-2:3.0.2-alt2.1 sisyphus+340135.100.1.1 1707449145 installed <13>Dec 25 04:50:37 rpmi: shared-mime-info-2.4-alt1 sisyphus+334259.100.1.1 1699787316 installed <13>Dec 25 04:50:37 rpmi: libp11-kit-1:0.25.5-alt1 sisyphus+352553.100.1.1 1720622573 installed <13>Dec 25 04:50:37 rpmi: libtasn1-4.19.0-alt3 sisyphus+327816.100.1.1 1692802615 installed <13>Dec 25 04:50:37 rpmi: libatk-2.54.0-alt1 sisyphus+357735.600.3.1 1726642126 installed <13>Dec 25 04:50:37 rpmi: perl-File-Listing-6.16-alt1 sisyphus+325783.100.1.1 1690559356 installed <13>Dec 25 04:50:37 rpmi: libflac12-1.4.3-alt2 sisyphus+343354.100.1.1 1711118098 installed <13>Dec 25 04:50:38 rpmi: libvorbis-1.3.7-alt1 sisyphus+275738.100.1.1 1624751601 installed <13>Dec 25 04:50:38 rpmi: libhogweed6-3.9.1-alt1 sisyphus+322548.100.1.2 1686176879 installed <13>Dec 25 04:50:38 rpmi: libgnutls30-3.8.8-alt2 sisyphus+364832.100.1.1 1734007749 installed <13>Dec 25 04:50:38 rpmi: libngtcp2.16-1.10.0-alt1 sisyphus+366376.200.1.1 1735020753 installed <13>Dec 25 04:50:38 rpmi: libngtcp2_crypto_gnutls8-1.10.0-alt1 sisyphus+366376.200.1.1 1735020753 installed <13>Dec 25 04:50:38 rpmi: libwayland-cursor-1.23.1-alt1.1 sisyphus+356019.140.3.1 1724572111 installed <13>Dec 25 04:50:38 rpmi: libwayland-egl-4:18.1.0-alt1.1 sisyphus+356019.140.3.1 1724572111 installed <13>Dec 25 04:50:38 rpmi: libGLES-7:1.7.0-alt1 sisyphus+330949.100.1.1 1696424893 installed <13>Dec 25 04:50:38 rpmi: libOpenGL-7:1.7.0-alt1 sisyphus+330949.100.1.1 1696424893 installed <13>Dec 25 04:50:38 rpmi: libyaml2-0.2.5-alt1 sisyphus+278391.100.1.1 1626094928 installed <13>Dec 25 04:50:38 rpmi: libxkbcommon-1.7.0-alt1.1 sisyphus+343672.100.1.1 1711490810 installed <13>Dec 25 04:50:38 rpmi: libdatrie-0.2.13-alt1_7 sisyphus+328221.100.1.1 1693336966 installed <13>Dec 25 04:50:38 rpmi: libthai-0.1.29-alt1_6 sisyphus+328230.100.1.2 1693348044 installed <13>Dec 25 04:50:38 rpmi: libepoxy-1.5.10-alt1 sisyphus+296853.200.2.1 1647631866 installed <13>Dec 25 04:50:38 rpmi: libsqlite3-3.47.1-alt1 sisyphus+365248.200.3.1 1734527620 installed <13>Dec 25 04:50:38 rpmi: libusb-1.0.27-alt1 sisyphus+347412.100.1.1 1714739651 installed <13>Dec 25 04:50:38 rpmi: libgudev-1:238-alt1 sisyphus+324364.100.1.1 1688646144 installed <13>Dec 25 04:50:38 rpmi: publicsuffix-list-dafsa-20240911-alt1 sisyphus+357399.100.1.1 1726160479 installed <13>Dec 25 04:50:38 rpmi: libpsl-0.21.5-alt1 sisyphus+338474.100.1.1 1705684769 installed <13>Dec 25 04:50:38 rpmi: libnghttp3.9-1.7.0-alt1 sisyphus+366376.100.1.1 1735020696 installed <13>Dec 25 04:50:38 rpmi: libnghttp2-1.64.0-alt1 sisyphus+363795.200.2.1 1733118555 installed <13>Dec 25 04:50:38 rpmi: openldap-common-2.6.9-alt1 sisyphus+364781.100.1.1 1733971238 installed <13>Dec 25 04:50:38 rpmi: libntlm-1.5-alt1 sisyphus+278100.3300.1.1 1626058899 installed <13>Dec 25 04:50:38 rpmi: libidn-1.37-alt2 sisyphus+300849.100.1.1 1653769687 installed <13>Dec 25 04:50:38 rpmi: libverto-0.3.2-alt1_1 sisyphus+321176.2200.10.2 1684803947 installed <13>Dec 25 04:50:38 rpmi: liblmdb-0.9.33-alt1 sisyphus+360625.100.1.1 1729819640 installed <13>Dec 25 04:50:38 rpmi: libkeyutils-1.6.3-alt1 sisyphus+346336.200.2.2 1716472658 installed <13>Dec 25 04:50:38 rpmi: libcom_err-1.47.1.0.10.ad56-alt2 sisyphus+363497.200.3.1 1732729908 installed <13>Dec 25 04:50:38 rpmi: libpixman-3:0.44.2-alt1 sisyphus+364211.100.1.1 1733467622 installed <13>Dec 25 04:50:38 rpmi: libbrotlicommon-1.1.0-alt1 sisyphus+328501.100.1.1 1693598419 installed <13>Dec 25 04:50:38 rpmi: libbrotlidec-1.1.0-alt1 sisyphus+328501.100.1.1 1693598419 installed <13>Dec 25 04:50:38 rpmi: libgraphite2-1.3.14-alt2.1 sisyphus+279571.100.1.2 1626605111 installed <13>Dec 25 04:50:38 rpmi: libharfbuzz-10.1.0-alt1 sisyphus+361773.100.1.1 1730824042 installed <13>Dec 25 04:50:38 rpmi: libfreetype-2.13.3-alt1 sisyphus+355656.100.1.1 1724221064 installed <13>Dec 25 04:50:38 rpmi: libfontconfig1-2.15.0-alt1 sisyphus+355771.100.2.3 1724337298 installed <13>Dec 25 04:50:38 rpmi: xorg-proto-devel-2024.1-alt1 sisyphus+343583.40.1.1 1711440649 installed <13>Dec 25 04:50:38 rpmi: libxshmfence-1.3.2-alt1 sisyphus+311428.400.1.1 1670577525 installed <13>Dec 25 04:50:38 rpmi: libsensors3-3.6.0-alt4 sisyphus+366234.100.1.1 1734814779 installed <13>Dec 25 04:50:38 rpmi: libspirv-tools0-1:2024.4-alt0.1 sisyphus+365035.200.5.1 1734354502 installed <13>Dec 25 04:50:38 rpmi: llvm18.1-filesystem-18.1.8-alt0.4 sisyphus+364551.100.1.1 1733763186 installed <13>Dec 25 04:50:38 rpmi: llvm18.1-polly-18.1.8-alt0.4 sisyphus+364551.100.1.1 1733763186 installed <13>Dec 25 04:50:38 rpmi: libedit3-3.1.20230828-alt1 sisyphus+330914.200.3.1 1696922743 installed <13>Dec 25 04:50:38 rpmi: llvm18.1-gold-18.1.8-alt0.4 sisyphus+364551.100.1.1 1733763186 installed <13>Dec 25 04:50:40 rpmi: llvm18.1-libs-18.1.8-alt0.4 sisyphus+364551.100.1.1 1733763186 installed <13>Dec 25 04:50:40 rpmi: libpciaccess-1:0.18.1-alt1 sisyphus+343583.300.1.1 1711440789 installed <13>Dec 25 04:50:40 rpmi: libdrm-1:2.4.124-alt1 sisyphus+364215.100.1.1 1733469813 installed <13>Dec 25 04:50:40 rpmi: libgbm-4:24.3.2-alt1 sisyphus+365536.100.1.1 1734711581 installed <13>Dec 25 04:50:40 rpmi: perl-Try-Tiny-0.31-alt1 sisyphus+290597.100.1.1 1637915507 installed <13>Dec 25 04:50:40 rpmi: perl-IO-Socket-IP-0.42-alt1 sisyphus+325815.100.1.2 1690571193 installed <13>Dec 25 04:50:40 rpmi: perl-Module-Load-0.36-alt1 sisyphus+258992.100.1.1 1601543407 installed <13>Dec 25 04:50:40 rpmi: perl-Compress-Raw-Bzip2-2.210-alt1 sisyphus+343108.100.1.3 1710881036 installed <13>Dec 25 04:50:40 rpmi: perl-IO-Compress-Brotli-2:0.004001-alt3 sisyphus+335067.1200.1.1 1700901589 installed <13>Dec 25 04:50:40 rpmi: perl-Clone-0.46-alt1 sisyphus+335067.1100.1.1 1700901562 installed <13>Dec 25 04:50:40 rpmi: perl-HTML-Tagset-3.24-alt1 sisyphus+343117.100.1.3 1710883587 installed <13>Dec 25 04:50:40 rpmi: perl-Term-ANSIColor-5.01-alt1 sisyphus+244783.100.1.2 1579747505 installed <13>Dec 25 04:50:40 rpmi: perl-Data-Dump-1.25-alt1 sisyphus+276551.100.1.1 1625126880 installed <13>Dec 25 04:50:40 rpmi: perl-Filter-1.64-alt1 sisyphus+335067.400.1.1 1700901412 installed <13>Dec 25 04:50:40 rpmi: perl-Encode-3.21-alt1 sisyphus+343095.100.1.1 1710875477 installed <13>Dec 25 04:50:40 rpmi: perl-URI-5.27-alt1 sisyphus+340901.100.1.1 1708180683 installed <13>Dec 25 04:50:40 rpmi: perl-IO-Compress-2.206-alt1 sisyphus+325819.100.1.1 1690563199 installed <13>Dec 25 04:50:40 rpmi: perl-Net-HTTP-6.23-alt1 sisyphus+323470.100.1.1 1687422469 installed <13>Dec 25 04:50:40 rpmi: perl-HTML-Parser-3.82-alt1 sisyphus+343116.100.1.3 1710883258 installed <13>Dec 25 04:50:40 rpmi: perl-WWW-RobotRules-6.02-alt1 1329756211 installed <13>Dec 25 04:50:40 rpmi: perl-Encode-Locale-1.05-alt1 1444608613 installed <13>Dec 25 04:50:40 rpmi: perl-IO-HTML-1.004-alt1 sisyphus+258983.100.1.1 1601542619 installed <13>Dec 25 04:50:40 rpmi: perl-HTTP-Message-6.45-alt1 sisyphus+330728.100.1.1 1696162276 installed <13>Dec 25 04:50:40 rpmi: perl-HTTP-Negotiate-6.01-alt1 1329760563 installed <13>Dec 25 04:50:40 rpmi: perl-libwww-6.77-alt1 sisyphus+343120.100.1.2 1710884405 installed <13>Dec 25 04:50:40 rpmi: perl-XML-LibXML-2.0210-alt8 sisyphus+355798.100.1.1 1724340088 installed <13>Dec 25 04:50:40 rpmi: perl-XML-SAX-1.02-alt1 sisyphus+232322.100.1.1 1560758406 installed <13>Dec 25 04:50:40 rpmi: perl-XML-Simple-2.25-alt2 sisyphus+257498.100.1.1 1599324034 installed <13>Dec 25 04:50:40 rpmi: icon-naming-utils-0.8.90-alt1 sisyphus+276851.100.1.1 1625243947 installed <13>Dec 25 04:50:40 rpmi: icon-theme-adwaita-47.0-alt1 sisyphus+357735.1000.3.1 1726642413 installed <13>Dec 25 04:50:40 rpmi: usbids-20240206-alt1 sisyphus+339943.100.1.1 1707270512 installed <13>Dec 25 04:50:40 rpmi: pciids-20241129-alt1 sisyphus+363612.100.1.1 1732846470 installed <13>Dec 25 04:50:41 rpmi: hwdata-0.384-alt1 sisyphus+354460.100.1.1 1722898493 installed <13>Dec 25 04:50:41 rpmi: libwebp7-1.5.0-alt1 sisyphus+365488.100.1.1 1734677703 installed <13>Dec 25 04:50:41 rpmi: libdeflate-1.22-alt1 sisyphus+359192.100.1.1 1728330316 installed <13>Dec 25 04:50:41 rpmi: libtiff5-4.4.0-alt4 sisyphus+322581.100.1.2 1686180089 installed <13>Dec 25 04:50:41 rpmi: libgdk-pixbuf-locales-2.42.12-alt1 sisyphus+348142.100.1.1 1715791856 installed <13>Dec 25 04:50:41 rpmi: gtk+3-themes-incompatible-3.20-alt3 1461944560 installed <13>Dec 25 04:50:41 rpmi: libmpdec3-2.5.1-alt3 sisyphus+314490.500.5.1 1675432004 installed <13>Dec 25 04:50:41 rpmi: libgdbm-1.8.3-alt10 sisyphus+346222.200.3.2 1716468404 installed <13>Dec 25 04:50:41 rpmi: libb2-0.98.1-alt1_1 sisyphus+291614.100.1.1 1638962877 installed <13>Dec 25 04:50:41 rpmi: xml-utils-1:2.12.9-alt1 sisyphus+355784.100.1.1 1724333686 installed <13>Dec 25 04:50:41 rpmi: rpm-build-gir-0.7.3-alt3.1 sisyphus+319393.100.1.1 1682538783 installed <13>Dec 25 04:50:41 rpmi: gcc-c++-common-1.4.28-alt1 sisyphus+348678.100.1.1 1716396142 installed <13>Dec 25 04:50:41 rpmi: libstdc++14-devel-14.2.1-alt1 sisyphus+360995.100.1.1 1730131018 installed <13>Dec 25 04:50:42 rpmi: gcc14-c++-14.2.1-alt1 sisyphus+360995.100.1.1 1730131018 installed <13>Dec 25 04:50:42 rpmi: libdevmapper-1.02.202-alt1 sisyphus+361775.200.5.1 1730990757 installed <13>Dec 25 04:50:42 rpmi: mount-2.39.2-alt1 sisyphus+327286.4500.14.1 1711486324 installed <13>Dec 25 04:50:42 rpmi: losetup-2.39.2-alt1 sisyphus+327286.4500.14.1 1711486324 installed <13>Dec 25 04:50:42 rpmi: lsblk-2.39.2-alt1 sisyphus+327286.4500.14.1 1711486324 installed <13>Dec 25 04:50:42 rpmi: dconf-profile-0.1-alt1 sisyphus+325633.340.3.1 1690415358 installed <13>Dec 25 04:50:42 rpmi: desktop-file-utils-0.26-alt6 sisyphus+331944.100.1.3 1697550026 installed <13>Dec 25 04:50:42 rpmi: gsettings-desktop-schemas-data-47.1-alt1 sisyphus+357735.300.3.1 1726641752 installed <13>Dec 25 04:50:42 rpmi: libgio-2.82.4-alt1 sisyphus+364807.100.1.1 1733991592 installed <13>Dec 25 04:50:42 rpmi: gsettings-desktop-schemas-47.1-alt1 sisyphus+357735.300.3.1 1726641752 installed <13>Dec 25 04:50:42 rpmi: libgdk-pixbuf-2.42.12-alt1 sisyphus+348142.100.1.1 1715791856 installed <13>Dec 25 04:50:42 rpmi: libjson-glib-1.10.6-alt1 sisyphus+364645.100.1.1 1733849752 installed <13>Dec 25 04:50:42 rpmi: libgusb-0.4.9-alt1 sisyphus+345693.100.1.1 1713857461 installed <13>Dec 25 04:50:42 rpmi: libcolord-1.4.7-alt1.1 sisyphus+338793.100.1.1 1706039016 installed <13>Dec 25 04:50:42 rpmi: gtk4-update-icon-cache-4.16.7-alt1 sisyphus+363301.100.1.1 1732451644 installed <13>Dec 25 04:50:42 rpmi: libdconf-0.40.0-alt3 sisyphus+325650.100.1.1 1690417205 installed <13>Dec 25 04:50:42 rpmi: systemd-modules-common-1:255.13-alt1 sisyphus+359453.100.2.1 1728651180 installed <13>Dec 25 04:50:42 rpmi: systemd-sysctl-common-1:255.13-alt1 sisyphus+359453.100.2.1 1728651180 installed <13>Dec 25 04:50:42 rpmi: systemd-tmpfiles-common-1:255.13-alt1 sisyphus+359453.100.2.1 1728651180 installed <13>Dec 25 04:50:42 rpmi: systemd-utils-filetriggers-1:255.13-alt1 sisyphus+359453.100.2.1 1728651180 installed <13>Dec 25 04:50:42 rpmi: libfdisk-2.39.2-alt1 sisyphus+327286.4500.14.1 1711486324 installed <13>Dec 25 04:50:42 rpmi: libX11-locales-3:1.8.10-alt1 sisyphus+353866.100.1.1 1722240771 installed <13>Dec 25 04:50:42 rpmi: libXdmcp-1.1.5-alt1 sisyphus+343583.700.1.1 1711441061 installed <13>Dec 25 04:50:42 rpmi: libXau-1.0.11-alt1 sisyphus+311428.100.1.1 1670577439 installed <13>Dec 25 04:50:42 rpmi: libxcb-1.17.0-alt1 sisyphus+345308.200.1.1 1713342004 installed <13>Dec 25 04:50:42 rpmi: libX11-3:1.8.10-alt1 sisyphus+353866.100.1.1 1722240771 installed <13>Dec 25 04:50:42 rpmi: libXext-1.3.6-alt1 sisyphus+343583.1000.1.1 1711441101 installed <13>Dec 25 04:50:42 rpmi: libXrender-0.9.11-alt1 sisyphus+308841.100.1.1 1666436130 installed <13>Dec 25 04:50:42 rpmi: libcairo-1:1.18.2-alt1 sisyphus+357195.100.1.1 1725948391 installed <13>Dec 25 04:50:42 rpmi: libXi-1.8-alt1 sisyphus+285490.200.1.1 1632124174 installed <13>Dec 25 04:50:42 rpmi: libXfixes-6.0.1-alt1 sisyphus+331490.300.1.1 1697023233 installed <13>Dec 25 04:50:42 rpmi: libXcursor-1.2.2-alt1 sisyphus+343583.600.1.1 1711441025 installed <13>Dec 25 04:50:42 rpmi: libXrandr-1.5.4-alt1 sisyphus+330992.100.1.1 1696485400 installed <13>Dec 25 04:50:43 rpmi: libSFML3.0-3.0.0-alt1 sisyphus+366256.100.1.1 1734895503 installed <13>Dec 25 04:50:43 rpmi: libcairo-gobject-1:1.18.2-alt1 sisyphus+357195.100.1.1 1725948391 installed <13>Dec 25 04:50:43 rpmi: libXft-2.3.8-alt1 sisyphus+331490.400.1.1 1697023269 installed <13>Dec 25 04:50:43 rpmi: libpango-1.55.0-alt1 sisyphus+364011.100.1.1 1733245601 installed <13>Dec 25 04:50:43 rpmi: libXtst-1.2.4-alt1 sisyphus+308663.1300.1.1 1666168495 installed <13>Dec 25 04:50:43 rpmi: libXxf86vm-1.1.5-alt1 sisyphus+308663.1400.1.1 1666168523 installed <13>Dec 25 04:50:43 rpmi: libGLX-mesa-4:24.3.2-alt1 sisyphus+365536.100.1.1 1734711581 installed <13>Dec 25 04:50:43 rpmi: libEGL-mesa-4:24.3.2-alt1 sisyphus+365536.100.1.1 1734711581 installed <13>Dec 25 04:50:43 rpmi: libEGL-7:1.7.0-alt1 sisyphus+330949.100.1.1 1696424893 installed <13>Dec 25 04:50:43 rpmi: libGLX-7:1.7.0-alt1 sisyphus+330949.100.1.1 1696424893 installed <13>Dec 25 04:50:43 rpmi: libGL-7:1.7.0-alt1 sisyphus+330949.100.1.1 1696424893 installed <13>Dec 25 04:50:43 rpmi: libGLU-4:9.0.1-alt1 sisyphus+278350.100.1.2 1626174382 installed <13>Dec 25 04:50:43 rpmi: libXinerama-1.1.5-alt1 sisyphus+309287.100.1.1 1667213208 installed <13>Dec 25 04:50:43 rpmi: xprop-1.2.5-alt1 sisyphus+279025.100.1.1 1626354198 installed <13>Dec 25 04:50:43 rpmi: libXcomposite-0.4.6-alt1 sisyphus+311188.200.1.1 1670233682 installed <13>Dec 25 04:50:43 rpmi: libXdamage-1.1.6-alt1 sisyphus+311188.300.1.1 1670233711 installed <13>Dec 25 04:50:45 rpmi: libxcb-devel-1.17.0-alt1 sisyphus+345308.200.1.1 1713342004 installed <13>Dec 25 04:50:45 rpmi: libX11-devel-3:1.8.10-alt1 sisyphus+353866.100.1.1 1722240771 installed <13>Dec 25 04:50:45 rpmi: libglvnd-devel-7:1.7.0-alt1 sisyphus+330949.100.1.1 1696424893 installed <13>Dec 25 04:50:45 rpmi: liblz4-1:1.9.4-alt1 sisyphus+309416.100.1.1 1667412981 installed <13>Dec 25 04:50:45 rpmi: libsystemd-1:255.13-alt1 sisyphus+359453.100.2.1 1728651180 installed <13>Dec 25 04:50:45 rpmi: libdbus-1.14.10-alt1 sisyphus+327286.5700.14.1 1711487401 installed <13>Dec 25 04:50:45 rpmi: libat-spi2-core-2.54.0-alt1 sisyphus+357735.600.3.1 1726642126 installed <13>Dec 25 04:50:45 rpmi: at-spi2-atk-2.54.0-alt1 sisyphus+357735.600.3.1 1726642126 installed <13>Dec 25 04:50:45 rpmi: dbus-tools-1.14.10-alt1 sisyphus+327286.5700.14.1 1711487401 installed <86>Dec 25 04:50:45 groupadd[434011]: group added to /etc/group: name=messagebus, GID=999 <86>Dec 25 04:50:45 groupadd[434011]: group added to /etc/gshadow: name=messagebus <86>Dec 25 04:50:45 groupadd[434011]: new group: name=messagebus, GID=999 <86>Dec 25 04:50:45 useradd[434020]: new user: name=messagebus, UID=999, GID=999, home=/run/dbus, shell=/dev/null, from=none <13>Dec 25 04:50:45 rpmi: dbus-1.14.10-alt1 sisyphus+327286.5700.14.1 1711487401 installed <13>Dec 25 04:50:45 rpmi: dbus-tools-gui-1.14.10-alt1 sisyphus+327286.5700.14.1 1711487401 installed <13>Dec 25 04:50:45 rpmi: dconf-0.40.0-alt3 sisyphus+325650.100.1.1 1690417205 installed <13>Dec 25 04:50:45 rpmi: libgtk+3-schemas-3.24.43-alt1 sisyphus+352627.100.1.1 1720700731 installed <13>Dec 25 04:50:45 rpmi: libavahi-0.8-alt4 sisyphus+344258.100.1.1 1712133856 installed <13>Dec 25 04:50:45 rpmi: libpolkit-124-alt3 sisyphus+351454.100.1.1 1719236630 installed <13>Dec 25 04:50:45 rpmi: rpm-macros-alternatives-0.5.2-alt2 sisyphus+315270.200.2.1 1676457367 installed <13>Dec 25 04:50:45 rpmi: alternatives-0.5.2-alt2 sisyphus+315270.200.2.1 1676457367 installed <13>Dec 25 04:50:45 rpmi: ca-certificates-2024.12.10-alt1 sisyphus+364633.200.3.1 1733918603 installed <13>Dec 25 04:50:45 rpmi: ca-trust-0.2.0-alt1 sisyphus+344843.100.1.1 1712743326 installed <13>Dec 25 04:50:45 rpmi: p11-kit-trust-1:0.25.5-alt1 sisyphus+352553.100.1.1 1720622573 installed <13>Dec 25 04:50:45 rpmi: libcrypto3-3.1.7-alt2 sisyphus+359910.100.1.1 1729080439 installed <13>Dec 25 04:50:45 rpmi: libssl3-3.1.7-alt2 sisyphus+359910.100.1.1 1729080439 installed <86>Dec 25 04:50:45 groupadd[434599]: group added to /etc/group: name=_keytab, GID=998 <86>Dec 25 04:50:45 groupadd[434599]: group added to /etc/gshadow: name=_keytab <86>Dec 25 04:50:45 groupadd[434599]: new group: name=_keytab, GID=998 <13>Dec 25 04:50:46 rpmi: libkrb5-1.21.3-alt2 sisyphus+351857.100.1.1 1719735141 installed <13>Dec 25 04:50:46 rpmi: libkmod-32-alt1 sisyphus+357452.100.2.1 1727718007 installed <13>Dec 25 04:50:46 rpmi: python3-3.12.8-alt1 sisyphus+364336.100.1.1 1733526854 installed <13>Dec 25 04:50:46 rpmi: python3-base-3.12.8-alt1 sisyphus+364336.100.1.1 1733526854 installed <13>Dec 25 04:50:47 rpmi: glib2-devel-2.82.4-alt1 sisyphus+364807.100.1.1 1733991592 installed <13>Dec 25 04:50:47 rpmi: libgio-devel-2.82.4-alt1 sisyphus+364807.100.1.1 1733991592 installed <13>Dec 25 04:50:47 rpmi: libgdk-pixbuf-devel-2.42.12-alt1 sisyphus+348142.100.1.1 1715791856 installed <13>Dec 25 04:50:47 rpmi: systemd-utils-standalone-1:255.13-alt1 sisyphus+359453.100.2.1 1728651180 installed <13>Dec 25 04:50:47 rpmi: at-spi2-core-2.54.0-alt1 sisyphus+357735.600.3.1 1726642126 installed <13>Dec 25 04:50:47 rpmi: kmod-32-alt1 sisyphus+357452.100.2.1 1727718007 installed <13>Dec 25 04:50:47 rpmi: dmsetup-1.02.202-alt1 sisyphus+361775.200.5.1 1730990757 installed <86>Dec 25 04:50:47 groupadd[437508]: group added to /etc/group: name=tape, GID=997 <86>Dec 25 04:50:47 groupadd[437508]: group added to /etc/gshadow: name=tape <86>Dec 25 04:50:47 groupadd[437508]: new group: name=tape, GID=997 <86>Dec 25 04:50:47 groupadd[437522]: group added to /etc/group: name=dialout, GID=996 <86>Dec 25 04:50:47 groupadd[437522]: group added to /etc/gshadow: name=dialout <86>Dec 25 04:50:47 groupadd[437522]: new group: name=dialout, GID=996 <86>Dec 25 04:50:47 groupadd[437577]: group added to /etc/group: name=input, GID=995 <86>Dec 25 04:50:47 groupadd[437577]: group added to /etc/gshadow: name=input <86>Dec 25 04:50:47 groupadd[437577]: new group: name=input, GID=995 <86>Dec 25 04:50:47 groupadd[437585]: group added to /etc/group: name=video, GID=994 <86>Dec 25 04:50:47 groupadd[437585]: group added to /etc/gshadow: name=video <86>Dec 25 04:50:47 groupadd[437585]: new group: name=video, GID=994 <86>Dec 25 04:50:47 groupadd[437593]: group added to /etc/group: name=render, GID=993 <86>Dec 25 04:50:47 groupadd[437593]: group added to /etc/gshadow: name=render <86>Dec 25 04:50:47 groupadd[437593]: new group: name=render, GID=993 <86>Dec 25 04:50:47 groupadd[437610]: group added to /etc/group: name=sgx, GID=992 <86>Dec 25 04:50:47 groupadd[437610]: group added to /etc/gshadow: name=sgx <86>Dec 25 04:50:47 groupadd[437610]: new group: name=sgx, GID=992 <13>Dec 25 04:50:47 rpmi: udev-1:255.13-alt1 sisyphus+359453.100.2.1 1728651180 installed <86>Dec 25 04:50:48 groupadd[439229]: group added to /etc/group: name=colord, GID=991 <86>Dec 25 04:50:48 groupadd[439229]: group added to /etc/gshadow: name=colord <86>Dec 25 04:50:48 groupadd[439229]: new group: name=colord, GID=991 <86>Dec 25 04:50:48 useradd[439351]: new user: name=colord, UID=998, GID=991, home=/var/colord, shell=/dev/null, from=none <13>Dec 25 04:50:48 rpmi: colord-1.4.7-alt1.1 sisyphus+338793.100.1.1 1706039016 installed <13>Dec 25 04:50:48 rpmi: libgsasl18-2.2.1-alt2 sisyphus+359713.200.2.1 1728905430 installed <86>Dec 25 04:50:48 groupadd[439855]: group added to /etc/group: name=sasl, GID=990 <86>Dec 25 04:50:48 groupadd[439855]: group added to /etc/gshadow: name=sasl <86>Dec 25 04:50:48 groupadd[439855]: new group: name=sasl, GID=990 <13>Dec 25 04:50:48 rpmi: libsasl2-3-2.1.28-alt2 sisyphus+343335.100.1.1 1711112544 installed <13>Dec 25 04:50:48 rpmi: libldap2-2.6.9-alt1 sisyphus+364781.100.1.1 1733971238 installed <13>Dec 25 04:50:48 rpmi: libcups-2.4.11-alt1 sisyphus+359120.200.2.1 1728202635 installed <13>Dec 25 04:50:48 rpmi: libgtk+3-3.24.43-alt1 sisyphus+352627.100.1.1 1720700731 installed <13>Dec 25 04:50:48 rpmi: libarchive13-3.7.5-alt2 sisyphus+358189.100.1.1 1727162763 installed <13>Dec 25 04:50:48 rpmi: libssh2-1.11.0-alt2 sisyphus+339356.100.1.1 1706593137 installed <13>Dec 25 04:50:48 rpmi: libcurl-8.11.1-alt1 sisyphus+364692.100.1.1 1733905204 installed <13>Dec 25 04:50:48 rpmi: libappstream-glib-0.8.3-alt1 sisyphus+362439.300.2.1 1731494873 installed <13>Dec 25 04:50:48 rpmi: libappstream-glib-devel-0.8.3-alt1 sisyphus+362439.300.2.1 1731494873 installed <13>Dec 25 04:50:48 rpmi: libGLU-devel-4:9.0.1-alt1 sisyphus+278350.100.1.2 1626174382 installed <13>Dec 25 04:50:49 rpmi: libSFML-devel-3.0.0-alt1 sisyphus+366256.100.1.1 1734895503 installed <13>Dec 25 04:50:49 rpmi: gcc-c++-14-alt1 sisyphus+360995.300.1.1 1730139222 installed Building target platforms: x86_64 Building for target x86_64 Wrote: /usr/src/in/nosrpm/extreme-tuxracer-0.8.4-alt1.nosrc.rpm (w1.gzdio) Installing extreme-tuxracer-0.8.4-alt1.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.13823 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf etr-0.8.4 + echo 'Source #0 (etr-0.8.4.tar.xz):' Source #0 (etr-0.8.4.tar.xz): + /usr/bin/xz -dc /usr/src/RPM/SOURCES/etr-0.8.4.tar.xz + /bin/tar -xf - + cd etr-0.8.4 + /bin/chmod -c -Rf u+rwX,go-w . + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.73668 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd etr-0.8.4 + autoreconf -fisv autoreconf-default: export WARNINGS= autoreconf-default: Entering directory '.' autoreconf-default: configure.ac: not using Gettext autoreconf-default: running: aclocal --force autoreconf-default: configure.ac: tracing autoreconf-default: configure.ac: not using Libtool autoreconf-default: configure.ac: not using Intltool autoreconf-default: configure.ac: not using Gtkdoc autoreconf-default: running: /usr/bin/autoconf-2.71 --force autoreconf-default: running: /usr/bin/autoheader-2.71 --force autoreconf-default: running: automake --add-missing --force-missing autoreconf-default: Leaving directory '.' + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + export FFLAGS + FCFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + export FCFLAGS + '[' -n '' ']' ++ printf %s '-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' ++ sed -r 's/(^|[[:space:]]+)-[^m][^[:space:]]*//g' + ASFLAGS= + export ASFLAGS + export lt_cv_deplibs_check_method=pass_all + lt_cv_deplibs_check_method=pass_all + readlink -e -- ./configure + xargs -ri find '{}' -type f '(' -name config.sub -or -name config.guess ')' -printf '%h/\n' + xargs -ri dirname -- '{}' + xargs -rn1 install -pm755 -- /usr/share/gnu-config/config.sub /usr/share/gnu-config/config.guess + sort -u + configure_runstatedir_flags= + grep -qF runstatedir=DIR ./configure + configure_runstatedir_flags=--runstatedir=/var/run + ./configure --build=x86_64-alt-linux --host=x86_64-alt-linux --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/lib --localstatedir=/var/lib --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --disable-dependency-tracking --disable-silent-rules --runstatedir=/var/run --without-included-gettext configure: WARNING: unrecognized options: --without-included-gettext checking for a BSD-compatible install... /usr/bin/ginstall -c checking whether build environment is sane... yes checking for a race-free mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether make supports nested variables... (cached) yes checking build system type... x86_64-alt-linux-gnu checking host system type... x86_64-alt-linux-gnu checking for x86_64-alt-linux-g++... x86_64-alt-linux-g++ checking whether the C++ compiler works... yes checking for C++ compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether the compiler supports GNU C++... yes checking whether x86_64-alt-linux-g++ accepts -g... yes checking for x86_64-alt-linux-g++ option to enable C++11 features... none needed checking whether make supports the include directive... yes (GNU style) checking dependency style of x86_64-alt-linux-g++... none checking for x86_64-alt-linux-gcc... x86_64-alt-linux-gcc checking whether the compiler supports GNU C... yes checking whether x86_64-alt-linux-gcc accepts -g... yes checking for x86_64-alt-linux-gcc option to enable C11 features... none needed checking whether x86_64-alt-linux-gcc understands -c and -o together... yes checking dependency style of x86_64-alt-linux-gcc... none checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... no checking for stdio.h... yes checking for stdlib.h... yes checking for string.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for strings.h... yes checking for sys/stat.h... yes checking for sys/types.h... yes checking for unistd.h... yes checking for float.h... yes checking for limits.h... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for sys/time.h... yes checking for unistd.h... (cached) yes checking for _Bool... yes checking for stdbool.h that conforms to C99... yes checking for inline... inline checking for size_t... yes checking for GNU libc compatible malloc... yes checking for floor... no checking for getcwd... yes checking for memmove... yes checking for memset... yes checking for mkdir... yes checking for pow... no checking for sqrt... no checking for strchr... yes checking for strdup... yes checking for x86_64-alt-linux-pkg-config... no checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for sfml-system >= 2.4... yes checking for sfml-audio >= 2.4... yes checking for sfml-window >= 2.4... yes checking for sfml-graphics >= 2.4... yes checking for gluBeginCurve in -lGLU... yes checking for glBegin in -lOpenGL... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating build/Makefile config.status: creating build/Installer/Makefile config.status: creating data/Makefile config.status: creating data/char/Makefile config.status: creating data/char/beastie/Makefile config.status: creating data/char/boris/Makefile config.status: creating data/char/samuel/Makefile config.status: creating data/char/trixi/Makefile config.status: creating data/char/tux/Makefile config.status: creating data/courses/Makefile config.status: creating data/courses/default/Makefile config.status: creating data/courses/default/bumpy_ride/Makefile config.status: creating data/courses/default/bunny_hill/Makefile config.status: creating data/courses/default/challenge_one/Makefile config.status: creating data/courses/default/chinese_wall/Makefile config.status: creating data/courses/default/chragis_gagiwaetter/Makefile config.status: creating data/courses/default/downhill_fear/Makefile config.status: creating data/courses/default/explore_mountains/Makefile config.status: creating data/courses/default/frozen_lakes/Makefile config.status: creating data/courses/default/frozen_river/Makefile config.status: creating data/courses/default/hippo_run/Makefile config.status: creating data/courses/default/holygrail/Makefile config.status: creating data/courses/default/in_search_of_vodka/Makefile config.status: creating data/courses/default/keep_country_tidy/Makefile config.status: creating data/courses/default/milos_castle/Makefile config.status: creating data/courses/default/path_of_daggers/Makefile config.status: creating data/courses/default/penguins_cant_fly/Makefile config.status: creating data/courses/default/quiet_river/Makefile config.status: creating data/courses/default/secret_valleys/Makefile config.status: creating data/courses/default/this_means_something/Makefile config.status: creating data/courses/default/tux_at_home/Makefile config.status: creating data/courses/default/twisty_slope/Makefile config.status: creating data/courses/default/wild_mountains/Makefile config.status: creating data/courses/extras/Makefile config.status: creating data/courses/extras/bronze_set/Makefile config.status: creating data/courses/extras/comepeces/Makefile config.status: creating data/courses/extras/desperation/Makefile config.status: creating data/courses/extras/el_reto/Makefile config.status: creating data/courses/extras/follow_white_rabbit/Makefile config.status: creating data/courses/extras/herrings_half_pipe/Makefile config.status: creating data/courses/extras/i_like_spike_2/Makefile config.status: creating data/courses/extras/inception/Makefile config.status: creating data/courses/extras/laberinto/Makefile config.status: creating data/courses/extras/penguins_day/Makefile config.status: creating data/courses/extras/pygoscelis_adeliae/Makefile config.status: creating data/courses/extras/rock_n_roll/Makefile config.status: creating data/courses/extras/slide_or_fly/Makefile config.status: creating data/courses/extras/snow_run_1/Makefile config.status: creating data/courses/extras/snow_run_2/Makefile config.status: creating data/courses/extras/the_long_ride/Makefile config.status: creating data/courses/extras/touch_the_moon/Makefile config.status: creating data/courses/extras/touristic_ride/Makefile config.status: creating data/courses/extras/tuxway/Makefile config.status: creating data/courses/extras/twists/Makefile config.status: creating data/courses/extras/wild_ride/Makefile config.status: creating data/courses/extras/wild_west_chute_out/Makefile config.status: creating data/env/Makefile config.status: creating data/env/etr/Makefile config.status: creating data/env/etr/cloudy/Makefile config.status: creating data/env/etr/evening/Makefile config.status: creating data/env/etr/night/Makefile config.status: creating data/env/etr/sunny/Makefile config.status: creating data/env/tuxracer/Makefile config.status: creating data/env/tuxracer/cloudy/Makefile config.status: creating data/env/tuxracer/evening/Makefile config.status: creating data/env/tuxracer/night/Makefile config.status: creating data/env/tuxracer/sunny/Makefile config.status: creating data/fonts/Makefile config.status: creating data/music/Makefile config.status: creating data/objects/Makefile config.status: creating data/players/Makefile config.status: creating data/sounds/Makefile config.status: creating data/terrains/Makefile config.status: creating data/textures/Makefile config.status: creating data/translations/Makefile config.status: creating doc/Makefile config.status: creating resources/Makefile config.status: creating resources/gui/Makefile config.status: creating etr_config.h config.status: executing depfiles commands configure: WARNING: unrecognized options: --without-included-gettext + make -j16 make all-recursive Making all in src make[2]: Entering directory '/usr/src/RPM/BUILD/etr-0.8.4/src' x86_64-alt-linux-g++ -DHAVE_CONFIG_H -I. -I.. -DETR_DATA_DIR=\"/usr/share\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -std=c++14 -c -o config_screen.o config_screen.cpp In file included from /usr/include/SFML/System.hpp:34, from bh.h:30, from config_screen.h:20, from config_screen.cpp:42: /usr/include/SFML/System/Clock.hpp:78:20: error: 'ratio_less_equal_v' is not a member of 'std'; did you mean 'ratio_less_equal'? 78 | static_assert(std::ratio_less_equal_v, | ^~~~~~~~~~~~~~~~~~ | ratio_less_equal /usr/include/SFML/System/Clock.hpp:78:56: error: expected primary-expression before ',' token 78 | static_assert(std::ratio_less_equal_v, | ^ /usr/include/SFML/System/Clock.hpp:78:68: error: expected primary-expression before '>' token 78 | static_assert(std::ratio_less_equal_v, | ^ /usr/include/SFML/System/Clock.hpp:78:69: error: expected primary-expression before ',' token 78 | static_assert(std::ratio_less_equal_v, | ^ /usr/include/SFML/System/Clock.hpp:78:69: error: expected ')' before ',' token 78 | static_assert(std::ratio_less_equal_v, | ~ ^ | ) In file included from /usr/include/SFML/System/FileInputStream.hpp:34, from /usr/include/SFML/System.hpp:37: /usr/include/SFML/System/InputStream.hpp:66:32: error: 'optional' in namespace 'std' does not name a template type 66 | [[nodiscard]] virtual std::optional read(void* data, std::size_t size) = 0; | ^~~~~~~~ /usr/include/SFML/System/InputStream.hpp:66:27: note: 'std::optional' is only available from C++17 onwards 66 | [[nodiscard]] virtual std::optional read(void* data, std::size_t size) = 0; | ^~~ /usr/include/SFML/System/InputStream.hpp:76:32: error: 'optional' in namespace 'std' does not name a template type 76 | [[nodiscard]] virtual std::optional seek(std::size_t position) = 0; | ^~~~~~~~ /usr/include/SFML/System/InputStream.hpp:76:27: note: 'std::optional' is only available from C++17 onwards 76 | [[nodiscard]] virtual std::optional seek(std::size_t position) = 0; | ^~~ /usr/include/SFML/System/InputStream.hpp:84:32: error: 'optional' in namespace 'std' does not name a template type 84 | [[nodiscard]] virtual std::optional tell() = 0; | ^~~~~~~~ /usr/include/SFML/System/InputStream.hpp:84:27: note: 'std::optional' is only available from C++17 onwards 84 | [[nodiscard]] virtual std::optional tell() = 0; | ^~~ /usr/include/SFML/System/InputStream.hpp:92:18: error: 'optional' in namespace 'std' does not name a template type 92 | virtual std::optional getSize() = 0; | ^~~~~~~~ /usr/include/SFML/System/InputStream.hpp:92:13: note: 'std::optional' is only available from C++17 onwards 92 | virtual std::optional getSize() = 0; | ^~~ /usr/include/SFML/System/FileInputStream.hpp:106:41: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 106 | explicit FileInputStream(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/System/FileInputStream.hpp:106:57: error: expected unqualified-id before '&' token 106 | explicit FileInputStream(const std::filesystem::path& filename); | ^ /usr/include/SFML/System/FileInputStream.hpp:106:57: error: expected ')' before '&' token 106 | explicit FileInputStream(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/System/FileInputStream.hpp:106:57: error: constructors may not be ref-qualified /usr/include/SFML/System/FileInputStream.hpp:106:57: error: expected ';' at end of member declaration 106 | explicit FileInputStream(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/System/FileInputStream.hpp:106:59: error: 'filename' does not name a type 106 | explicit FileInputStream(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:116:40: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/System/FileInputStream.hpp:116:56: error: expected unqualified-id before '&' token 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ^ /usr/include/SFML/System/FileInputStream.hpp:116:56: error: expected ')' before '&' token 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/System/FileInputStream.hpp:116:56: error: expected ';' at end of member declaration 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/System/FileInputStream.hpp:116:58: error: 'filename' does not name a type 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:130:24: error: 'optional' in namespace 'std' does not name a template type 130 | [[nodiscard]] std::optional read(void* data, std::size_t size) override; | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:130:19: note: 'std::optional' is only available from C++17 onwards 130 | [[nodiscard]] std::optional read(void* data, std::size_t size) override; | ^~~ /usr/include/SFML/System/FileInputStream.hpp:140:24: error: 'optional' in namespace 'std' does not name a template type 140 | [[nodiscard]] std::optional seek(std::size_t position) override; | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:140:19: note: 'std::optional' is only available from C++17 onwards 140 | [[nodiscard]] std::optional seek(std::size_t position) override; | ^~~ /usr/include/SFML/System/FileInputStream.hpp:148:24: error: 'optional' in namespace 'std' does not name a template type 148 | [[nodiscard]] std::optional tell() override; | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:148:19: note: 'std::optional' is only available from C++17 onwards 148 | [[nodiscard]] std::optional tell() override; | ^~~ /usr/include/SFML/System/FileInputStream.hpp:156:10: error: 'optional' in namespace 'std' does not name a template type 156 | std::optional getSize() override; | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:156:5: note: 'std::optional' is only available from C++17 onwards 156 | std::optional getSize() override; | ^~~ In file included from /usr/include/SFML/System.hpp:39: /usr/include/SFML/System/MemoryInputStream.hpp:70:24: error: 'optional' in namespace 'std' does not name a template type 70 | [[nodiscard]] std::optional read(void* data, std::size_t size) override; | ^~~~~~~~ /usr/include/SFML/System/MemoryInputStream.hpp:70:19: note: 'std::optional' is only available from C++17 onwards 70 | [[nodiscard]] std::optional read(void* data, std::size_t size) override; | ^~~ /usr/include/SFML/System/MemoryInputStream.hpp:80:24: error: 'optional' in namespace 'std' does not name a template type 80 | [[nodiscard]] std::optional seek(std::size_t position) override; | ^~~~~~~~ /usr/include/SFML/System/MemoryInputStream.hpp:80:19: note: 'std::optional' is only available from C++17 onwards 80 | [[nodiscard]] std::optional seek(std::size_t position) override; | ^~~ /usr/include/SFML/System/MemoryInputStream.hpp:88:24: error: 'optional' in namespace 'std' does not name a template type 88 | [[nodiscard]] std::optional tell() override; | ^~~~~~~~ /usr/include/SFML/System/MemoryInputStream.hpp:88:19: note: 'std::optional' is only available from C++17 onwards 88 | [[nodiscard]] std::optional tell() override; | ^~~ /usr/include/SFML/System/MemoryInputStream.hpp:96:10: error: 'optional' in namespace 'std' does not name a template type 96 | std::optional getSize() override; | ^~~~~~~~ /usr/include/SFML/System/MemoryInputStream.hpp:96:5: note: 'std::optional' is only available from C++17 onwards 96 | std::optional getSize() override; | ^~~ /usr/include/SFML/System/MemoryInputStream.hpp:102:16: error: 'byte' in namespace 'std' does not name a type 102 | const std::byte* m_data{}; //!< Pointer to the data in memory | ^~~~ /usr/include/SFML/System/MemoryInputStream.hpp:102:11: note: 'std::byte' is only available from C++17 onwards 102 | const std::byte* m_data{}; //!< Pointer to the data in memory | ^~~ In file included from /usr/include/SFML/System/Utf.hpp:742, from /usr/include/SFML/System/String.hpp:32, from /usr/include/SFML/System.hpp:41: /usr/include/SFML/System/Utf.inl: In static member function 'static Out sf::Utf<8>::encode(char32_t, Out, uint8_t)': /usr/include/SFML/System/Utf.inl:137:25: error: 'byte' is not a member of 'std' 137 | std::array bytes{}; | ^~~~ /usr/include/SFML/System/Utf.inl:137:25: note: 'std::byte' is only available from C++17 onwards /usr/include/SFML/System/Utf.inl:137:25: error: 'byte' is not a member of 'std' /usr/include/SFML/System/Utf.inl:137:25: note: 'std::byte' is only available from C++17 onwards /usr/include/SFML/System/Utf.inl:137:32: error: template argument 1 is invalid 137 | std::array bytes{}; | ^ /usr/include/SFML/System/Utf.inl:142:26: error: invalid types 'int[int]' for array subscript 142 | case 4: bytes[3] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^ /usr/include/SFML/System/Utf.inl:142:49: error: 'byte' in namespace 'std' does not name a type 142 | case 4: bytes[3] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~~ /usr/include/SFML/System/Utf.inl:142:44: note: 'std::byte' is only available from C++17 onwards 142 | case 4: bytes[3] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~ /usr/include/SFML/System/Utf.inl:143:26: error: invalid types 'int[int]' for array subscript 143 | case 3: bytes[2] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^ /usr/include/SFML/System/Utf.inl:143:49: error: 'byte' in namespace 'std' does not name a type 143 | case 3: bytes[2] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~~ /usr/include/SFML/System/Utf.inl:143:44: note: 'std::byte' is only available from C++17 onwards 143 | case 3: bytes[2] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~ /usr/include/SFML/System/Utf.inl:144:26: error: invalid types 'int[int]' for array subscript 144 | case 2: bytes[1] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^ /usr/include/SFML/System/Utf.inl:144:49: error: 'byte' in namespace 'std' does not name a type 144 | case 2: bytes[1] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~~ /usr/include/SFML/System/Utf.inl:144:44: note: 'std::byte' is only available from C++17 onwards 144 | case 2: bytes[1] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~ /usr/include/SFML/System/Utf.inl:145:26: error: invalid types 'int[int]' for array subscript 145 | case 1: bytes[0] = static_cast (input | firstBytes[bytestoWrite]); | ^ /usr/include/SFML/System/Utf.inl:145:49: error: 'byte' in namespace 'std' does not name a type 145 | case 1: bytes[0] = static_cast (input | firstBytes[bytestoWrite]); | ^~~~ /usr/include/SFML/System/Utf.inl:145:44: note: 'std::byte' is only available from C++17 onwards 145 | case 1: bytes[0] = static_cast (input | firstBytes[bytestoWrite]); | ^~~ /usr/include/SFML/System/Utf.inl:150:35: error: request for member 'data' in 'bytes', which is of non-class type 'int' 150 | output = priv::copy(bytes.data(), bytes.data() + bytestoWrite, output); | ^~~~ /usr/include/SFML/System/Utf.inl:150:49: error: request for member 'data' in 'bytes', which is of non-class type 'int' 150 | output = priv::copy(bytes.data(), bytes.data() + bytestoWrite, output); | ^~~~ In file included from /usr/include/SFML/Window.hpp:32, from bh.h:31: /usr/include/SFML/Window/Context.hpp: At global scope: /usr/include/SFML/Window/Context.hpp:130:57: error: 'std::string_view' has not been declared 130 | [[nodiscard]] static bool isExtensionAvailable(std::string_view name); | ^~~~~~~~~~~ In file included from /usr/include/SFML/Window.hpp:34: /usr/include/SFML/Window/Cursor.hpp:226:31: error: 'optional' in namespace 'std' does not name a template type 226 | [[nodiscard]] static std::optional createFromPixels(const std::uint8_t* pixels, Vector2u size, Vector2u hotspot); | ^~~~~~~~ /usr/include/SFML/Window/Cursor.hpp:226:26: note: 'std::optional' is only available from C++17 onwards 226 | [[nodiscard]] static std::optional createFromPixels(const std::uint8_t* pixels, Vector2u size, Vector2u hotspot); | ^~~ /usr/include/SFML/Window/Cursor.hpp:242:31: error: 'optional' in namespace 'std' does not name a template type 242 | [[nodiscard]] static std::optional createFromSystem(Type type); | ^~~~~~~~ /usr/include/SFML/Window/Cursor.hpp:242:26: note: 'std::optional' is only available from C++17 onwards 242 | [[nodiscard]] static std::optional createFromSystem(Type type); | ^~~ In file included from /usr/include/SFML/Window.hpp:35: /usr/include/SFML/Window/Event.hpp:345:10: error: 'variant' in namespace 'std' does not name a template type 345 | std::variant*) | ^~~~~~~ /usr/include/SFML/Window/Event.hpp:374:65: note: 'std::variant' is only available from C++17 onwards 374 | [[nodiscard]] static constexpr bool isInParameterPack(const std::variant*) | ^~~ /usr/include/SFML/Window/Event.hpp:374:77: error: expected ',' or '...' before '<' token 374 | [[nodiscard]] static constexpr bool isInParameterPack(const std::variant*) | ^ /usr/include/SFML/Window/Event.hpp:380:76: error: 'm_data' was not declared in this scope 380 | static constexpr bool isEventSubtype = isInParameterPack(decltype (&m_data)(nullptr)); | ^~~~~~ /usr/include/SFML/Window/Event.hpp: In static member function 'static constexpr bool sf::Event::isInParameterPack(int)': /usr/include/SFML/Window/Event.hpp:376:22: error: 'is_same_v' is not a member of 'std'; did you mean 'is_same'? 376 | return (std::is_same_v || ...); | ^~~~~~~~~ | is_same /usr/include/SFML/Window/Event.hpp:376:33: error: expected primary-expression before ',' token 376 | return (std::is_same_v || ...); | ^ /usr/include/SFML/Window/Event.hpp:376:37: error: expected primary-expression before '>' token 376 | return (std::is_same_v || ...); | ^ /usr/include/SFML/Window/Event.hpp:376:39: error: expected primary-expression before '||' token 376 | return (std::is_same_v || ...); | ^~ /usr/include/SFML/Window/Event.hpp:376:42: error: operand of fold expression has no unexpanded parameter packs 376 | return (std::is_same_v || ...); | ^~~ In file included from /usr/include/SFML/Window/Event.hpp:385: /usr/include/SFML/Window/Event.inl: In constructor 'sf::Event::Event(const TEventSubtype&)': /usr/include/SFML/Window/Event.inl:47:9: error: 'm_data' was not declared in this scope 47 | m_data = eventSubtype; | ^~~~~~ /usr/include/SFML/Window/Event.inl: In member function 'bool sf::Event::is() const': /usr/include/SFML/Window/Event.inl:57:21: error: 'holds_alternative' is not a member of 'std' 57 | return std::holds_alternative(m_data); | ^~~~~~~~~~~~~~~~~ /usr/include/SFML/Window/Event.inl:57:21: note: 'std::holds_alternative' is only available from C++17 onwards /usr/include/SFML/Window/Event.inl:57:52: error: expected primary-expression before '>' token 57 | return std::holds_alternative(m_data); | ^ /usr/include/SFML/Window/Event.inl:57:54: error: 'm_data' was not declared in this scope 57 | return std::holds_alternative(m_data); | ^~~~~~ /usr/include/SFML/Window/Event.inl: In member function 'const TEventSubtype* sf::Event::getIf() const': /usr/include/SFML/Window/Event.inl:67:21: error: 'get_if' is not a member of 'std' 67 | return std::get_if(&m_data); | ^~~~~~ /usr/include/SFML/Window/Event.inl:67:41: error: expected primary-expression before '>' token 67 | return std::get_if(&m_data); | ^ /usr/include/SFML/Window/Event.inl:67:44: error: 'm_data' was not declared in this scope 67 | return std::get_if(&m_data); | ^~~~~~ /usr/include/SFML/Window/Event.inl: In member function 'decltype(auto) sf::Event::visit(T&&) const': /usr/include/SFML/Window/Event.inl:75:17: error: 'visit' is not a member of 'std' 75 | return std::visit(std::forward(visitor), m_data); | ^~~~~ /usr/include/SFML/Window/Event.inl:75:17: note: 'std::visit' is only available from C++17 onwards /usr/include/SFML/Window/Event.inl:75:49: error: 'm_data' was not declared in this scope 75 | return std::visit(std::forward(visitor), m_data); | ^~~~~~ In file included from /usr/include/SFML/Window/Window.hpp:32, from /usr/include/SFML/Window.hpp:42: /usr/include/SFML/Window/WindowBase.hpp: At global scope: /usr/include/SFML/Window/WindowBase.hpp:226:24: error: 'optional' in namespace 'std' does not name a template type 226 | [[nodiscard]] std::optional pollEvent(); | ^~~~~~~~ /usr/include/SFML/Window/WindowBase.hpp:226:19: note: 'std::optional' is only available from C++17 onwards 226 | [[nodiscard]] std::optional pollEvent(); | ^~~ /usr/include/SFML/Window/WindowBase.hpp:252:24: error: 'optional' in namespace 'std' does not name a template type 252 | [[nodiscard]] std::optional waitEvent(Time timeout = Time::Zero); | ^~~~~~~~ /usr/include/SFML/Window/WindowBase.hpp:252:19: note: 'std::optional' is only available from C++17 onwards 252 | [[nodiscard]] std::optional waitEvent(Time timeout = Time::Zero); | ^~~ /usr/include/SFML/Window/WindowBase.hpp:387:36: error: 'optional' in namespace 'std' does not name a template type 387 | void setMinimumSize(const std::optional& minimumSize); | ^~~~~~~~ /usr/include/SFML/Window/WindowBase.hpp:387:31: note: 'std::optional' is only available from C++17 onwards 387 | void setMinimumSize(const std::optional& minimumSize); | ^~~ /usr/include/SFML/Window/WindowBase.hpp:387:44: error: expected ',' or '...' before '<' token 387 | void setMinimumSize(const std::optional& minimumSize); | ^ /usr/include/SFML/Window/WindowBase.hpp:397:36: error: 'optional' in namespace 'std' does not name a template type 397 | void setMaximumSize(const std::optional& maximumSize); | ^~~~~~~~ /usr/include/SFML/Window/WindowBase.hpp:397:31: note: 'std::optional' is only available from C++17 onwards 397 | void setMaximumSize(const std::optional& maximumSize); | ^~~ /usr/include/SFML/Window/WindowBase.hpp:397:44: error: expected ',' or '...' before '<' token 397 | void setMaximumSize(const std::optional& maximumSize); | ^ In file included from /usr/include/SFML/Window/WindowBase.hpp:617: /usr/include/SFML/Window/WindowBase.inl:47:41: error: expected constructor, destructor, or type conversion before ';' token 47 | OverloadSet(Ts...) -> OverloadSet; | ^ /usr/include/SFML/Window/WindowBase.inl: In member function 'void sf::WindowBase::handleEvents(Ts&& ...)': /usr/include/SFML/Window/WindowBase.inl:69:23: error: missing template arguments before 'overloadSet' 69 | priv::OverloadSet overloadSet{std::forward(handlers)..., [](const priv::DelayOverloadResolution&) { /* ignore */ }}; | ^~~~~~~~~~~ /usr/include/SFML/Window/WindowBase.inl:71:32: error: qualified-id in declaration before 'event' 71 | while (const std::optional event = pollEvent()) | ^~~~~ /usr/include/SFML/Window/WindowBase.inl:72:9: error: 'event' was not declared in this scope; did you mean 'Event'? 72 | event->visit(overloadSet); | ^~~~~ | Event /usr/include/SFML/Window/WindowBase.inl:72:22: error: 'overloadSet' was not declared in this scope 72 | event->visit(overloadSet); | ^~~~~~~~~~~ In file included from /usr/include/SFML/Graphics/Color.hpp:229, from /usr/include/SFML/Graphics/Shape.hpp:32, from /usr/include/SFML/Graphics/CircleShape.hpp:32, from /usr/include/SFML/Graphics.hpp:32, from bh.h:32: /usr/include/SFML/Graphics/Color.inl: In function 'constexpr sf::Color sf::operator+(Color, Color)': /usr/include/SFML/Graphics/Color.inl:77:16: error: variable 'clampedAdd' of non-literal type 'const sf::operator+(Color, Color)::' in 'constexpr' function only available with '-std=c++2b' or '-std=gnu++2b' 77 | const auto clampedAdd = [](std::uint8_t lhs, std::uint8_t rhs) | ^~~~~~~~~~ /usr/include/SFML/Graphics/Color.inl:77:30: note: 'sf::operator+(Color, Color)::' is not literal because: 77 | const auto clampedAdd = [](std::uint8_t lhs, std::uint8_t rhs) | ^ cc1plus: note: 'sf::operator+(Color, Color)::' is a closure type, which is only literal in C++17 and later /usr/include/SFML/Graphics/Color.inl: In function 'constexpr sf::Color sf::operator-(Color, Color)': /usr/include/SFML/Graphics/Color.inl:93:16: error: variable 'clampedSub' of non-literal type 'const sf::operator-(Color, Color)::' in 'constexpr' function only available with '-std=c++2b' or '-std=gnu++2b' 93 | const auto clampedSub = [](std::uint8_t lhs, std::uint8_t rhs) | ^~~~~~~~~~ /usr/include/SFML/Graphics/Color.inl:93:30: note: 'sf::operator-(Color, Color)::' is not literal because: 93 | const auto clampedSub = [](std::uint8_t lhs, std::uint8_t rhs) | ^ cc1plus: note: 'sf::operator-(Color, Color)::' is a closure type, which is only literal in C++17 and later /usr/include/SFML/Graphics/Color.inl: In function 'constexpr sf::Color sf::operator*(Color, Color)': /usr/include/SFML/Graphics/Color.inl:109:16: error: variable 'scaledMul' of non-literal type 'const sf::operator*(Color, Color)::' in 'constexpr' function only available with '-std=c++2b' or '-std=gnu++2b' 109 | const auto scaledMul = [](std::uint8_t lhs, std::uint8_t rhs) | ^~~~~~~~~ /usr/include/SFML/Graphics/Color.inl:109:29: note: 'sf::operator*(Color, Color)::' is not literal because: 109 | const auto scaledMul = [](std::uint8_t lhs, std::uint8_t rhs) | ^ cc1plus: note: 'sf::operator*(Color, Color)::' is a closure type, which is only literal in C++17 and later In file included from /usr/include/SFML/Graphics/Shape.hpp:35: /usr/include/SFML/Graphics/Rect.hpp: At global scope: /usr/include/SFML/Graphics/Rect.hpp:98:34: error: 'optional' in namespace 'std' does not name a template type 98 | [[nodiscard]] constexpr std::optional> findIntersection(const Rect& rectangle) const; | ^~~~~~~~ /usr/include/SFML/Graphics/Rect.hpp:98:29: note: 'std::optional' is only available from C++17 onwards 98 | [[nodiscard]] constexpr std::optional> findIntersection(const Rect& rectangle) const; | ^~~ In file included from /usr/include/SFML/Graphics/Rect.hpp:151: /usr/include/SFML/Graphics/Rect.inl:71:16: error: 'optional' in namespace 'std' does not name a template type 71 | constexpr std::optional> Rect::findIntersection(const Rect& rectangle) const | ^~~~~~~~ /usr/include/SFML/Graphics/Rect.inl:71:11: note: 'std::optional' is only available from C++17 onwards 71 | constexpr std::optional> Rect::findIntersection(const Rect& rectangle) const | ^~~ In file included from /usr/include/SFML/Graphics/Transform.hpp:352, from /usr/include/SFML/Graphics/RenderStates.hpp:35, from /usr/include/SFML/Graphics/Shape.hpp:36: /usr/include/SFML/Graphics/Transform.inl: In member function 'constexpr sf::FloatRect sf::Transform::transformRect(const sf::FloatRect&) const': /usr/include/SFML/Graphics/Transform.inl:101:11: error: invalid use of template-name 'std::array' without an argument list 101 | const std::array points = {transformPoint(rectangle.position), | ^~~ /usr/include/SFML/Graphics/Transform.inl:101:11: note: class template argument deduction is only available with '-std=c++17' or '-std=gnu++17' In file included from /usr/include/c++/14/bits/stl_algobase.h:64, from /usr/include/c++/14/string:51, from bh.h:27: /usr/include/c++/14/bits/stl_pair.h:99:12: note: 'template struct std::array' declared here 99 | struct array; | ^~~~~ /usr/include/SFML/Graphics/Transform.inl:107:21: error: 'points' was not declared in this scope; did you mean 'printf'? 107 | Vector2f pmin = points[0]; | ^~~~~~ | printf In file included from /usr/include/SFML/Graphics/Font.hpp:34, from /usr/include/SFML/Graphics.hpp:36: /usr/include/SFML/Graphics/Texture.hpp: At global scope: /usr/include/SFML/Graphics/Texture.hpp:114:33: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Texture.hpp:114:49: error: expected unqualified-id before '&' token 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^ /usr/include/SFML/Graphics/Texture.hpp:114:49: error: expected ')' before '&' token 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ~ ^ | ) /usr/include/SFML/Graphics/Texture.hpp:114:49: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Texture.hpp:114:49: error: expected ';' at end of member declaration 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^ | ; /usr/include/SFML/Graphics/Texture.hpp:114:51: error: 'filename' does not name a type 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^~~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:137:24: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Texture.hpp:137:40: error: expected unqualified-id before '&' token 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^ /usr/include/SFML/Graphics/Texture.hpp:137:40: error: expected ')' before '&' token 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ~ ^ | ) /usr/include/SFML/Graphics/Texture.hpp:137:40: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Texture.hpp:137:40: error: expected ';' at end of member declaration 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^ | ; /usr/include/SFML/Graphics/Texture.hpp:137:5: error: 'sf::Texture::Texture(...)' cannot be overloaded with 'sf::Texture::Texture(...)' 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:114:14: note: previous declaration 'sf::Texture::Texture(...)' 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:137:42: error: 'filename' does not name a type 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^~~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:304:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Texture.hpp:304:64: error: expected unqualified-id before '&' token 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^ /usr/include/SFML/Graphics/Texture.hpp:304:64: error: expected ')' before '&' token 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ~ ^ | ) /usr/include/SFML/Graphics/Texture.hpp:304:64: error: expected ';' at end of member declaration 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^ | ; /usr/include/SFML/Graphics/Texture.hpp:304:66: error: 'filename' does not name a type 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^~~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:304:119: error: expected unqualified-id before ')' token 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^ /usr/include/SFML/Graphics/Font.hpp:103:30: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 103 | explicit Font(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Font.hpp:103:46: error: expected unqualified-id before '&' token 103 | explicit Font(const std::filesystem::path& filename); | ^ /usr/include/SFML/Graphics/Font.hpp:103:46: error: expected ')' before '&' token 103 | explicit Font(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Graphics/Font.hpp:103:46: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Font.hpp:103:46: error: expected ';' at end of member declaration 103 | explicit Font(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Graphics/Font.hpp:103:48: error: 'filename' does not name a type 103 | explicit Font(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/Graphics/Font.hpp:168:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Font.hpp:168:64: error: expected unqualified-id before '&' token 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^ /usr/include/SFML/Graphics/Font.hpp:168:64: error: expected ')' before '&' token 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Graphics/Font.hpp:168:64: error: expected ';' at end of member declaration 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Graphics/Font.hpp:168:66: error: 'filename' does not name a type 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^~~~~~~~ In file included from /usr/include/SFML/Graphics.hpp:38: /usr/include/SFML/Graphics/Image.hpp:103:31: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 103 | explicit Image(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Image.hpp:103:47: error: expected unqualified-id before '&' token 103 | explicit Image(const std::filesystem::path& filename); | ^ /usr/include/SFML/Graphics/Image.hpp:103:47: error: expected ')' before '&' token 103 | explicit Image(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Graphics/Image.hpp:103:47: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Image.hpp:103:47: error: expected ';' at end of member declaration 103 | explicit Image(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Graphics/Image.hpp:103:49: error: 'filename' does not name a type 103 | explicit Image(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/Graphics/Image.hpp:175:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Image.hpp:175:64: error: expected unqualified-id before '&' token 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^ /usr/include/SFML/Graphics/Image.hpp:175:64: error: expected ')' before '&' token 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Graphics/Image.hpp:175:64: error: expected ';' at end of member declaration 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Graphics/Image.hpp:175:66: error: 'filename' does not name a type 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/Graphics/Image.hpp:227:46: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Image.hpp:227:62: error: expected unqualified-id before '&' token 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^ /usr/include/SFML/Graphics/Image.hpp:227:62: error: expected ')' before '&' token 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ~ ^ | ) /usr/include/SFML/Graphics/Image.hpp:227:62: error: expected ';' at end of member declaration 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^ | ; /usr/include/SFML/Graphics/Image.hpp:227:64: error: 'filename' does not name a type 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^~~~~~~~ /usr/include/SFML/Graphics/Image.hpp:245:24: error: 'optional' in namespace 'std' does not name a template type 245 | [[nodiscard]] std::optional> saveToMemory(std::string_view format) const; | ^~~~~~~~ /usr/include/SFML/Graphics/Image.hpp:245:19: note: 'std::optional' is only available from C++17 onwards 245 | [[nodiscard]] std::optional> saveToMemory(std::string_view format) const; | ^~~ In file included from /usr/include/SFML/Graphics.hpp:46: /usr/include/SFML/Graphics/Shader.hpp:147:23: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 147 | Shader(const std::filesystem::path& filename, Type type); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:147:39: error: expected unqualified-id before '&' token 147 | Shader(const std::filesystem::path& filename, Type type); | ^ /usr/include/SFML/Graphics/Shader.hpp:147:39: error: expected ')' before '&' token 147 | Shader(const std::filesystem::path& filename, Type type); | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:147:39: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Shader.hpp:147:39: error: expected ';' at end of member declaration 147 | Shader(const std::filesystem::path& filename, Type type); | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:147:41: error: 'filename' does not name a type 147 | Shader(const std::filesystem::path& filename, Type type); | ^~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:168:23: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:168:39: error: expected unqualified-id before '&' token 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^ /usr/include/SFML/Graphics/Shader.hpp:168:39: error: expected ')' before '&' token 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:168:39: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Shader.hpp:168:39: error: expected ';' at end of member declaration 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:168:5: error: 'sf::Shader::Shader(...)' cannot be overloaded with 'sf::Shader::Shader(...)' 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^~~~~~ /usr/include/SFML/Graphics/Shader.hpp:147:5: note: previous declaration 'sf::Shader::Shader(...)' 147 | Shader(const std::filesystem::path& filename, Type type); | ^~~~~~ /usr/include/SFML/Graphics/Shader.hpp:168:41: error: 'vertexShaderFilename' does not name a type 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:190:23: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:190:39: error: expected unqualified-id before '&' token 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^ /usr/include/SFML/Graphics/Shader.hpp:190:39: error: expected ')' before '&' token 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:190:39: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Shader.hpp:190:39: error: expected ';' at end of member declaration 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:190:5: error: 'sf::Shader::Shader(...)' cannot be overloaded with 'sf::Shader::Shader(...)' 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^~~~~~ /usr/include/SFML/Graphics/Shader.hpp:147:5: note: previous declaration 'sf::Shader::Shader(...)' 147 | Shader(const std::filesystem::path& filename, Type type); | ^~~~~~ /usr/include/SFML/Graphics/Shader.hpp:190:41: error: 'vertexShaderFilename' does not name a type 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:212:28: error: expected ')' before 'shader' 212 | Shader(std::string_view shader, Type type); | ~ ^~~~~~~ | ) /usr/include/SFML/Graphics/Shader.hpp:233:28: error: expected ')' before 'vertexShader' 233 | Shader(std::string_view vertexShader, std::string_view fragmentShader); | ~ ^~~~~~~~~~~~~ | ) /usr/include/SFML/Graphics/Shader.hpp:255:28: error: expected ')' before 'vertexShader' 255 | Shader(std::string_view vertexShader, std::string_view geometryShader, std::string_view fragmentShader); | ~ ^~~~~~~~~~~~~ | ) /usr/include/SFML/Graphics/Shader.hpp:339:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:339:64: error: expected unqualified-id before '&' token 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^ /usr/include/SFML/Graphics/Shader.hpp:339:64: error: expected ')' before '&' token 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:339:64: error: expected ';' at end of member declaration 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:339:66: error: 'filename' does not name a type 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:360:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:360:64: error: expected unqualified-id before '&' token 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^ /usr/include/SFML/Graphics/Shader.hpp:360:64: error: expected ')' before '&' token 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:360:64: error: expected ';' at end of member declaration 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:360:24: error: 'bool sf::Shader::loadFromFile(...) &' cannot be overloaded with 'bool sf::Shader::loadFromFile(...) &' 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:339:24: note: previous declaration 'bool sf::Shader::loadFromFile(...) &' 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:360:66: error: 'vertexShaderFilename' does not name a type 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:383:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:383:64: error: expected unqualified-id before '&' token 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^ /usr/include/SFML/Graphics/Shader.hpp:383:64: error: expected ')' before '&' token 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:383:64: error: expected ';' at end of member declaration 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:383:24: error: 'bool sf::Shader::loadFromFile(...) &' cannot be overloaded with 'bool sf::Shader::loadFromFile(...) &' 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:339:24: note: previous declaration 'bool sf::Shader::loadFromFile(...) &' 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:383:66: error: 'vertexShaderFilename' does not name a type 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:405:44: error: 'std::string_view' has not been declared 405 | [[nodiscard]] bool loadFromMemory(std::string_view shader, Type type); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:426:44: error: 'std::string_view' has not been declared 426 | [[nodiscard]] bool loadFromMemory(std::string_view vertexShader, std::string_view fragmentShader); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:426:75: error: 'std::string_view' has not been declared 426 | [[nodiscard]] bool loadFromMemory(std::string_view vertexShader, std::string_view fragmentShader); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:448:44: error: 'std::string_view' has not been declared 448 | [[nodiscard]] bool loadFromMemory(std::string_view vertexShader, | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:449:44: error: 'std::string_view' has not been declared 449 | std::string_view geometryShader, | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:450:44: error: 'std::string_view' has not been declared 450 | std::string_view fragmentShader); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:861:37: error: 'std::string_view' has not been declared 861 | [[nodiscard]] bool compile(std::string_view vertexShaderCode, | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:862:37: error: 'std::string_view' has not been declared 862 | std::string_view geometryShaderCode, | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:863:37: error: 'std::string_view' has not been declared 863 | std::string_view fragmentShaderCode); | ^~~~~~~~~~~ In file included from config_screen.cpp:48: gui.h:62:22: warning: 'virtual void TWidget::Focussed()' was hidden [-Woverloaded-virtual=] 62 | virtual void Focussed() {} | ^~~~~~~~ gui.h:76:14: note: by 'void TLabel::Focussed(bool)' 76 | void Focussed(bool masterFocus); | ^~~~~~~~ In file included from config_screen.cpp:50: winsys.h: In member function 'bool CWinsys::PollEvent(sf::Event&)': winsys.h:65:58: error: 'class sf::RenderWindow' has no member named 'pollEvent' 65 | bool PollEvent(sf::Event& event) { return window.pollEvent(event); } | ^~~~~~~~~ config_screen.cpp: In function 'void SetConfig()': config_screen.cpp:67:38: warning: comparison of integer expressions of different signedness: 'int' and 'std::size_t' {aka 'long unsigned int'} [-Wsign-compare] 67 | language->GetValue() != param.language || | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ config_screen.cpp:68:40: warning: comparison of integer expressions of different signedness: 'int' and 'std::size_t' {aka 'long unsigned int'} [-Wsign-compare] 68 | resolution->GetValue() != param.res_type || | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ config_screen.cpp:72:44: warning: comparison of integer expressions of different signedness: 'int' and 'std::size_t' {aka 'long unsigned int'} [-Wsign-compare] 72 | if (resolution->GetValue() != param.res_type || fullscreen->checked != param.fullscreen) { | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ config_screen.cpp:87:36: warning: comparison of integer expressions of different signedness: 'std::size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare] 87 | if (param.language != language->GetValue()) { | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ config_screen.cpp: In member function 'virtual void CGameConfig::Keyb(sf::Keyboard::Key, bool, int, int)': config_screen.cpp:100:36: error: 'U' is not a member of 'sf::Keyboard' 100 | case sf::Keyboard::U: | ^ config_screen.cpp:100:36: note: suggested alternatives: In file included from /usr/include/SFML/Window/Event.hpp:30: /usr/include/SFML/Window/Joystick.hpp:60:5: note: 'sf::Joystick::Axis::U' 60 | U, //!< The U axis | ^ In file included from /usr/include/SFML/Window/Event.hpp:31: /usr/include/SFML/Window/Keyboard.hpp:195:5: note: 'sf::Keyboard::Scan::U' 195 | U, //!< Keyboard u and U key | ^ /usr/include/SFML/Window/Keyboard.hpp:195:5: note: 'sf::Keyboard::Scan::U' /usr/include/SFML/Window/Keyboard.hpp:74:5: note: 'sf::Keyboard::Key::U' 74 | U, //!< The U key | ^ config_screen.cpp:103:36: error: 'Escape' is not a member of 'sf::Keyboard' 103 | case sf::Keyboard::Escape: | ^~~~~~ config_screen.cpp:103:36: note: suggested alternatives: /usr/include/SFML/Window/Keyboard.hpp:212:5: note: 'sf::Keyboard::Scan::Escape' 212 | Escape, //!< Keyboard Escape key | ^~~~~~ /usr/include/SFML/Window/Keyboard.hpp:212:5: note: 'sf::Keyboard::Scan::Escape' /usr/include/SFML/Window/Keyboard.hpp:90:5: note: 'sf::Keyboard::Key::Escape' 90 | Escape, //!< The Escape key | ^~~~~~ config_screen.cpp:106:36: error: 'Return' is not a member of 'sf::Keyboard' 106 | case sf::Keyboard::Return: | ^~~~~~ make[2]: *** [Makefile:566: config_screen.o] Error 1 make[2]: Leaving directory '/usr/src/RPM/BUILD/etr-0.8.4/src' make[2]: *** Waiting for unfinished jobs.... make[2]: Entering directory '/usr/src/RPM/BUILD/etr-0.8.4/src' x86_64-alt-linux-g++ -DHAVE_CONFIG_H -I. -I.. -DETR_DATA_DIR=\"/usr/share\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -std=c++14 -c -o common.o common.cpp In file included from /usr/include/SFML/System.hpp:34, from bh.h:30, from common.h:21, from common.cpp:22: /usr/include/SFML/System/Clock.hpp:78:20: error: 'ratio_less_equal_v' is not a member of 'std'; did you mean 'ratio_less_equal'? 78 | static_assert(std::ratio_less_equal_v, | ^~~~~~~~~~~~~~~~~~ | ratio_less_equal /usr/include/SFML/System/Clock.hpp:78:56: error: expected primary-expression before ',' token 78 | static_assert(std::ratio_less_equal_v, | ^ /usr/include/SFML/System/Clock.hpp:78:68: error: expected primary-expression before '>' token 78 | static_assert(std::ratio_less_equal_v, | ^ /usr/include/SFML/System/Clock.hpp:78:69: error: expected primary-expression before ',' token 78 | static_assert(std::ratio_less_equal_v, | ^ /usr/include/SFML/System/Clock.hpp:78:69: error: expected ')' before ',' token 78 | static_assert(std::ratio_less_equal_v, | ~ ^ | ) In file included from /usr/include/SFML/System/FileInputStream.hpp:34, from /usr/include/SFML/System.hpp:37: /usr/include/SFML/System/InputStream.hpp:66:32: error: 'optional' in namespace 'std' does not name a template type 66 | [[nodiscard]] virtual std::optional read(void* data, std::size_t size) = 0; | ^~~~~~~~ /usr/include/SFML/System/InputStream.hpp:66:27: note: 'std::optional' is only available from C++17 onwards 66 | [[nodiscard]] virtual std::optional read(void* data, std::size_t size) = 0; | ^~~ /usr/include/SFML/System/InputStream.hpp:76:32: error: 'optional' in namespace 'std' does not name a template type 76 | [[nodiscard]] virtual std::optional seek(std::size_t position) = 0; | ^~~~~~~~ /usr/include/SFML/System/InputStream.hpp:76:27: note: 'std::optional' is only available from C++17 onwards 76 | [[nodiscard]] virtual std::optional seek(std::size_t position) = 0; | ^~~ /usr/include/SFML/System/InputStream.hpp:84:32: error: 'optional' in namespace 'std' does not name a template type 84 | [[nodiscard]] virtual std::optional tell() = 0; | ^~~~~~~~ /usr/include/SFML/System/InputStream.hpp:84:27: note: 'std::optional' is only available from C++17 onwards 84 | [[nodiscard]] virtual std::optional tell() = 0; | ^~~ /usr/include/SFML/System/InputStream.hpp:92:18: error: 'optional' in namespace 'std' does not name a template type 92 | virtual std::optional getSize() = 0; | ^~~~~~~~ /usr/include/SFML/System/InputStream.hpp:92:13: note: 'std::optional' is only available from C++17 onwards 92 | virtual std::optional getSize() = 0; | ^~~ /usr/include/SFML/System/FileInputStream.hpp:106:41: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 106 | explicit FileInputStream(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/System/FileInputStream.hpp:106:57: error: expected unqualified-id before '&' token 106 | explicit FileInputStream(const std::filesystem::path& filename); | ^ /usr/include/SFML/System/FileInputStream.hpp:106:57: error: expected ')' before '&' token 106 | explicit FileInputStream(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/System/FileInputStream.hpp:106:57: error: constructors may not be ref-qualified /usr/include/SFML/System/FileInputStream.hpp:106:57: error: expected ';' at end of member declaration 106 | explicit FileInputStream(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/System/FileInputStream.hpp:106:59: error: 'filename' does not name a type 106 | explicit FileInputStream(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:116:40: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/System/FileInputStream.hpp:116:56: error: expected unqualified-id before '&' token 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ^ /usr/include/SFML/System/FileInputStream.hpp:116:56: error: expected ')' before '&' token 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/System/FileInputStream.hpp:116:56: error: expected ';' at end of member declaration 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/System/FileInputStream.hpp:116:58: error: 'filename' does not name a type 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:130:24: error: 'optional' in namespace 'std' does not name a template type 130 | [[nodiscard]] std::optional read(void* data, std::size_t size) override; | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:130:19: note: 'std::optional' is only available from C++17 onwards 130 | [[nodiscard]] std::optional read(void* data, std::size_t size) override; | ^~~ /usr/include/SFML/System/FileInputStream.hpp:140:24: error: 'optional' in namespace 'std' does not name a template type 140 | [[nodiscard]] std::optional seek(std::size_t position) override; | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:140:19: note: 'std::optional' is only available from C++17 onwards 140 | [[nodiscard]] std::optional seek(std::size_t position) override; | ^~~ /usr/include/SFML/System/FileInputStream.hpp:148:24: error: 'optional' in namespace 'std' does not name a template type 148 | [[nodiscard]] std::optional tell() override; | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:148:19: note: 'std::optional' is only available from C++17 onwards 148 | [[nodiscard]] std::optional tell() override; | ^~~ /usr/include/SFML/System/FileInputStream.hpp:156:10: error: 'optional' in namespace 'std' does not name a template type 156 | std::optional getSize() override; | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:156:5: note: 'std::optional' is only available from C++17 onwards 156 | std::optional getSize() override; | ^~~ In file included from /usr/include/SFML/System.hpp:39: /usr/include/SFML/System/MemoryInputStream.hpp:70:24: error: 'optional' in namespace 'std' does not name a template type 70 | [[nodiscard]] std::optional read(void* data, std::size_t size) override; | ^~~~~~~~ /usr/include/SFML/System/MemoryInputStream.hpp:70:19: note: 'std::optional' is only available from C++17 onwards 70 | [[nodiscard]] std::optional read(void* data, std::size_t size) override; | ^~~ /usr/include/SFML/System/MemoryInputStream.hpp:80:24: error: 'optional' in namespace 'std' does not name a template type 80 | [[nodiscard]] std::optional seek(std::size_t position) override; | ^~~~~~~~ /usr/include/SFML/System/MemoryInputStream.hpp:80:19: note: 'std::optional' is only available from C++17 onwards 80 | [[nodiscard]] std::optional seek(std::size_t position) override; | ^~~ /usr/include/SFML/System/MemoryInputStream.hpp:88:24: error: 'optional' in namespace 'std' does not name a template type 88 | [[nodiscard]] std::optional tell() override; | ^~~~~~~~ /usr/include/SFML/System/MemoryInputStream.hpp:88:19: note: 'std::optional' is only available from C++17 onwards 88 | [[nodiscard]] std::optional tell() override; | ^~~ /usr/include/SFML/System/MemoryInputStream.hpp:96:10: error: 'optional' in namespace 'std' does not name a template type 96 | std::optional getSize() override; | ^~~~~~~~ /usr/include/SFML/System/MemoryInputStream.hpp:96:5: note: 'std::optional' is only available from C++17 onwards 96 | std::optional getSize() override; | ^~~ /usr/include/SFML/System/MemoryInputStream.hpp:102:16: error: 'byte' in namespace 'std' does not name a type 102 | const std::byte* m_data{}; //!< Pointer to the data in memory | ^~~~ /usr/include/SFML/System/MemoryInputStream.hpp:102:11: note: 'std::byte' is only available from C++17 onwards 102 | const std::byte* m_data{}; //!< Pointer to the data in memory | ^~~ In file included from /usr/include/SFML/System/Utf.hpp:742, from /usr/include/SFML/System/String.hpp:32, from /usr/include/SFML/System.hpp:41: /usr/include/SFML/System/Utf.inl: In static member function 'static Out sf::Utf<8>::encode(char32_t, Out, uint8_t)': /usr/include/SFML/System/Utf.inl:137:25: error: 'byte' is not a member of 'std' 137 | std::array bytes{}; | ^~~~ /usr/include/SFML/System/Utf.inl:137:25: note: 'std::byte' is only available from C++17 onwards /usr/include/SFML/System/Utf.inl:137:25: error: 'byte' is not a member of 'std' /usr/include/SFML/System/Utf.inl:137:25: note: 'std::byte' is only available from C++17 onwards /usr/include/SFML/System/Utf.inl:137:32: error: template argument 1 is invalid 137 | std::array bytes{}; | ^ /usr/include/SFML/System/Utf.inl:142:26: error: invalid types 'int[int]' for array subscript 142 | case 4: bytes[3] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^ /usr/include/SFML/System/Utf.inl:142:49: error: 'byte' in namespace 'std' does not name a type 142 | case 4: bytes[3] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~~ /usr/include/SFML/System/Utf.inl:142:44: note: 'std::byte' is only available from C++17 onwards 142 | case 4: bytes[3] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~ /usr/include/SFML/System/Utf.inl:143:26: error: invalid types 'int[int]' for array subscript 143 | case 3: bytes[2] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^ /usr/include/SFML/System/Utf.inl:143:49: error: 'byte' in namespace 'std' does not name a type 143 | case 3: bytes[2] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~~ /usr/include/SFML/System/Utf.inl:143:44: note: 'std::byte' is only available from C++17 onwards 143 | case 3: bytes[2] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~ /usr/include/SFML/System/Utf.inl:144:26: error: invalid types 'int[int]' for array subscript 144 | case 2: bytes[1] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^ /usr/include/SFML/System/Utf.inl:144:49: error: 'byte' in namespace 'std' does not name a type 144 | case 2: bytes[1] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~~ /usr/include/SFML/System/Utf.inl:144:44: note: 'std::byte' is only available from C++17 onwards 144 | case 2: bytes[1] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~ /usr/include/SFML/System/Utf.inl:145:26: error: invalid types 'int[int]' for array subscript 145 | case 1: bytes[0] = static_cast (input | firstBytes[bytestoWrite]); | ^ /usr/include/SFML/System/Utf.inl:145:49: error: 'byte' in namespace 'std' does not name a type 145 | case 1: bytes[0] = static_cast (input | firstBytes[bytestoWrite]); | ^~~~ /usr/include/SFML/System/Utf.inl:145:44: note: 'std::byte' is only available from C++17 onwards 145 | case 1: bytes[0] = static_cast (input | firstBytes[bytestoWrite]); | ^~~ /usr/include/SFML/System/Utf.inl:150:35: error: request for member 'data' in 'bytes', which is of non-class type 'int' 150 | output = priv::copy(bytes.data(), bytes.data() + bytestoWrite, output); | ^~~~ /usr/include/SFML/System/Utf.inl:150:49: error: request for member 'data' in 'bytes', which is of non-class type 'int' 150 | output = priv::copy(bytes.data(), bytes.data() + bytestoWrite, output); | ^~~~ In file included from /usr/include/SFML/Window.hpp:32, from bh.h:31: /usr/include/SFML/Window/Context.hpp: At global scope: /usr/include/SFML/Window/Context.hpp:130:57: error: 'std::string_view' has not been declared 130 | [[nodiscard]] static bool isExtensionAvailable(std::string_view name); | ^~~~~~~~~~~ In file included from /usr/include/SFML/Window.hpp:34: /usr/include/SFML/Window/Cursor.hpp:226:31: error: 'optional' in namespace 'std' does not name a template type 226 | [[nodiscard]] static std::optional createFromPixels(const std::uint8_t* pixels, Vector2u size, Vector2u hotspot); | ^~~~~~~~ /usr/include/SFML/Window/Cursor.hpp:226:26: note: 'std::optional' is only available from C++17 onwards 226 | [[nodiscard]] static std::optional createFromPixels(const std::uint8_t* pixels, Vector2u size, Vector2u hotspot); | ^~~ /usr/include/SFML/Window/Cursor.hpp:242:31: error: 'optional' in namespace 'std' does not name a template type 242 | [[nodiscard]] static std::optional createFromSystem(Type type); | ^~~~~~~~ /usr/include/SFML/Window/Cursor.hpp:242:26: note: 'std::optional' is only available from C++17 onwards 242 | [[nodiscard]] static std::optional createFromSystem(Type type); | ^~~ In file included from /usr/include/SFML/Window.hpp:35: /usr/include/SFML/Window/Event.hpp:345:10: error: 'variant' in namespace 'std' does not name a template type 345 | std::variant*) | ^~~~~~~ /usr/include/SFML/Window/Event.hpp:374:65: note: 'std::variant' is only available from C++17 onwards 374 | [[nodiscard]] static constexpr bool isInParameterPack(const std::variant*) | ^~~ /usr/include/SFML/Window/Event.hpp:374:77: error: expected ',' or '...' before '<' token 374 | [[nodiscard]] static constexpr bool isInParameterPack(const std::variant*) | ^ /usr/include/SFML/Window/Event.hpp:380:76: error: 'm_data' was not declared in this scope 380 | static constexpr bool isEventSubtype = isInParameterPack(decltype (&m_data)(nullptr)); | ^~~~~~ /usr/include/SFML/Window/Event.hpp: In static member function 'static constexpr bool sf::Event::isInParameterPack(int)': /usr/include/SFML/Window/Event.hpp:376:22: error: 'is_same_v' is not a member of 'std'; did you mean 'is_same'? 376 | return (std::is_same_v || ...); | ^~~~~~~~~ | is_same /usr/include/SFML/Window/Event.hpp:376:33: error: expected primary-expression before ',' token 376 | return (std::is_same_v || ...); | ^ /usr/include/SFML/Window/Event.hpp:376:37: error: expected primary-expression before '>' token 376 | return (std::is_same_v || ...); | ^ /usr/include/SFML/Window/Event.hpp:376:39: error: expected primary-expression before '||' token 376 | return (std::is_same_v || ...); | ^~ /usr/include/SFML/Window/Event.hpp:376:42: error: operand of fold expression has no unexpanded parameter packs 376 | return (std::is_same_v || ...); | ^~~ In file included from /usr/include/SFML/Window/Event.hpp:385: /usr/include/SFML/Window/Event.inl: In constructor 'sf::Event::Event(const TEventSubtype&)': /usr/include/SFML/Window/Event.inl:47:9: error: 'm_data' was not declared in this scope 47 | m_data = eventSubtype; | ^~~~~~ /usr/include/SFML/Window/Event.inl: In member function 'bool sf::Event::is() const': /usr/include/SFML/Window/Event.inl:57:21: error: 'holds_alternative' is not a member of 'std' 57 | return std::holds_alternative(m_data); | ^~~~~~~~~~~~~~~~~ /usr/include/SFML/Window/Event.inl:57:21: note: 'std::holds_alternative' is only available from C++17 onwards /usr/include/SFML/Window/Event.inl:57:52: error: expected primary-expression before '>' token 57 | return std::holds_alternative(m_data); | ^ /usr/include/SFML/Window/Event.inl:57:54: error: 'm_data' was not declared in this scope 57 | return std::holds_alternative(m_data); | ^~~~~~ /usr/include/SFML/Window/Event.inl: In member function 'const TEventSubtype* sf::Event::getIf() const': /usr/include/SFML/Window/Event.inl:67:21: error: 'get_if' is not a member of 'std' 67 | return std::get_if(&m_data); | ^~~~~~ /usr/include/SFML/Window/Event.inl:67:41: error: expected primary-expression before '>' token 67 | return std::get_if(&m_data); | ^ /usr/include/SFML/Window/Event.inl:67:44: error: 'm_data' was not declared in this scope 67 | return std::get_if(&m_data); | ^~~~~~ /usr/include/SFML/Window/Event.inl: In member function 'decltype(auto) sf::Event::visit(T&&) const': /usr/include/SFML/Window/Event.inl:75:17: error: 'visit' is not a member of 'std' 75 | return std::visit(std::forward(visitor), m_data); | ^~~~~ /usr/include/SFML/Window/Event.inl:75:17: note: 'std::visit' is only available from C++17 onwards /usr/include/SFML/Window/Event.inl:75:49: error: 'm_data' was not declared in this scope 75 | return std::visit(std::forward(visitor), m_data); | ^~~~~~ In file included from /usr/include/SFML/Window/Window.hpp:32, from /usr/include/SFML/Window.hpp:42: /usr/include/SFML/Window/WindowBase.hpp: At global scope: /usr/include/SFML/Window/WindowBase.hpp:226:24: error: 'optional' in namespace 'std' does not name a template type 226 | [[nodiscard]] std::optional pollEvent(); | ^~~~~~~~ /usr/include/SFML/Window/WindowBase.hpp:226:19: note: 'std::optional' is only available from C++17 onwards 226 | [[nodiscard]] std::optional pollEvent(); | ^~~ /usr/include/SFML/Window/WindowBase.hpp:252:24: error: 'optional' in namespace 'std' does not name a template type 252 | [[nodiscard]] std::optional waitEvent(Time timeout = Time::Zero); | ^~~~~~~~ /usr/include/SFML/Window/WindowBase.hpp:252:19: note: 'std::optional' is only available from C++17 onwards 252 | [[nodiscard]] std::optional waitEvent(Time timeout = Time::Zero); | ^~~ /usr/include/SFML/Window/WindowBase.hpp:387:36: error: 'optional' in namespace 'std' does not name a template type 387 | void setMinimumSize(const std::optional& minimumSize); | ^~~~~~~~ /usr/include/SFML/Window/WindowBase.hpp:387:31: note: 'std::optional' is only available from C++17 onwards 387 | void setMinimumSize(const std::optional& minimumSize); | ^~~ /usr/include/SFML/Window/WindowBase.hpp:387:44: error: expected ',' or '...' before '<' token 387 | void setMinimumSize(const std::optional& minimumSize); | ^ /usr/include/SFML/Window/WindowBase.hpp:397:36: error: 'optional' in namespace 'std' does not name a template type 397 | void setMaximumSize(const std::optional& maximumSize); | ^~~~~~~~ /usr/include/SFML/Window/WindowBase.hpp:397:31: note: 'std::optional' is only available from C++17 onwards 397 | void setMaximumSize(const std::optional& maximumSize); | ^~~ /usr/include/SFML/Window/WindowBase.hpp:397:44: error: expected ',' or '...' before '<' token 397 | void setMaximumSize(const std::optional& maximumSize); | ^ In file included from /usr/include/SFML/Window/WindowBase.hpp:617: /usr/include/SFML/Window/WindowBase.inl:47:41: error: expected constructor, destructor, or type conversion before ';' token 47 | OverloadSet(Ts...) -> OverloadSet; | ^ /usr/include/SFML/Window/WindowBase.inl: In member function 'void sf::WindowBase::handleEvents(Ts&& ...)': /usr/include/SFML/Window/WindowBase.inl:69:23: error: missing template arguments before 'overloadSet' 69 | priv::OverloadSet overloadSet{std::forward(handlers)..., [](const priv::DelayOverloadResolution&) { /* ignore */ }}; | ^~~~~~~~~~~ /usr/include/SFML/Window/WindowBase.inl:71:32: error: qualified-id in declaration before 'event' 71 | while (const std::optional event = pollEvent()) | ^~~~~ /usr/include/SFML/Window/WindowBase.inl:72:9: error: 'event' was not declared in this scope; did you mean 'Event'? 72 | event->visit(overloadSet); | ^~~~~ | Event /usr/include/SFML/Window/WindowBase.inl:72:22: error: 'overloadSet' was not declared in this scope 72 | event->visit(overloadSet); | ^~~~~~~~~~~ In file included from /usr/include/SFML/Graphics/Color.hpp:229, from /usr/include/SFML/Graphics/Shape.hpp:32, from /usr/include/SFML/Graphics/CircleShape.hpp:32, from /usr/include/SFML/Graphics.hpp:32, from bh.h:32: /usr/include/SFML/Graphics/Color.inl: In function 'constexpr sf::Color sf::operator+(Color, Color)': /usr/include/SFML/Graphics/Color.inl:77:16: error: variable 'clampedAdd' of non-literal type 'const sf::operator+(Color, Color)::' in 'constexpr' function only available with '-std=c++2b' or '-std=gnu++2b' 77 | const auto clampedAdd = [](std::uint8_t lhs, std::uint8_t rhs) | ^~~~~~~~~~ /usr/include/SFML/Graphics/Color.inl:77:30: note: 'sf::operator+(Color, Color)::' is not literal because: 77 | const auto clampedAdd = [](std::uint8_t lhs, std::uint8_t rhs) | ^ cc1plus: note: 'sf::operator+(Color, Color)::' is a closure type, which is only literal in C++17 and later /usr/include/SFML/Graphics/Color.inl: In function 'constexpr sf::Color sf::operator-(Color, Color)': /usr/include/SFML/Graphics/Color.inl:93:16: error: variable 'clampedSub' of non-literal type 'const sf::operator-(Color, Color)::' in 'constexpr' function only available with '-std=c++2b' or '-std=gnu++2b' 93 | const auto clampedSub = [](std::uint8_t lhs, std::uint8_t rhs) | ^~~~~~~~~~ /usr/include/SFML/Graphics/Color.inl:93:30: note: 'sf::operator-(Color, Color)::' is not literal because: 93 | const auto clampedSub = [](std::uint8_t lhs, std::uint8_t rhs) | ^ cc1plus: note: 'sf::operator-(Color, Color)::' is a closure type, which is only literal in C++17 and later /usr/include/SFML/Graphics/Color.inl: In function 'constexpr sf::Color sf::operator*(Color, Color)': /usr/include/SFML/Graphics/Color.inl:109:16: error: variable 'scaledMul' of non-literal type 'const sf::operator*(Color, Color)::' in 'constexpr' function only available with '-std=c++2b' or '-std=gnu++2b' 109 | const auto scaledMul = [](std::uint8_t lhs, std::uint8_t rhs) | ^~~~~~~~~ /usr/include/SFML/Graphics/Color.inl:109:29: note: 'sf::operator*(Color, Color)::' is not literal because: 109 | const auto scaledMul = [](std::uint8_t lhs, std::uint8_t rhs) | ^ cc1plus: note: 'sf::operator*(Color, Color)::' is a closure type, which is only literal in C++17 and later In file included from /usr/include/SFML/Graphics/Shape.hpp:35: /usr/include/SFML/Graphics/Rect.hpp: At global scope: /usr/include/SFML/Graphics/Rect.hpp:98:34: error: 'optional' in namespace 'std' does not name a template type 98 | [[nodiscard]] constexpr std::optional> findIntersection(const Rect& rectangle) const; | ^~~~~~~~ /usr/include/SFML/Graphics/Rect.hpp:98:29: note: 'std::optional' is only available from C++17 onwards 98 | [[nodiscard]] constexpr std::optional> findIntersection(const Rect& rectangle) const; | ^~~ In file included from /usr/include/SFML/Graphics/Rect.hpp:151: /usr/include/SFML/Graphics/Rect.inl:71:16: error: 'optional' in namespace 'std' does not name a template type 71 | constexpr std::optional> Rect::findIntersection(const Rect& rectangle) const | ^~~~~~~~ /usr/include/SFML/Graphics/Rect.inl:71:11: note: 'std::optional' is only available from C++17 onwards 71 | constexpr std::optional> Rect::findIntersection(const Rect& rectangle) const | ^~~ In file included from /usr/include/SFML/Graphics/Transform.hpp:352, from /usr/include/SFML/Graphics/RenderStates.hpp:35, from /usr/include/SFML/Graphics/Shape.hpp:36: /usr/include/SFML/Graphics/Transform.inl: In member function 'constexpr sf::FloatRect sf::Transform::transformRect(const sf::FloatRect&) const': /usr/include/SFML/Graphics/Transform.inl:101:11: error: invalid use of template-name 'std::array' without an argument list 101 | const std::array points = {transformPoint(rectangle.position), | ^~~ /usr/include/SFML/Graphics/Transform.inl:101:11: note: class template argument deduction is only available with '-std=c++17' or '-std=gnu++17' In file included from /usr/include/c++/14/bits/stl_algobase.h:64, from /usr/include/c++/14/string:51, from bh.h:27: /usr/include/c++/14/bits/stl_pair.h:99:12: note: 'template struct std::array' declared here 99 | struct array; | ^~~~~ /usr/include/SFML/Graphics/Transform.inl:107:21: error: 'points' was not declared in this scope; did you mean 'printf'? 107 | Vector2f pmin = points[0]; | ^~~~~~ | printf In file included from /usr/include/SFML/Graphics/Font.hpp:34, from /usr/include/SFML/Graphics.hpp:36: /usr/include/SFML/Graphics/Texture.hpp: At global scope: /usr/include/SFML/Graphics/Texture.hpp:114:33: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Texture.hpp:114:49: error: expected unqualified-id before '&' token 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^ /usr/include/SFML/Graphics/Texture.hpp:114:49: error: expected ')' before '&' token 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ~ ^ | ) /usr/include/SFML/Graphics/Texture.hpp:114:49: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Texture.hpp:114:49: error: expected ';' at end of member declaration 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^ | ; /usr/include/SFML/Graphics/Texture.hpp:114:51: error: 'filename' does not name a type 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^~~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:137:24: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Texture.hpp:137:40: error: expected unqualified-id before '&' token 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^ /usr/include/SFML/Graphics/Texture.hpp:137:40: error: expected ')' before '&' token 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ~ ^ | ) /usr/include/SFML/Graphics/Texture.hpp:137:40: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Texture.hpp:137:40: error: expected ';' at end of member declaration 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^ | ; /usr/include/SFML/Graphics/Texture.hpp:137:5: error: 'sf::Texture::Texture(...)' cannot be overloaded with 'sf::Texture::Texture(...)' 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:114:14: note: previous declaration 'sf::Texture::Texture(...)' 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:137:42: error: 'filename' does not name a type 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^~~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:304:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Texture.hpp:304:64: error: expected unqualified-id before '&' token 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^ /usr/include/SFML/Graphics/Texture.hpp:304:64: error: expected ')' before '&' token 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ~ ^ | ) /usr/include/SFML/Graphics/Texture.hpp:304:64: error: expected ';' at end of member declaration 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^ | ; /usr/include/SFML/Graphics/Texture.hpp:304:66: error: 'filename' does not name a type 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^~~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:304:119: error: expected unqualified-id before ')' token 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^ /usr/include/SFML/Graphics/Font.hpp:103:30: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 103 | explicit Font(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Font.hpp:103:46: error: expected unqualified-id before '&' token 103 | explicit Font(const std::filesystem::path& filename); | ^ /usr/include/SFML/Graphics/Font.hpp:103:46: error: expected ')' before '&' token 103 | explicit Font(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Graphics/Font.hpp:103:46: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Font.hpp:103:46: error: expected ';' at end of member declaration 103 | explicit Font(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Graphics/Font.hpp:103:48: error: 'filename' does not name a type 103 | explicit Font(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/Graphics/Font.hpp:168:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Font.hpp:168:64: error: expected unqualified-id before '&' token 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^ /usr/include/SFML/Graphics/Font.hpp:168:64: error: expected ')' before '&' token 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Graphics/Font.hpp:168:64: error: expected ';' at end of member declaration 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Graphics/Font.hpp:168:66: error: 'filename' does not name a type 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^~~~~~~~ In file included from /usr/include/SFML/Graphics.hpp:38: /usr/include/SFML/Graphics/Image.hpp:103:31: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 103 | explicit Image(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Image.hpp:103:47: error: expected unqualified-id before '&' token 103 | explicit Image(const std::filesystem::path& filename); | ^ /usr/include/SFML/Graphics/Image.hpp:103:47: error: expected ')' before '&' token 103 | explicit Image(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Graphics/Image.hpp:103:47: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Image.hpp:103:47: error: expected ';' at end of member declaration 103 | explicit Image(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Graphics/Image.hpp:103:49: error: 'filename' does not name a type 103 | explicit Image(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/Graphics/Image.hpp:175:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Image.hpp:175:64: error: expected unqualified-id before '&' token 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^ /usr/include/SFML/Graphics/Image.hpp:175:64: error: expected ')' before '&' token 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Graphics/Image.hpp:175:64: error: expected ';' at end of member declaration 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Graphics/Image.hpp:175:66: error: 'filename' does not name a type 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/Graphics/Image.hpp:227:46: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Image.hpp:227:62: error: expected unqualified-id before '&' token 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^ /usr/include/SFML/Graphics/Image.hpp:227:62: error: expected ')' before '&' token 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ~ ^ | ) /usr/include/SFML/Graphics/Image.hpp:227:62: error: expected ';' at end of member declaration 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^ | ; /usr/include/SFML/Graphics/Image.hpp:227:64: error: 'filename' does not name a type 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^~~~~~~~ /usr/include/SFML/Graphics/Image.hpp:245:24: error: 'optional' in namespace 'std' does not name a template type 245 | [[nodiscard]] std::optional> saveToMemory(std::string_view format) const; | ^~~~~~~~ /usr/include/SFML/Graphics/Image.hpp:245:19: note: 'std::optional' is only available from C++17 onwards 245 | [[nodiscard]] std::optional> saveToMemory(std::string_view format) const; | ^~~ In file included from /usr/include/SFML/Graphics.hpp:46: /usr/include/SFML/Graphics/Shader.hpp:147:23: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 147 | Shader(const std::filesystem::path& filename, Type type); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:147:39: error: expected unqualified-id before '&' token 147 | Shader(const std::filesystem::path& filename, Type type); | ^ /usr/include/SFML/Graphics/Shader.hpp:147:39: error: expected ')' before '&' token 147 | Shader(const std::filesystem::path& filename, Type type); | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:147:39: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Shader.hpp:147:39: error: expected ';' at end of member declaration 147 | Shader(const std::filesystem::path& filename, Type type); | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:147:41: error: 'filename' does not name a type 147 | Shader(const std::filesystem::path& filename, Type type); | ^~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:168:23: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:168:39: error: expected unqualified-id before '&' token 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^ /usr/include/SFML/Graphics/Shader.hpp:168:39: error: expected ')' before '&' token 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:168:39: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Shader.hpp:168:39: error: expected ';' at end of member declaration 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:168:5: error: 'sf::Shader::Shader(...)' cannot be overloaded with 'sf::Shader::Shader(...)' 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^~~~~~ /usr/include/SFML/Graphics/Shader.hpp:147:5: note: previous declaration 'sf::Shader::Shader(...)' 147 | Shader(const std::filesystem::path& filename, Type type); | ^~~~~~ /usr/include/SFML/Graphics/Shader.hpp:168:41: error: 'vertexShaderFilename' does not name a type 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:190:23: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:190:39: error: expected unqualified-id before '&' token 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^ /usr/include/SFML/Graphics/Shader.hpp:190:39: error: expected ')' before '&' token 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:190:39: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Shader.hpp:190:39: error: expected ';' at end of member declaration 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:190:5: error: 'sf::Shader::Shader(...)' cannot be overloaded with 'sf::Shader::Shader(...)' 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^~~~~~ /usr/include/SFML/Graphics/Shader.hpp:147:5: note: previous declaration 'sf::Shader::Shader(...)' 147 | Shader(const std::filesystem::path& filename, Type type); | ^~~~~~ /usr/include/SFML/Graphics/Shader.hpp:190:41: error: 'vertexShaderFilename' does not name a type 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:212:28: error: expected ')' before 'shader' 212 | Shader(std::string_view shader, Type type); | ~ ^~~~~~~ | ) /usr/include/SFML/Graphics/Shader.hpp:233:28: error: expected ')' before 'vertexShader' 233 | Shader(std::string_view vertexShader, std::string_view fragmentShader); | ~ ^~~~~~~~~~~~~ | ) /usr/include/SFML/Graphics/Shader.hpp:255:28: error: expected ')' before 'vertexShader' 255 | Shader(std::string_view vertexShader, std::string_view geometryShader, std::string_view fragmentShader); | ~ ^~~~~~~~~~~~~ | ) /usr/include/SFML/Graphics/Shader.hpp:339:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:339:64: error: expected unqualified-id before '&' token 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^ /usr/include/SFML/Graphics/Shader.hpp:339:64: error: expected ')' before '&' token 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:339:64: error: expected ';' at end of member declaration 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:339:66: error: 'filename' does not name a type 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:360:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:360:64: error: expected unqualified-id before '&' token 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^ /usr/include/SFML/Graphics/Shader.hpp:360:64: error: expected ')' before '&' token 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:360:64: error: expected ';' at end of member declaration 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:360:24: error: 'bool sf::Shader::loadFromFile(...) &' cannot be overloaded with 'bool sf::Shader::loadFromFile(...) &' 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:339:24: note: previous declaration 'bool sf::Shader::loadFromFile(...) &' 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:360:66: error: 'vertexShaderFilename' does not name a type 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:383:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:383:64: error: expected unqualified-id before '&' token 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^ /usr/include/SFML/Graphics/Shader.hpp:383:64: error: expected ')' before '&' token 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:383:64: error: expected ';' at end of member declaration 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:383:24: error: 'bool sf::Shader::loadFromFile(...) &' cannot be overloaded with 'bool sf::Shader::loadFromFile(...) &' 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:339:24: note: previous declaration 'bool sf::Shader::loadFromFile(...) &' 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:383:66: error: 'vertexShaderFilename' does not name a type 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:405:44: error: 'std::string_view' has not been declared 405 | [[nodiscard]] bool loadFromMemory(std::string_view shader, Type type); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:426:44: error: 'std::string_view' has not been declared 426 | [[nodiscard]] bool loadFromMemory(std::string_view vertexShader, std::string_view fragmentShader); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:426:75: error: 'std::string_view' has not been declared 426 | [[nodiscard]] bool loadFromMemory(std::string_view vertexShader, std::string_view fragmentShader); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:448:44: error: 'std::string_view' has not been declared 448 | [[nodiscard]] bool loadFromMemory(std::string_view vertexShader, | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:449:44: error: 'std::string_view' has not been declared 449 | std::string_view geometryShader, | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:450:44: error: 'std::string_view' has not been declared 450 | std::string_view fragmentShader); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:861:37: error: 'std::string_view' has not been declared 861 | [[nodiscard]] bool compile(std::string_view vertexShaderCode, | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:862:37: error: 'std::string_view' has not been declared 862 | std::string_view geometryShaderCode, | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:863:37: error: 'std::string_view' has not been declared 863 | std::string_view fragmentShaderCode); | ^~~~~~~~~~~ common.cpp:33:54: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:34:41: note: in expansion of macro 'TColor' 34 | const sf::Color colDYell = TColor(1.0, 0.8, 0.0, 1.0); | ^~~~~~ common.cpp:33:85: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:34:41: note: in expansion of macro 'TColor' 34 | const sf::Color colDYell = TColor(1.0, 0.8, 0.0, 1.0); | ^~~~~~ common.cpp:33:116: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:34:41: note: in expansion of macro 'TColor' 34 | const sf::Color colDYell = TColor(1.0, 0.8, 0.0, 1.0); | ^~~~~~ common.cpp:33:147: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:34:41: note: in expansion of macro 'TColor' 34 | const sf::Color colDYell = TColor(1.0, 0.8, 0.0, 1.0); | ^~~~~~ common.cpp:33:37: error: expected primary-expression before '(' token 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^ common.cpp:34:41: note: in expansion of macro 'TColor' 34 | const sf::Color colDYell = TColor(1.0, 0.8, 0.0, 1.0); | ^~~~~~ common.cpp:33:54: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:34:41: note: in expansion of macro 'TColor' 34 | const sf::Color colDYell = TColor(1.0, 0.8, 0.0, 1.0); | ^~~~~~ common.cpp:33:85: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:34:41: note: in expansion of macro 'TColor' 34 | const sf::Color colDYell = TColor(1.0, 0.8, 0.0, 1.0); | ^~~~~~ common.cpp:33:116: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:34:41: note: in expansion of macro 'TColor' 34 | const sf::Color colDYell = TColor(1.0, 0.8, 0.0, 1.0); | ^~~~~~ common.cpp:33:147: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:34:41: note: in expansion of macro 'TColor' 34 | const sf::Color colDYell = TColor(1.0, 0.8, 0.0, 1.0); | ^~~~~~ common.cpp:33:54: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:35:41: note: in expansion of macro 'TColor' 35 | const sf::Color colDDYell = TColor(0.8, 0.6, 0.0, 1.0); | ^~~~~~ common.cpp:33:85: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:35:41: note: in expansion of macro 'TColor' 35 | const sf::Color colDDYell = TColor(0.8, 0.6, 0.0, 1.0); | ^~~~~~ common.cpp:33:116: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:35:41: note: in expansion of macro 'TColor' 35 | const sf::Color colDDYell = TColor(0.8, 0.6, 0.0, 1.0); | ^~~~~~ common.cpp:33:147: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:35:41: note: in expansion of macro 'TColor' 35 | const sf::Color colDDYell = TColor(0.8, 0.6, 0.0, 1.0); | ^~~~~~ common.cpp:33:37: error: expected primary-expression before '(' token 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^ common.cpp:35:41: note: in expansion of macro 'TColor' 35 | const sf::Color colDDYell = TColor(0.8, 0.6, 0.0, 1.0); | ^~~~~~ common.cpp:33:54: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:35:41: note: in expansion of macro 'TColor' 35 | const sf::Color colDDYell = TColor(0.8, 0.6, 0.0, 1.0); | ^~~~~~ common.cpp:33:85: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:35:41: note: in expansion of macro 'TColor' 35 | const sf::Color colDDYell = TColor(0.8, 0.6, 0.0, 1.0); | ^~~~~~ common.cpp:33:116: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:35:41: note: in expansion of macro 'TColor' 35 | const sf::Color colDDYell = TColor(0.8, 0.6, 0.0, 1.0); | ^~~~~~ common.cpp:33:147: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:35:41: note: in expansion of macro 'TColor' 35 | const sf::Color colDDYell = TColor(0.8, 0.6, 0.0, 1.0); | ^~~~~~ common.cpp:33:54: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:36:41: note: in expansion of macro 'TColor' 36 | const sf::Color colLYell = TColor(1.0, 1.0, 0.4, 1.0); | ^~~~~~ common.cpp:33:85: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:36:41: note: in expansion of macro 'TColor' 36 | const sf::Color colLYell = TColor(1.0, 1.0, 0.4, 1.0); | ^~~~~~ common.cpp:33:116: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:36:41: note: in expansion of macro 'TColor' 36 | const sf::Color colLYell = TColor(1.0, 1.0, 0.4, 1.0); | ^~~~~~ common.cpp:33:147: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:36:41: note: in expansion of macro 'TColor' 36 | const sf::Color colLYell = TColor(1.0, 1.0, 0.4, 1.0); | ^~~~~~ common.cpp:33:37: error: expected primary-expression before '(' token 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^ common.cpp:36:41: note: in expansion of macro 'TColor' 36 | const sf::Color colLYell = TColor(1.0, 1.0, 0.4, 1.0); | ^~~~~~ common.cpp:33:54: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:36:41: note: in expansion of macro 'TColor' 36 | const sf::Color colLYell = TColor(1.0, 1.0, 0.4, 1.0); | ^~~~~~ common.cpp:33:85: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:36:41: note: in expansion of macro 'TColor' 36 | const sf::Color colLYell = TColor(1.0, 1.0, 0.4, 1.0); | ^~~~~~ common.cpp:33:116: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:36:41: note: in expansion of macro 'TColor' 36 | const sf::Color colLYell = TColor(1.0, 1.0, 0.4, 1.0); | ^~~~~~ common.cpp:33:147: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:36:41: note: in expansion of macro 'TColor' 36 | const sf::Color colLYell = TColor(1.0, 1.0, 0.4, 1.0); | ^~~~~~ common.cpp:33:54: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:37:41: note: in expansion of macro 'TColor' 37 | const sf::Color colOrange = TColor(1.0, 0.5, 0.0, 1.0); | ^~~~~~ common.cpp:33:85: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:37:41: note: in expansion of macro 'TColor' 37 | const sf::Color colOrange = TColor(1.0, 0.5, 0.0, 1.0); | ^~~~~~ common.cpp:33:116: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:37:41: note: in expansion of macro 'TColor' 37 | const sf::Color colOrange = TColor(1.0, 0.5, 0.0, 1.0); | ^~~~~~ common.cpp:33:147: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:37:41: note: in expansion of macro 'TColor' 37 | const sf::Color colOrange = TColor(1.0, 0.5, 0.0, 1.0); | ^~~~~~ common.cpp:33:37: error: expected primary-expression before '(' token 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^ common.cpp:37:41: note: in expansion of macro 'TColor' 37 | const sf::Color colOrange = TColor(1.0, 0.5, 0.0, 1.0); | ^~~~~~ common.cpp:33:54: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:37:41: note: in expansion of macro 'TColor' 37 | const sf::Color colOrange = TColor(1.0, 0.5, 0.0, 1.0); | ^~~~~~ common.cpp:33:85: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:37:41: note: in expansion of macro 'TColor' 37 | const sf::Color colOrange = TColor(1.0, 0.5, 0.0, 1.0); | ^~~~~~ common.cpp:33:116: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:37:41: note: in expansion of macro 'TColor' 37 | const sf::Color colOrange = TColor(1.0, 0.5, 0.0, 1.0); | ^~~~~~ common.cpp:33:147: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:37:41: note: in expansion of macro 'TColor' 37 | const sf::Color colOrange = TColor(1.0, 0.5, 0.0, 1.0); | ^~~~~~ common.cpp:33:54: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:38:41: note: in expansion of macro 'TColor' 38 | const sf::Color colLRed = TColor(1.0, 0.3, 0.3, 1.0); | ^~~~~~ common.cpp:33:85: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:38:41: note: in expansion of macro 'TColor' 38 | const sf::Color colLRed = TColor(1.0, 0.3, 0.3, 1.0); | ^~~~~~ common.cpp:33:116: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:38:41: note: in expansion of macro 'TColor' 38 | const sf::Color colLRed = TColor(1.0, 0.3, 0.3, 1.0); | ^~~~~~ common.cpp:33:147: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:38:41: note: in expansion of macro 'TColor' 38 | const sf::Color colLRed = TColor(1.0, 0.3, 0.3, 1.0); | ^~~~~~ common.cpp:33:37: error: expected primary-expression before '(' token 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^ common.cpp:38:41: note: in expansion of macro 'TColor' 38 | const sf::Color colLRed = TColor(1.0, 0.3, 0.3, 1.0); | ^~~~~~ common.cpp:33:54: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:38:41: note: in expansion of macro 'TColor' 38 | const sf::Color colLRed = TColor(1.0, 0.3, 0.3, 1.0); | ^~~~~~ common.cpp:33:85: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:38:41: note: in expansion of macro 'TColor' 38 | const sf::Color colLRed = TColor(1.0, 0.3, 0.3, 1.0); | ^~~~~~ common.cpp:33:116: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:38:41: note: in expansion of macro 'TColor' 38 | const sf::Color colLRed = TColor(1.0, 0.3, 0.3, 1.0); | ^~~~~~ common.cpp:33:147: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:38:41: note: in expansion of macro 'TColor' 38 | const sf::Color colLRed = TColor(1.0, 0.3, 0.3, 1.0); | ^~~~~~ common.cpp:33:54: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:39:41: note: in expansion of macro 'TColor' 39 | const sf::Color colDRed = TColor(0.8, 0.0, 0.0, 1.0); | ^~~~~~ common.cpp:33:85: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:39:41: note: in expansion of macro 'TColor' 39 | const sf::Color colDRed = TColor(0.8, 0.0, 0.0, 1.0); | ^~~~~~ common.cpp:33:116: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:39:41: note: in expansion of macro 'TColor' 39 | const sf::Color colDRed = TColor(0.8, 0.0, 0.0, 1.0); | ^~~~~~ common.cpp:33:147: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:39:41: note: in expansion of macro 'TColor' 39 | const sf::Color colDRed = TColor(0.8, 0.0, 0.0, 1.0); | ^~~~~~ common.cpp:33:37: error: expected primary-expression before '(' token 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^ common.cpp:39:41: note: in expansion of macro 'TColor' 39 | const sf::Color colDRed = TColor(0.8, 0.0, 0.0, 1.0); | ^~~~~~ common.cpp:33:54: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:39:41: note: in expansion of macro 'TColor' 39 | const sf::Color colDRed = TColor(0.8, 0.0, 0.0, 1.0); | ^~~~~~ common.cpp:33:85: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:39:41: note: in expansion of macro 'TColor' 39 | const sf::Color colDRed = TColor(0.8, 0.0, 0.0, 1.0); | ^~~~~~ common.cpp:33:116: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:39:41: note: in expansion of macro 'TColor' 39 | const sf::Color colDRed = TColor(0.8, 0.0, 0.0, 1.0); | ^~~~~~ common.cpp:33:147: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:39:41: note: in expansion of macro 'TColor' 39 | const sf::Color colDRed = TColor(0.8, 0.0, 0.0, 1.0); | ^~~~~~ common.cpp:33:54: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:40:41: note: in expansion of macro 'TColor' 40 | const sf::Color colGrey = TColor(0.5, 0.5, 0.5, 1.0); | ^~~~~~ common.cpp:33:85: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:40:41: note: in expansion of macro 'TColor' 40 | const sf::Color colGrey = TColor(0.5, 0.5, 0.5, 1.0); | ^~~~~~ common.cpp:33:116: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:40:41: note: in expansion of macro 'TColor' 40 | const sf::Color colGrey = TColor(0.5, 0.5, 0.5, 1.0); | ^~~~~~ common.cpp:33:147: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:40:41: note: in expansion of macro 'TColor' 40 | const sf::Color colGrey = TColor(0.5, 0.5, 0.5, 1.0); | ^~~~~~ common.cpp:33:37: error: expected primary-expression before '(' token 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^ common.cpp:40:41: note: in expansion of macro 'TColor' 40 | const sf::Color colGrey = TColor(0.5, 0.5, 0.5, 1.0); | ^~~~~~ common.cpp:33:54: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:40:41: note: in expansion of macro 'TColor' 40 | const sf::Color colGrey = TColor(0.5, 0.5, 0.5, 1.0); | ^~~~~~ common.cpp:33:85: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:40:41: note: in expansion of macro 'TColor' 40 | const sf::Color colGrey = TColor(0.5, 0.5, 0.5, 1.0); | ^~~~~~ common.cpp:33:116: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:40:41: note: in expansion of macro 'TColor' 40 | const sf::Color colGrey = TColor(0.5, 0.5, 0.5, 1.0); | ^~~~~~ common.cpp:33:147: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:40:41: note: in expansion of macro 'TColor' 40 | const sf::Color colGrey = TColor(0.5, 0.5, 0.5, 1.0); | ^~~~~~ common.cpp:33:54: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:41:41: note: in expansion of macro 'TColor' 41 | const sf::Color colLGrey = TColor(0.7, 0.7, 0.7, 1.0); | ^~~~~~ common.cpp:33:85: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:41:41: note: in expansion of macro 'TColor' 41 | const sf::Color colLGrey = TColor(0.7, 0.7, 0.7, 1.0); | ^~~~~~ common.cpp:33:116: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:41:41: note: in expansion of macro 'TColor' 41 | const sf::Color colLGrey = TColor(0.7, 0.7, 0.7, 1.0); | ^~~~~~ common.cpp:33:147: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:41:41: note: in expansion of macro 'TColor' 41 | const sf::Color colLGrey = TColor(0.7, 0.7, 0.7, 1.0); | ^~~~~~ common.cpp:33:37: error: expected primary-expression before '(' token 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^ common.cpp:41:41: note: in expansion of macro 'TColor' 41 | const sf::Color colLGrey = TColor(0.7, 0.7, 0.7, 1.0); | ^~~~~~ common.cpp:33:54: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:41:41: note: in expansion of macro 'TColor' 41 | const sf::Color colLGrey = TColor(0.7, 0.7, 0.7, 1.0); | ^~~~~~ common.cpp:33:85: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:41:41: note: in expansion of macro 'TColor' 41 | const sf::Color colLGrey = TColor(0.7, 0.7, 0.7, 1.0); | ^~~~~~ common.cpp:33:116: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:41:41: note: in expansion of macro 'TColor' 41 | const sf::Color colLGrey = TColor(0.7, 0.7, 0.7, 1.0); | ^~~~~~ common.cpp:33:147: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:41:41: note: in expansion of macro 'TColor' 41 | const sf::Color colLGrey = TColor(0.7, 0.7, 0.7, 1.0); | ^~~~~~ common.cpp:33:54: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:42:41: note: in expansion of macro 'TColor' 42 | const sf::Color colDGrey = TColor(0.3, 0.3, 0.3, 1.0); | ^~~~~~ common.cpp:33:85: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:42:41: note: in expansion of macro 'TColor' 42 | const sf::Color colDGrey = TColor(0.3, 0.3, 0.3, 1.0); | ^~~~~~ common.cpp:33:116: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:42:41: note: in expansion of macro 'TColor' 42 | const sf::Color colDGrey = TColor(0.3, 0.3, 0.3, 1.0); | ^~~~~~ common.cpp:33:147: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:42:41: note: in expansion of macro 'TColor' 42 | const sf::Color colDGrey = TColor(0.3, 0.3, 0.3, 1.0); | ^~~~~~ common.cpp:33:37: error: expected primary-expression before '(' token 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^ common.cpp:42:41: note: in expansion of macro 'TColor' 42 | const sf::Color colDGrey = TColor(0.3, 0.3, 0.3, 1.0); | ^~~~~~ common.cpp:33:54: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:42:41: note: in expansion of macro 'TColor' 42 | const sf::Color colDGrey = TColor(0.3, 0.3, 0.3, 1.0); | ^~~~~~ common.cpp:33:85: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:42:41: note: in expansion of macro 'TColor' 42 | const sf::Color colDGrey = TColor(0.3, 0.3, 0.3, 1.0); | ^~~~~~ common.cpp:33:116: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:42:41: note: in expansion of macro 'TColor' 42 | const sf::Color colDGrey = TColor(0.3, 0.3, 0.3, 1.0); | ^~~~~~ common.cpp:33:147: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:42:41: note: in expansion of macro 'TColor' 42 | const sf::Color colDGrey = TColor(0.3, 0.3, 0.3, 1.0); | ^~~~~~ common.cpp:33:54: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:43:41: note: in expansion of macro 'TColor' 43 | const sf::Color colLBlue = TColor(0.5, 0.7, 1.0, 1.0); | ^~~~~~ common.cpp:33:85: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:43:41: note: in expansion of macro 'TColor' 43 | const sf::Color colLBlue = TColor(0.5, 0.7, 1.0, 1.0); | ^~~~~~ common.cpp:33:116: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:43:41: note: in expansion of macro 'TColor' 43 | const sf::Color colLBlue = TColor(0.5, 0.7, 1.0, 1.0); | ^~~~~~ common.cpp:33:147: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:43:41: note: in expansion of macro 'TColor' 43 | const sf::Color colLBlue = TColor(0.5, 0.7, 1.0, 1.0); | ^~~~~~ common.cpp:33:37: error: expected primary-expression before '(' token 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^ common.cpp:43:41: note: in expansion of macro 'TColor' 43 | const sf::Color colLBlue = TColor(0.5, 0.7, 1.0, 1.0); | ^~~~~~ common.cpp:33:54: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:43:41: note: in expansion of macro 'TColor' 43 | const sf::Color colLBlue = TColor(0.5, 0.7, 1.0, 1.0); | ^~~~~~ common.cpp:33:85: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:43:41: note: in expansion of macro 'TColor' 43 | const sf::Color colLBlue = TColor(0.5, 0.7, 1.0, 1.0); | ^~~~~~ common.cpp:33:116: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:43:41: note: in expansion of macro 'TColor' 43 | const sf::Color colLBlue = TColor(0.5, 0.7, 1.0, 1.0); | ^~~~~~ common.cpp:33:147: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:43:41: note: in expansion of macro 'TColor' 43 | const sf::Color colLBlue = TColor(0.5, 0.7, 1.0, 1.0); | ^~~~~~ common.cpp:33:54: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:44:41: note: in expansion of macro 'TColor' 44 | const sf::Color colDBlue = TColor(0.0, 0.0, 0.6, 1.0); | ^~~~~~ common.cpp:33:85: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:44:41: note: in expansion of macro 'TColor' 44 | const sf::Color colDBlue = TColor(0.0, 0.0, 0.6, 1.0); | ^~~~~~ common.cpp:33:116: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:44:41: note: in expansion of macro 'TColor' 44 | const sf::Color colDBlue = TColor(0.0, 0.0, 0.6, 1.0); | ^~~~~~ common.cpp:33:147: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:44:41: note: in expansion of macro 'TColor' 44 | const sf::Color colDBlue = TColor(0.0, 0.0, 0.6, 1.0); | ^~~~~~ common.cpp:33:37: error: expected primary-expression before '(' token 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^ common.cpp:44:41: note: in expansion of macro 'TColor' 44 | const sf::Color colDBlue = TColor(0.0, 0.0, 0.6, 1.0); | ^~~~~~ common.cpp:33:54: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:44:41: note: in expansion of macro 'TColor' 44 | const sf::Color colDBlue = TColor(0.0, 0.0, 0.6, 1.0); | ^~~~~~ common.cpp:33:85: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:44:41: note: in expansion of macro 'TColor' 44 | const sf::Color colDBlue = TColor(0.0, 0.0, 0.6, 1.0); | ^~~~~~ common.cpp:33:116: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:44:41: note: in expansion of macro 'TColor' 44 | const sf::Color colDBlue = TColor(0.0, 0.0, 0.6, 1.0); | ^~~~~~ common.cpp:33:147: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:44:41: note: in expansion of macro 'TColor' 44 | const sf::Color colDBlue = TColor(0.0, 0.0, 0.6, 1.0); | ^~~~~~ common.cpp:33:54: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:45:33: note: in expansion of macro 'TColor' 45 | const sf::Color colLBackgr = TColor(0.5, 0.7, 0.9, 1.0); | ^~~~~~ common.cpp:33:85: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:45:33: note: in expansion of macro 'TColor' 45 | const sf::Color colLBackgr = TColor(0.5, 0.7, 0.9, 1.0); | ^~~~~~ common.cpp:33:116: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:45:33: note: in expansion of macro 'TColor' 45 | const sf::Color colLBackgr = TColor(0.5, 0.7, 0.9, 1.0); | ^~~~~~ common.cpp:33:147: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:45:33: note: in expansion of macro 'TColor' 45 | const sf::Color colLBackgr = TColor(0.5, 0.7, 0.9, 1.0); | ^~~~~~ common.cpp:33:37: error: expected primary-expression before '(' token 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^ common.cpp:45:33: note: in expansion of macro 'TColor' 45 | const sf::Color colLBackgr = TColor(0.5, 0.7, 0.9, 1.0); | ^~~~~~ common.cpp:33:54: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:45:33: note: in expansion of macro 'TColor' 45 | const sf::Color colLBackgr = TColor(0.5, 0.7, 0.9, 1.0); | ^~~~~~ common.cpp:33:85: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:45:33: note: in expansion of macro 'TColor' 45 | const sf::Color colLBackgr = TColor(0.5, 0.7, 0.9, 1.0); | ^~~~~~ common.cpp:33:116: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:45:33: note: in expansion of macro 'TColor' 45 | const sf::Color colLBackgr = TColor(0.5, 0.7, 0.9, 1.0); | ^~~~~~ common.cpp:33:147: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:45:33: note: in expansion of macro 'TColor' 45 | const sf::Color colLBackgr = TColor(0.5, 0.7, 0.9, 1.0); | ^~~~~~ common.cpp:33:54: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:46:41: note: in expansion of macro 'TColor' 46 | const sf::Color colBackgr = TColor(0.4, 0.6, 0.8, 1.0); | ^~~~~~ common.cpp:33:85: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:46:41: note: in expansion of macro 'TColor' 46 | const sf::Color colBackgr = TColor(0.4, 0.6, 0.8, 1.0); | ^~~~~~ common.cpp:33:116: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:46:41: note: in expansion of macro 'TColor' 46 | const sf::Color colBackgr = TColor(0.4, 0.6, 0.8, 1.0); | ^~~~~~ common.cpp:33:147: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:46:41: note: in expansion of macro 'TColor' 46 | const sf::Color colBackgr = TColor(0.4, 0.6, 0.8, 1.0); | ^~~~~~ common.cpp:33:37: error: expected primary-expression before '(' token 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^ common.cpp:46:41: note: in expansion of macro 'TColor' 46 | const sf::Color colBackgr = TColor(0.4, 0.6, 0.8, 1.0); | ^~~~~~ common.cpp:33:54: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:46:41: note: in expansion of macro 'TColor' 46 | const sf::Color colBackgr = TColor(0.4, 0.6, 0.8, 1.0); | ^~~~~~ common.cpp:33:85: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:46:41: note: in expansion of macro 'TColor' 46 | const sf::Color colBackgr = TColor(0.4, 0.6, 0.8, 1.0); | ^~~~~~ common.cpp:33:116: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:46:41: note: in expansion of macro 'TColor' 46 | const sf::Color colBackgr = TColor(0.4, 0.6, 0.8, 1.0); | ^~~~~~ common.cpp:33:147: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:46:41: note: in expansion of macro 'TColor' 46 | const sf::Color colBackgr = TColor(0.4, 0.6, 0.8, 1.0); | ^~~~~~ common.cpp:33:54: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:47:33: note: in expansion of macro 'TColor' 47 | const sf::Color colMBackgr = TColor(0.35, 0.5, 0.7, 1.0); | ^~~~~~ common.cpp:33:85: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:47:33: note: in expansion of macro 'TColor' 47 | const sf::Color colMBackgr = TColor(0.35, 0.5, 0.7, 1.0); | ^~~~~~ common.cpp:33:116: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:47:33: note: in expansion of macro 'TColor' 47 | const sf::Color colMBackgr = TColor(0.35, 0.5, 0.7, 1.0); | ^~~~~~ common.cpp:33:147: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:47:33: note: in expansion of macro 'TColor' 47 | const sf::Color colMBackgr = TColor(0.35, 0.5, 0.7, 1.0); | ^~~~~~ common.cpp:33:37: error: expected primary-expression before '(' token 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^ common.cpp:47:33: note: in expansion of macro 'TColor' 47 | const sf::Color colMBackgr = TColor(0.35, 0.5, 0.7, 1.0); | ^~~~~~ common.cpp:33:54: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:47:33: note: in expansion of macro 'TColor' 47 | const sf::Color colMBackgr = TColor(0.35, 0.5, 0.7, 1.0); | ^~~~~~ common.cpp:33:85: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:47:33: note: in expansion of macro 'TColor' 47 | const sf::Color colMBackgr = TColor(0.35, 0.5, 0.7, 1.0); | ^~~~~~ common.cpp:33:116: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:47:33: note: in expansion of macro 'TColor' 47 | const sf::Color colMBackgr = TColor(0.35, 0.5, 0.7, 1.0); | ^~~~~~ common.cpp:33:147: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:47:33: note: in expansion of macro 'TColor' 47 | const sf::Color colMBackgr = TColor(0.35, 0.5, 0.7, 1.0); | ^~~~~~ common.cpp:33:54: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:48:33: note: in expansion of macro 'TColor' 48 | const sf::Color colDBackgr = TColor(0.2, 0.3, 0.6, 1.0); | ^~~~~~ common.cpp:33:85: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:48:33: note: in expansion of macro 'TColor' 48 | const sf::Color colDBackgr = TColor(0.2, 0.3, 0.6, 1.0); | ^~~~~~ common.cpp:33:116: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:48:33: note: in expansion of macro 'TColor' 48 | const sf::Color colDBackgr = TColor(0.2, 0.3, 0.6, 1.0); | ^~~~~~ common.cpp:33:147: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:48:33: note: in expansion of macro 'TColor' 48 | const sf::Color colDBackgr = TColor(0.2, 0.3, 0.6, 1.0); | ^~~~~~ common.cpp:33:37: error: expected primary-expression before '(' token 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^ common.cpp:48:33: note: in expansion of macro 'TColor' 48 | const sf::Color colDBackgr = TColor(0.2, 0.3, 0.6, 1.0); | ^~~~~~ common.cpp:33:54: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:48:33: note: in expansion of macro 'TColor' 48 | const sf::Color colDBackgr = TColor(0.2, 0.3, 0.6, 1.0); | ^~~~~~ common.cpp:33:85: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:48:33: note: in expansion of macro 'TColor' 48 | const sf::Color colDBackgr = TColor(0.2, 0.3, 0.6, 1.0); | ^~~~~~ common.cpp:33:116: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:48:33: note: in expansion of macro 'TColor' 48 | const sf::Color colDBackgr = TColor(0.2, 0.3, 0.6, 1.0); | ^~~~~~ common.cpp:33:147: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:48:33: note: in expansion of macro 'TColor' 48 | const sf::Color colDBackgr = TColor(0.2, 0.3, 0.6, 1.0); | ^~~~~~ common.cpp:33:54: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:49:33: note: in expansion of macro 'TColor' 49 | const sf::Color colDDBackgr = TColor(0.13, 0.2, 0.4, 1.0); | ^~~~~~ common.cpp:33:85: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:49:33: note: in expansion of macro 'TColor' 49 | const sf::Color colDDBackgr = TColor(0.13, 0.2, 0.4, 1.0); | ^~~~~~ common.cpp:33:116: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:49:33: note: in expansion of macro 'TColor' 49 | const sf::Color colDDBackgr = TColor(0.13, 0.2, 0.4, 1.0); | ^~~~~~ common.cpp:33:147: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:49:33: note: in expansion of macro 'TColor' 49 | const sf::Color colDDBackgr = TColor(0.13, 0.2, 0.4, 1.0); | ^~~~~~ common.cpp:33:37: error: expected primary-expression before '(' token 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^ common.cpp:49:33: note: in expansion of macro 'TColor' 49 | const sf::Color colDDBackgr = TColor(0.13, 0.2, 0.4, 1.0); | ^~~~~~ common.cpp:33:54: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:49:33: note: in expansion of macro 'TColor' 49 | const sf::Color colDDBackgr = TColor(0.13, 0.2, 0.4, 1.0); | ^~~~~~ common.cpp:33:85: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:49:33: note: in expansion of macro 'TColor' 49 | const sf::Color colDDBackgr = TColor(0.13, 0.2, 0.4, 1.0); | ^~~~~~ common.cpp:33:116: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:49:33: note: in expansion of macro 'TColor' 49 | const sf::Color colDDBackgr = TColor(0.13, 0.2, 0.4, 1.0); | ^~~~~~ common.cpp:33:147: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:49:33: note: in expansion of macro 'TColor' 49 | const sf::Color colDDBackgr = TColor(0.13, 0.2, 0.4, 1.0); | ^~~~~~ common.cpp:33:54: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:50:41: note: in expansion of macro 'TColor' 50 | const sf::Color colTBackr = TColor(0.4, 0.6, 0.8, 0.0); | ^~~~~~ common.cpp:33:85: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:50:41: note: in expansion of macro 'TColor' 50 | const sf::Color colTBackr = TColor(0.4, 0.6, 0.8, 0.0); | ^~~~~~ common.cpp:33:116: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:50:41: note: in expansion of macro 'TColor' 50 | const sf::Color colTBackr = TColor(0.4, 0.6, 0.8, 0.0); | ^~~~~~ common.cpp:33:147: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:50:41: note: in expansion of macro 'TColor' 50 | const sf::Color colTBackr = TColor(0.4, 0.6, 0.8, 0.0); | ^~~~~~ common.cpp:33:37: error: expected primary-expression before '(' token 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^ common.cpp:50:41: note: in expansion of macro 'TColor' 50 | const sf::Color colTBackr = TColor(0.4, 0.6, 0.8, 0.0); | ^~~~~~ common.cpp:33:54: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:50:41: note: in expansion of macro 'TColor' 50 | const sf::Color colTBackr = TColor(0.4, 0.6, 0.8, 0.0); | ^~~~~~ common.cpp:33:85: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:50:41: note: in expansion of macro 'TColor' 50 | const sf::Color colTBackr = TColor(0.4, 0.6, 0.8, 0.0); | ^~~~~~ common.cpp:33:116: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:50:41: note: in expansion of macro 'TColor' 50 | const sf::Color colTBackr = TColor(0.4, 0.6, 0.8, 0.0); | ^~~~~~ common.cpp:33:147: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:50:41: note: in expansion of macro 'TColor' 50 | const sf::Color colTBackr = TColor(0.4, 0.6, 0.8, 0.0); | ^~~~~~ common.cpp:33:54: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:51:41: note: in expansion of macro 'TColor' 51 | const sf::Color colMess = TColor(0.3, 0.3, 0.7, 1.0); | ^~~~~~ common.cpp:33:85: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:51:41: note: in expansion of macro 'TColor' 51 | const sf::Color colMess = TColor(0.3, 0.3, 0.7, 1.0); | ^~~~~~ common.cpp:33:116: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:51:41: note: in expansion of macro 'TColor' 51 | const sf::Color colMess = TColor(0.3, 0.3, 0.7, 1.0); | ^~~~~~ common.cpp:33:147: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:51:41: note: in expansion of macro 'TColor' 51 | const sf::Color colMess = TColor(0.3, 0.3, 0.7, 1.0); | ^~~~~~ common.cpp:33:37: error: expected primary-expression before '(' token 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^ common.cpp:51:41: note: in expansion of macro 'TColor' 51 | const sf::Color colMess = TColor(0.3, 0.3, 0.7, 1.0); | ^~~~~~ common.cpp:33:54: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:51:41: note: in expansion of macro 'TColor' 51 | const sf::Color colMess = TColor(0.3, 0.3, 0.7, 1.0); | ^~~~~~ common.cpp:33:85: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:51:41: note: in expansion of macro 'TColor' 51 | const sf::Color colMess = TColor(0.3, 0.3, 0.7, 1.0); | ^~~~~~ common.cpp:33:116: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:51:41: note: in expansion of macro 'TColor' 51 | const sf::Color colMess = TColor(0.3, 0.3, 0.7, 1.0); | ^~~~~~ common.cpp:33:147: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:51:41: note: in expansion of macro 'TColor' 51 | const sf::Color colMess = TColor(0.3, 0.3, 0.7, 1.0); | ^~~~~~ common.cpp:33:54: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:52:41: note: in expansion of macro 'TColor' 52 | const sf::Color colSky = TColor(0.82, 0.86, 0.88, 1.0); | ^~~~~~ common.cpp:33:85: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:52:41: note: in expansion of macro 'TColor' 52 | const sf::Color colSky = TColor(0.82, 0.86, 0.88, 1.0); | ^~~~~~ common.cpp:33:116: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:52:41: note: in expansion of macro 'TColor' 52 | const sf::Color colSky = TColor(0.82, 0.86, 0.88, 1.0); | ^~~~~~ common.cpp:33:147: error: 'Uint8' is not a member of 'sf' 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:52:41: note: in expansion of macro 'TColor' 52 | const sf::Color colSky = TColor(0.82, 0.86, 0.88, 1.0); | ^~~~~~ common.cpp:33:37: error: expected primary-expression before '(' token 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^ common.cpp:52:41: note: in expansion of macro 'TColor' 52 | const sf::Color colSky = TColor(0.82, 0.86, 0.88, 1.0); | ^~~~~~ common.cpp:33:54: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:52:41: note: in expansion of macro 'TColor' 52 | const sf::Color colSky = TColor(0.82, 0.86, 0.88, 1.0); | ^~~~~~ common.cpp:33:85: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:52:41: note: in expansion of macro 'TColor' 52 | const sf::Color colSky = TColor(0.82, 0.86, 0.88, 1.0); | ^~~~~~ common.cpp:33:116: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:52:41: note: in expansion of macro 'TColor' 52 | const sf::Color colSky = TColor(0.82, 0.86, 0.88, 1.0); | ^~~~~~ common.cpp:33:147: error: 'Uint8' in namespace 'sf' does not name a type 33 | #define TColor(r, g, b, a) sf::Color(static_cast(r*255), static_cast(g*255), static_cast(b*255), static_cast(a*255)) | ^~~~~ common.cpp:52:41: note: in expansion of macro 'TColor' 52 | const sf::Color colSky = TColor(0.82, 0.86, 0.88, 1.0); | ^~~~~~ make[2]: *** [Makefile:566: common.o] Error 1 make[2]: Leaving directory '/usr/src/RPM/BUILD/etr-0.8.4/src' make[2]: Entering directory '/usr/src/RPM/BUILD/etr-0.8.4/src' x86_64-alt-linux-g++ -DHAVE_CONFIG_H -I. -I.. -DETR_DATA_DIR=\"/usr/share\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -std=c++14 -c -o game_over.o game_over.cpp In file included from /usr/include/SFML/System.hpp:34, from bh.h:30, from game_over.h:21, from game_over.cpp:22: /usr/include/SFML/System/Clock.hpp:78:20: error: 'ratio_less_equal_v' is not a member of 'std'; did you mean 'ratio_less_equal'? 78 | static_assert(std::ratio_less_equal_v, | ^~~~~~~~~~~~~~~~~~ | ratio_less_equal /usr/include/SFML/System/Clock.hpp:78:56: error: expected primary-expression before ',' token 78 | static_assert(std::ratio_less_equal_v, | ^ /usr/include/SFML/System/Clock.hpp:78:68: error: expected primary-expression before '>' token 78 | static_assert(std::ratio_less_equal_v, | ^ /usr/include/SFML/System/Clock.hpp:78:69: error: expected primary-expression before ',' token 78 | static_assert(std::ratio_less_equal_v, | ^ /usr/include/SFML/System/Clock.hpp:78:69: error: expected ')' before ',' token 78 | static_assert(std::ratio_less_equal_v, | ~ ^ | ) In file included from /usr/include/SFML/System/FileInputStream.hpp:34, from /usr/include/SFML/System.hpp:37: /usr/include/SFML/System/InputStream.hpp:66:32: error: 'optional' in namespace 'std' does not name a template type 66 | [[nodiscard]] virtual std::optional read(void* data, std::size_t size) = 0; | ^~~~~~~~ /usr/include/SFML/System/InputStream.hpp:66:27: note: 'std::optional' is only available from C++17 onwards 66 | [[nodiscard]] virtual std::optional read(void* data, std::size_t size) = 0; | ^~~ /usr/include/SFML/System/InputStream.hpp:76:32: error: 'optional' in namespace 'std' does not name a template type 76 | [[nodiscard]] virtual std::optional seek(std::size_t position) = 0; | ^~~~~~~~ /usr/include/SFML/System/InputStream.hpp:76:27: note: 'std::optional' is only available from C++17 onwards 76 | [[nodiscard]] virtual std::optional seek(std::size_t position) = 0; | ^~~ /usr/include/SFML/System/InputStream.hpp:84:32: error: 'optional' in namespace 'std' does not name a template type 84 | [[nodiscard]] virtual std::optional tell() = 0; | ^~~~~~~~ /usr/include/SFML/System/InputStream.hpp:84:27: note: 'std::optional' is only available from C++17 onwards 84 | [[nodiscard]] virtual std::optional tell() = 0; | ^~~ /usr/include/SFML/System/InputStream.hpp:92:18: error: 'optional' in namespace 'std' does not name a template type 92 | virtual std::optional getSize() = 0; | ^~~~~~~~ /usr/include/SFML/System/InputStream.hpp:92:13: note: 'std::optional' is only available from C++17 onwards 92 | virtual std::optional getSize() = 0; | ^~~ /usr/include/SFML/System/FileInputStream.hpp:106:41: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 106 | explicit FileInputStream(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/System/FileInputStream.hpp:106:57: error: expected unqualified-id before '&' token 106 | explicit FileInputStream(const std::filesystem::path& filename); | ^ /usr/include/SFML/System/FileInputStream.hpp:106:57: error: expected ')' before '&' token 106 | explicit FileInputStream(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/System/FileInputStream.hpp:106:57: error: constructors may not be ref-qualified /usr/include/SFML/System/FileInputStream.hpp:106:57: error: expected ';' at end of member declaration 106 | explicit FileInputStream(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/System/FileInputStream.hpp:106:59: error: 'filename' does not name a type 106 | explicit FileInputStream(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:116:40: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/System/FileInputStream.hpp:116:56: error: expected unqualified-id before '&' token 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ^ /usr/include/SFML/System/FileInputStream.hpp:116:56: error: expected ')' before '&' token 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/System/FileInputStream.hpp:116:56: error: expected ';' at end of member declaration 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/System/FileInputStream.hpp:116:58: error: 'filename' does not name a type 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:130:24: error: 'optional' in namespace 'std' does not name a template type 130 | [[nodiscard]] std::optional read(void* data, std::size_t size) override; | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:130:19: note: 'std::optional' is only available from C++17 onwards 130 | [[nodiscard]] std::optional read(void* data, std::size_t size) override; | ^~~ /usr/include/SFML/System/FileInputStream.hpp:140:24: error: 'optional' in namespace 'std' does not name a template type 140 | [[nodiscard]] std::optional seek(std::size_t position) override; | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:140:19: note: 'std::optional' is only available from C++17 onwards 140 | [[nodiscard]] std::optional seek(std::size_t position) override; | ^~~ /usr/include/SFML/System/FileInputStream.hpp:148:24: error: 'optional' in namespace 'std' does not name a template type 148 | [[nodiscard]] std::optional tell() override; | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:148:19: note: 'std::optional' is only available from C++17 onwards 148 | [[nodiscard]] std::optional tell() override; | ^~~ /usr/include/SFML/System/FileInputStream.hpp:156:10: error: 'optional' in namespace 'std' does not name a template type 156 | std::optional getSize() override; | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:156:5: note: 'std::optional' is only available from C++17 onwards 156 | std::optional getSize() override; | ^~~ In file included from /usr/include/SFML/System.hpp:39: /usr/include/SFML/System/MemoryInputStream.hpp:70:24: error: 'optional' in namespace 'std' does not name a template type 70 | [[nodiscard]] std::optional read(void* data, std::size_t size) override; | ^~~~~~~~ /usr/include/SFML/System/MemoryInputStream.hpp:70:19: note: 'std::optional' is only available from C++17 onwards 70 | [[nodiscard]] std::optional read(void* data, std::size_t size) override; | ^~~ /usr/include/SFML/System/MemoryInputStream.hpp:80:24: error: 'optional' in namespace 'std' does not name a template type 80 | [[nodiscard]] std::optional seek(std::size_t position) override; | ^~~~~~~~ /usr/include/SFML/System/MemoryInputStream.hpp:80:19: note: 'std::optional' is only available from C++17 onwards 80 | [[nodiscard]] std::optional seek(std::size_t position) override; | ^~~ /usr/include/SFML/System/MemoryInputStream.hpp:88:24: error: 'optional' in namespace 'std' does not name a template type 88 | [[nodiscard]] std::optional tell() override; | ^~~~~~~~ /usr/include/SFML/System/MemoryInputStream.hpp:88:19: note: 'std::optional' is only available from C++17 onwards 88 | [[nodiscard]] std::optional tell() override; | ^~~ /usr/include/SFML/System/MemoryInputStream.hpp:96:10: error: 'optional' in namespace 'std' does not name a template type 96 | std::optional getSize() override; | ^~~~~~~~ /usr/include/SFML/System/MemoryInputStream.hpp:96:5: note: 'std::optional' is only available from C++17 onwards 96 | std::optional getSize() override; | ^~~ /usr/include/SFML/System/MemoryInputStream.hpp:102:16: error: 'byte' in namespace 'std' does not name a type 102 | const std::byte* m_data{}; //!< Pointer to the data in memory | ^~~~ /usr/include/SFML/System/MemoryInputStream.hpp:102:11: note: 'std::byte' is only available from C++17 onwards 102 | const std::byte* m_data{}; //!< Pointer to the data in memory | ^~~ In file included from /usr/include/SFML/System/Utf.hpp:742, from /usr/include/SFML/System/String.hpp:32, from /usr/include/SFML/System.hpp:41: /usr/include/SFML/System/Utf.inl: In static member function 'static Out sf::Utf<8>::encode(char32_t, Out, uint8_t)': /usr/include/SFML/System/Utf.inl:137:25: error: 'byte' is not a member of 'std' 137 | std::array bytes{}; | ^~~~ /usr/include/SFML/System/Utf.inl:137:25: note: 'std::byte' is only available from C++17 onwards /usr/include/SFML/System/Utf.inl:137:25: error: 'byte' is not a member of 'std' /usr/include/SFML/System/Utf.inl:137:25: note: 'std::byte' is only available from C++17 onwards /usr/include/SFML/System/Utf.inl:137:32: error: template argument 1 is invalid 137 | std::array bytes{}; | ^ /usr/include/SFML/System/Utf.inl:142:26: error: invalid types 'int[int]' for array subscript 142 | case 4: bytes[3] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^ /usr/include/SFML/System/Utf.inl:142:49: error: 'byte' in namespace 'std' does not name a type 142 | case 4: bytes[3] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~~ /usr/include/SFML/System/Utf.inl:142:44: note: 'std::byte' is only available from C++17 onwards 142 | case 4: bytes[3] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~ /usr/include/SFML/System/Utf.inl:143:26: error: invalid types 'int[int]' for array subscript 143 | case 3: bytes[2] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^ /usr/include/SFML/System/Utf.inl:143:49: error: 'byte' in namespace 'std' does not name a type 143 | case 3: bytes[2] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~~ /usr/include/SFML/System/Utf.inl:143:44: note: 'std::byte' is only available from C++17 onwards 143 | case 3: bytes[2] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~ /usr/include/SFML/System/Utf.inl:144:26: error: invalid types 'int[int]' for array subscript 144 | case 2: bytes[1] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^ /usr/include/SFML/System/Utf.inl:144:49: error: 'byte' in namespace 'std' does not name a type 144 | case 2: bytes[1] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~~ /usr/include/SFML/System/Utf.inl:144:44: note: 'std::byte' is only available from C++17 onwards 144 | case 2: bytes[1] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~ /usr/include/SFML/System/Utf.inl:145:26: error: invalid types 'int[int]' for array subscript 145 | case 1: bytes[0] = static_cast (input | firstBytes[bytestoWrite]); | ^ /usr/include/SFML/System/Utf.inl:145:49: error: 'byte' in namespace 'std' does not name a type 145 | case 1: bytes[0] = static_cast (input | firstBytes[bytestoWrite]); | ^~~~ /usr/include/SFML/System/Utf.inl:145:44: note: 'std::byte' is only available from C++17 onwards 145 | case 1: bytes[0] = static_cast (input | firstBytes[bytestoWrite]); | ^~~ /usr/include/SFML/System/Utf.inl:150:35: error: request for member 'data' in 'bytes', which is of non-class type 'int' 150 | output = priv::copy(bytes.data(), bytes.data() + bytestoWrite, output); | ^~~~ /usr/include/SFML/System/Utf.inl:150:49: error: request for member 'data' in 'bytes', which is of non-class type 'int' 150 | output = priv::copy(bytes.data(), bytes.data() + bytestoWrite, output); | ^~~~ In file included from /usr/include/SFML/Window.hpp:32, from bh.h:31: /usr/include/SFML/Window/Context.hpp: At global scope: /usr/include/SFML/Window/Context.hpp:130:57: error: 'std::string_view' has not been declared 130 | [[nodiscard]] static bool isExtensionAvailable(std::string_view name); | ^~~~~~~~~~~ In file included from /usr/include/SFML/Window.hpp:34: /usr/include/SFML/Window/Cursor.hpp:226:31: error: 'optional' in namespace 'std' does not name a template type 226 | [[nodiscard]] static std::optional createFromPixels(const std::uint8_t* pixels, Vector2u size, Vector2u hotspot); | ^~~~~~~~ /usr/include/SFML/Window/Cursor.hpp:226:26: note: 'std::optional' is only available from C++17 onwards 226 | [[nodiscard]] static std::optional createFromPixels(const std::uint8_t* pixels, Vector2u size, Vector2u hotspot); | ^~~ /usr/include/SFML/Window/Cursor.hpp:242:31: error: 'optional' in namespace 'std' does not name a template type 242 | [[nodiscard]] static std::optional createFromSystem(Type type); | ^~~~~~~~ /usr/include/SFML/Window/Cursor.hpp:242:26: note: 'std::optional' is only available from C++17 onwards 242 | [[nodiscard]] static std::optional createFromSystem(Type type); | ^~~ In file included from /usr/include/SFML/Window.hpp:35: /usr/include/SFML/Window/Event.hpp:345:10: error: 'variant' in namespace 'std' does not name a template type 345 | std::variant*) | ^~~~~~~ /usr/include/SFML/Window/Event.hpp:374:65: note: 'std::variant' is only available from C++17 onwards 374 | [[nodiscard]] static constexpr bool isInParameterPack(const std::variant*) | ^~~ /usr/include/SFML/Window/Event.hpp:374:77: error: expected ',' or '...' before '<' token 374 | [[nodiscard]] static constexpr bool isInParameterPack(const std::variant*) | ^ /usr/include/SFML/Window/Event.hpp:380:76: error: 'm_data' was not declared in this scope 380 | static constexpr bool isEventSubtype = isInParameterPack(decltype (&m_data)(nullptr)); | ^~~~~~ /usr/include/SFML/Window/Event.hpp: In static member function 'static constexpr bool sf::Event::isInParameterPack(int)': /usr/include/SFML/Window/Event.hpp:376:22: error: 'is_same_v' is not a member of 'std'; did you mean 'is_same'? 376 | return (std::is_same_v || ...); | ^~~~~~~~~ | is_same /usr/include/SFML/Window/Event.hpp:376:33: error: expected primary-expression before ',' token 376 | return (std::is_same_v || ...); | ^ /usr/include/SFML/Window/Event.hpp:376:37: error: expected primary-expression before '>' token 376 | return (std::is_same_v || ...); | ^ /usr/include/SFML/Window/Event.hpp:376:39: error: expected primary-expression before '||' token 376 | return (std::is_same_v || ...); | ^~ /usr/include/SFML/Window/Event.hpp:376:42: error: operand of fold expression has no unexpanded parameter packs 376 | return (std::is_same_v || ...); | ^~~ In file included from /usr/include/SFML/Window/Event.hpp:385: /usr/include/SFML/Window/Event.inl: In constructor 'sf::Event::Event(const TEventSubtype&)': /usr/include/SFML/Window/Event.inl:47:9: error: 'm_data' was not declared in this scope 47 | m_data = eventSubtype; | ^~~~~~ /usr/include/SFML/Window/Event.inl: In member function 'bool sf::Event::is() const': /usr/include/SFML/Window/Event.inl:57:21: error: 'holds_alternative' is not a member of 'std' 57 | return std::holds_alternative(m_data); | ^~~~~~~~~~~~~~~~~ /usr/include/SFML/Window/Event.inl:57:21: note: 'std::holds_alternative' is only available from C++17 onwards /usr/include/SFML/Window/Event.inl:57:52: error: expected primary-expression before '>' token 57 | return std::holds_alternative(m_data); | ^ /usr/include/SFML/Window/Event.inl:57:54: error: 'm_data' was not declared in this scope 57 | return std::holds_alternative(m_data); | ^~~~~~ /usr/include/SFML/Window/Event.inl: In member function 'const TEventSubtype* sf::Event::getIf() const': /usr/include/SFML/Window/Event.inl:67:21: error: 'get_if' is not a member of 'std' 67 | return std::get_if(&m_data); | ^~~~~~ /usr/include/SFML/Window/Event.inl:67:41: error: expected primary-expression before '>' token 67 | return std::get_if(&m_data); | ^ /usr/include/SFML/Window/Event.inl:67:44: error: 'm_data' was not declared in this scope 67 | return std::get_if(&m_data); | ^~~~~~ /usr/include/SFML/Window/Event.inl: In member function 'decltype(auto) sf::Event::visit(T&&) const': /usr/include/SFML/Window/Event.inl:75:17: error: 'visit' is not a member of 'std' 75 | return std::visit(std::forward(visitor), m_data); | ^~~~~ /usr/include/SFML/Window/Event.inl:75:17: note: 'std::visit' is only available from C++17 onwards /usr/include/SFML/Window/Event.inl:75:49: error: 'm_data' was not declared in this scope 75 | return std::visit(std::forward(visitor), m_data); | ^~~~~~ In file included from /usr/include/SFML/Window/Window.hpp:32, from /usr/include/SFML/Window.hpp:42: /usr/include/SFML/Window/WindowBase.hpp: At global scope: /usr/include/SFML/Window/WindowBase.hpp:226:24: error: 'optional' in namespace 'std' does not name a template type 226 | [[nodiscard]] std::optional pollEvent(); | ^~~~~~~~ /usr/include/SFML/Window/WindowBase.hpp:226:19: note: 'std::optional' is only available from C++17 onwards 226 | [[nodiscard]] std::optional pollEvent(); | ^~~ /usr/include/SFML/Window/WindowBase.hpp:252:24: error: 'optional' in namespace 'std' does not name a template type 252 | [[nodiscard]] std::optional waitEvent(Time timeout = Time::Zero); | ^~~~~~~~ /usr/include/SFML/Window/WindowBase.hpp:252:19: note: 'std::optional' is only available from C++17 onwards 252 | [[nodiscard]] std::optional waitEvent(Time timeout = Time::Zero); | ^~~ /usr/include/SFML/Window/WindowBase.hpp:387:36: error: 'optional' in namespace 'std' does not name a template type 387 | void setMinimumSize(const std::optional& minimumSize); | ^~~~~~~~ /usr/include/SFML/Window/WindowBase.hpp:387:31: note: 'std::optional' is only available from C++17 onwards 387 | void setMinimumSize(const std::optional& minimumSize); | ^~~ /usr/include/SFML/Window/WindowBase.hpp:387:44: error: expected ',' or '...' before '<' token 387 | void setMinimumSize(const std::optional& minimumSize); | ^ /usr/include/SFML/Window/WindowBase.hpp:397:36: error: 'optional' in namespace 'std' does not name a template type 397 | void setMaximumSize(const std::optional& maximumSize); | ^~~~~~~~ /usr/include/SFML/Window/WindowBase.hpp:397:31: note: 'std::optional' is only available from C++17 onwards 397 | void setMaximumSize(const std::optional& maximumSize); | ^~~ /usr/include/SFML/Window/WindowBase.hpp:397:44: error: expected ',' or '...' before '<' token 397 | void setMaximumSize(const std::optional& maximumSize); | ^ In file included from /usr/include/SFML/Window/WindowBase.hpp:617: /usr/include/SFML/Window/WindowBase.inl:47:41: error: expected constructor, destructor, or type conversion before ';' token 47 | OverloadSet(Ts...) -> OverloadSet; | ^ /usr/include/SFML/Window/WindowBase.inl: In member function 'void sf::WindowBase::handleEvents(Ts&& ...)': /usr/include/SFML/Window/WindowBase.inl:69:23: error: missing template arguments before 'overloadSet' 69 | priv::OverloadSet overloadSet{std::forward(handlers)..., [](const priv::DelayOverloadResolution&) { /* ignore */ }}; | ^~~~~~~~~~~ /usr/include/SFML/Window/WindowBase.inl:71:32: error: qualified-id in declaration before 'event' 71 | while (const std::optional event = pollEvent()) | ^~~~~ /usr/include/SFML/Window/WindowBase.inl:72:9: error: 'event' was not declared in this scope; did you mean 'Event'? 72 | event->visit(overloadSet); | ^~~~~ | Event /usr/include/SFML/Window/WindowBase.inl:72:22: error: 'overloadSet' was not declared in this scope 72 | event->visit(overloadSet); | ^~~~~~~~~~~ In file included from /usr/include/SFML/Graphics/Color.hpp:229, from /usr/include/SFML/Graphics/Shape.hpp:32, from /usr/include/SFML/Graphics/CircleShape.hpp:32, from /usr/include/SFML/Graphics.hpp:32, from bh.h:32: /usr/include/SFML/Graphics/Color.inl: In function 'constexpr sf::Color sf::operator+(Color, Color)': /usr/include/SFML/Graphics/Color.inl:77:16: error: variable 'clampedAdd' of non-literal type 'const sf::operator+(Color, Color)::' in 'constexpr' function only available with '-std=c++2b' or '-std=gnu++2b' 77 | const auto clampedAdd = [](std::uint8_t lhs, std::uint8_t rhs) | ^~~~~~~~~~ /usr/include/SFML/Graphics/Color.inl:77:30: note: 'sf::operator+(Color, Color)::' is not literal because: 77 | const auto clampedAdd = [](std::uint8_t lhs, std::uint8_t rhs) | ^ cc1plus: note: 'sf::operator+(Color, Color)::' is a closure type, which is only literal in C++17 and later /usr/include/SFML/Graphics/Color.inl: In function 'constexpr sf::Color sf::operator-(Color, Color)': /usr/include/SFML/Graphics/Color.inl:93:16: error: variable 'clampedSub' of non-literal type 'const sf::operator-(Color, Color)::' in 'constexpr' function only available with '-std=c++2b' or '-std=gnu++2b' 93 | const auto clampedSub = [](std::uint8_t lhs, std::uint8_t rhs) | ^~~~~~~~~~ /usr/include/SFML/Graphics/Color.inl:93:30: note: 'sf::operator-(Color, Color)::' is not literal because: 93 | const auto clampedSub = [](std::uint8_t lhs, std::uint8_t rhs) | ^ cc1plus: note: 'sf::operator-(Color, Color)::' is a closure type, which is only literal in C++17 and later /usr/include/SFML/Graphics/Color.inl: In function 'constexpr sf::Color sf::operator*(Color, Color)': /usr/include/SFML/Graphics/Color.inl:109:16: error: variable 'scaledMul' of non-literal type 'const sf::operator*(Color, Color)::' in 'constexpr' function only available with '-std=c++2b' or '-std=gnu++2b' 109 | const auto scaledMul = [](std::uint8_t lhs, std::uint8_t rhs) | ^~~~~~~~~ /usr/include/SFML/Graphics/Color.inl:109:29: note: 'sf::operator*(Color, Color)::' is not literal because: 109 | const auto scaledMul = [](std::uint8_t lhs, std::uint8_t rhs) | ^ cc1plus: note: 'sf::operator*(Color, Color)::' is a closure type, which is only literal in C++17 and later In file included from /usr/include/SFML/Graphics/Shape.hpp:35: /usr/include/SFML/Graphics/Rect.hpp: At global scope: /usr/include/SFML/Graphics/Rect.hpp:98:34: error: 'optional' in namespace 'std' does not name a template type 98 | [[nodiscard]] constexpr std::optional> findIntersection(const Rect& rectangle) const; | ^~~~~~~~ /usr/include/SFML/Graphics/Rect.hpp:98:29: note: 'std::optional' is only available from C++17 onwards 98 | [[nodiscard]] constexpr std::optional> findIntersection(const Rect& rectangle) const; | ^~~ In file included from /usr/include/SFML/Graphics/Rect.hpp:151: /usr/include/SFML/Graphics/Rect.inl:71:16: error: 'optional' in namespace 'std' does not name a template type 71 | constexpr std::optional> Rect::findIntersection(const Rect& rectangle) const | ^~~~~~~~ /usr/include/SFML/Graphics/Rect.inl:71:11: note: 'std::optional' is only available from C++17 onwards 71 | constexpr std::optional> Rect::findIntersection(const Rect& rectangle) const | ^~~ In file included from /usr/include/SFML/Graphics/Transform.hpp:352, from /usr/include/SFML/Graphics/RenderStates.hpp:35, from /usr/include/SFML/Graphics/Shape.hpp:36: /usr/include/SFML/Graphics/Transform.inl: In member function 'constexpr sf::FloatRect sf::Transform::transformRect(const sf::FloatRect&) const': /usr/include/SFML/Graphics/Transform.inl:101:11: error: invalid use of template-name 'std::array' without an argument list 101 | const std::array points = {transformPoint(rectangle.position), | ^~~ /usr/include/SFML/Graphics/Transform.inl:101:11: note: class template argument deduction is only available with '-std=c++17' or '-std=gnu++17' In file included from /usr/include/c++/14/bits/stl_algobase.h:64, from /usr/include/c++/14/string:51, from bh.h:27: /usr/include/c++/14/bits/stl_pair.h:99:12: note: 'template struct std::array' declared here 99 | struct array; | ^~~~~ /usr/include/SFML/Graphics/Transform.inl:107:21: error: 'points' was not declared in this scope; did you mean 'printf'? 107 | Vector2f pmin = points[0]; | ^~~~~~ | printf In file included from /usr/include/SFML/Graphics/Font.hpp:34, from /usr/include/SFML/Graphics.hpp:36: /usr/include/SFML/Graphics/Texture.hpp: At global scope: /usr/include/SFML/Graphics/Texture.hpp:114:33: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Texture.hpp:114:49: error: expected unqualified-id before '&' token 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^ /usr/include/SFML/Graphics/Texture.hpp:114:49: error: expected ')' before '&' token 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ~ ^ | ) /usr/include/SFML/Graphics/Texture.hpp:114:49: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Texture.hpp:114:49: error: expected ';' at end of member declaration 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^ | ; /usr/include/SFML/Graphics/Texture.hpp:114:51: error: 'filename' does not name a type 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^~~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:137:24: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Texture.hpp:137:40: error: expected unqualified-id before '&' token 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^ /usr/include/SFML/Graphics/Texture.hpp:137:40: error: expected ')' before '&' token 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ~ ^ | ) /usr/include/SFML/Graphics/Texture.hpp:137:40: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Texture.hpp:137:40: error: expected ';' at end of member declaration 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^ | ; /usr/include/SFML/Graphics/Texture.hpp:137:5: error: 'sf::Texture::Texture(...)' cannot be overloaded with 'sf::Texture::Texture(...)' 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:114:14: note: previous declaration 'sf::Texture::Texture(...)' 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:137:42: error: 'filename' does not name a type 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^~~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:304:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Texture.hpp:304:64: error: expected unqualified-id before '&' token 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^ /usr/include/SFML/Graphics/Texture.hpp:304:64: error: expected ')' before '&' token 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ~ ^ | ) /usr/include/SFML/Graphics/Texture.hpp:304:64: error: expected ';' at end of member declaration 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^ | ; /usr/include/SFML/Graphics/Texture.hpp:304:66: error: 'filename' does not name a type 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^~~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:304:119: error: expected unqualified-id before ')' token 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^ /usr/include/SFML/Graphics/Font.hpp:103:30: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 103 | explicit Font(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Font.hpp:103:46: error: expected unqualified-id before '&' token 103 | explicit Font(const std::filesystem::path& filename); | ^ /usr/include/SFML/Graphics/Font.hpp:103:46: error: expected ')' before '&' token 103 | explicit Font(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Graphics/Font.hpp:103:46: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Font.hpp:103:46: error: expected ';' at end of member declaration 103 | explicit Font(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Graphics/Font.hpp:103:48: error: 'filename' does not name a type 103 | explicit Font(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/Graphics/Font.hpp:168:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Font.hpp:168:64: error: expected unqualified-id before '&' token 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^ /usr/include/SFML/Graphics/Font.hpp:168:64: error: expected ')' before '&' token 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Graphics/Font.hpp:168:64: error: expected ';' at end of member declaration 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Graphics/Font.hpp:168:66: error: 'filename' does not name a type 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^~~~~~~~ In file included from /usr/include/SFML/Graphics.hpp:38: /usr/include/SFML/Graphics/Image.hpp:103:31: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 103 | explicit Image(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Image.hpp:103:47: error: expected unqualified-id before '&' token 103 | explicit Image(const std::filesystem::path& filename); | ^ /usr/include/SFML/Graphics/Image.hpp:103:47: error: expected ')' before '&' token 103 | explicit Image(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Graphics/Image.hpp:103:47: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Image.hpp:103:47: error: expected ';' at end of member declaration 103 | explicit Image(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Graphics/Image.hpp:103:49: error: 'filename' does not name a type 103 | explicit Image(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/Graphics/Image.hpp:175:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Image.hpp:175:64: error: expected unqualified-id before '&' token 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^ /usr/include/SFML/Graphics/Image.hpp:175:64: error: expected ')' before '&' token 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Graphics/Image.hpp:175:64: error: expected ';' at end of member declaration 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Graphics/Image.hpp:175:66: error: 'filename' does not name a type 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/Graphics/Image.hpp:227:46: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Image.hpp:227:62: error: expected unqualified-id before '&' token 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^ /usr/include/SFML/Graphics/Image.hpp:227:62: error: expected ')' before '&' token 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ~ ^ | ) /usr/include/SFML/Graphics/Image.hpp:227:62: error: expected ';' at end of member declaration 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^ | ; /usr/include/SFML/Graphics/Image.hpp:227:64: error: 'filename' does not name a type 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^~~~~~~~ /usr/include/SFML/Graphics/Image.hpp:245:24: error: 'optional' in namespace 'std' does not name a template type 245 | [[nodiscard]] std::optional> saveToMemory(std::string_view format) const; | ^~~~~~~~ /usr/include/SFML/Graphics/Image.hpp:245:19: note: 'std::optional' is only available from C++17 onwards 245 | [[nodiscard]] std::optional> saveToMemory(std::string_view format) const; | ^~~ In file included from /usr/include/SFML/Graphics.hpp:46: /usr/include/SFML/Graphics/Shader.hpp:147:23: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 147 | Shader(const std::filesystem::path& filename, Type type); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:147:39: error: expected unqualified-id before '&' token 147 | Shader(const std::filesystem::path& filename, Type type); | ^ /usr/include/SFML/Graphics/Shader.hpp:147:39: error: expected ')' before '&' token 147 | Shader(const std::filesystem::path& filename, Type type); | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:147:39: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Shader.hpp:147:39: error: expected ';' at end of member declaration 147 | Shader(const std::filesystem::path& filename, Type type); | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:147:41: error: 'filename' does not name a type 147 | Shader(const std::filesystem::path& filename, Type type); | ^~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:168:23: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:168:39: error: expected unqualified-id before '&' token 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^ /usr/include/SFML/Graphics/Shader.hpp:168:39: error: expected ')' before '&' token 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:168:39: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Shader.hpp:168:39: error: expected ';' at end of member declaration 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:168:5: error: 'sf::Shader::Shader(...)' cannot be overloaded with 'sf::Shader::Shader(...)' 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^~~~~~ /usr/include/SFML/Graphics/Shader.hpp:147:5: note: previous declaration 'sf::Shader::Shader(...)' 147 | Shader(const std::filesystem::path& filename, Type type); | ^~~~~~ /usr/include/SFML/Graphics/Shader.hpp:168:41: error: 'vertexShaderFilename' does not name a type 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:190:23: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:190:39: error: expected unqualified-id before '&' token 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^ /usr/include/SFML/Graphics/Shader.hpp:190:39: error: expected ')' before '&' token 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:190:39: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Shader.hpp:190:39: error: expected ';' at end of member declaration 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:190:5: error: 'sf::Shader::Shader(...)' cannot be overloaded with 'sf::Shader::Shader(...)' 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^~~~~~ /usr/include/SFML/Graphics/Shader.hpp:147:5: note: previous declaration 'sf::Shader::Shader(...)' 147 | Shader(const std::filesystem::path& filename, Type type); | ^~~~~~ /usr/include/SFML/Graphics/Shader.hpp:190:41: error: 'vertexShaderFilename' does not name a type 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:212:28: error: expected ')' before 'shader' 212 | Shader(std::string_view shader, Type type); | ~ ^~~~~~~ | ) /usr/include/SFML/Graphics/Shader.hpp:233:28: error: expected ')' before 'vertexShader' 233 | Shader(std::string_view vertexShader, std::string_view fragmentShader); | ~ ^~~~~~~~~~~~~ | ) /usr/include/SFML/Graphics/Shader.hpp:255:28: error: expected ')' before 'vertexShader' 255 | Shader(std::string_view vertexShader, std::string_view geometryShader, std::string_view fragmentShader); | ~ ^~~~~~~~~~~~~ | ) /usr/include/SFML/Graphics/Shader.hpp:339:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:339:64: error: expected unqualified-id before '&' token 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^ /usr/include/SFML/Graphics/Shader.hpp:339:64: error: expected ')' before '&' token 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:339:64: error: expected ';' at end of member declaration 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:339:66: error: 'filename' does not name a type 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:360:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:360:64: error: expected unqualified-id before '&' token 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^ /usr/include/SFML/Graphics/Shader.hpp:360:64: error: expected ')' before '&' token 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:360:64: error: expected ';' at end of member declaration 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:360:24: error: 'bool sf::Shader::loadFromFile(...) &' cannot be overloaded with 'bool sf::Shader::loadFromFile(...) &' 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:339:24: note: previous declaration 'bool sf::Shader::loadFromFile(...) &' 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:360:66: error: 'vertexShaderFilename' does not name a type 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:383:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:383:64: error: expected unqualified-id before '&' token 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^ /usr/include/SFML/Graphics/Shader.hpp:383:64: error: expected ')' before '&' token 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:383:64: error: expected ';' at end of member declaration 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:383:24: error: 'bool sf::Shader::loadFromFile(...) &' cannot be overloaded with 'bool sf::Shader::loadFromFile(...) &' 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:339:24: note: previous declaration 'bool sf::Shader::loadFromFile(...) &' 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:383:66: error: 'vertexShaderFilename' does not name a type 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:405:44: error: 'std::string_view' has not been declared 405 | [[nodiscard]] bool loadFromMemory(std::string_view shader, Type type); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:426:44: error: 'std::string_view' has not been declared 426 | [[nodiscard]] bool loadFromMemory(std::string_view vertexShader, std::string_view fragmentShader); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:426:75: error: 'std::string_view' has not been declared 426 | [[nodiscard]] bool loadFromMemory(std::string_view vertexShader, std::string_view fragmentShader); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:448:44: error: 'std::string_view' has not been declared 448 | [[nodiscard]] bool loadFromMemory(std::string_view vertexShader, | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:449:44: error: 'std::string_view' has not been declared 449 | std::string_view geometryShader, | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:450:44: error: 'std::string_view' has not been declared 450 | std::string_view fragmentShader); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:861:37: error: 'std::string_view' has not been declared 861 | [[nodiscard]] bool compile(std::string_view vertexShaderCode, | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:862:37: error: 'std::string_view' has not been declared 862 | std::string_view geometryShaderCode, | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:863:37: error: 'std::string_view' has not been declared 863 | std::string_view fragmentShaderCode); | ^~~~~~~~~~~ In file included from game_over.cpp:31: gui.h:62:22: warning: 'virtual void TWidget::Focussed()' was hidden [-Woverloaded-virtual=] 62 | virtual void Focussed() {} | ^~~~~~~~ gui.h:76:14: note: by 'void TLabel::Focussed(bool)' 76 | void Focussed(bool masterFocus); | ^~~~~~~~ In file included from game_over.cpp:39: winsys.h: In member function 'bool CWinsys::PollEvent(sf::Event&)': winsys.h:65:58: error: 'class sf::RenderWindow' has no member named 'pollEvent' 65 | bool PollEvent(sf::Event& event) { return window.pollEvent(event); } | ^~~~~~~~~ game_over.cpp: In member function 'virtual void CGameOver::Keyb(sf::Keyboard::Key, bool, int, int)': game_over.cpp:58:34: error: 'Enter' is not a member of 'sf::Keyboard' 58 | if (key == sf::Keyboard::Enter || key == sf::Keyboard::Escape) QuitGameOver(); | ^~~~~ game_over.cpp:58:34: note: suggested alternatives: In file included from /usr/include/SFML/Window/Event.hpp:31: /usr/include/SFML/Window/Keyboard.hpp:211:5: note: 'sf::Keyboard::Scan::Enter' 211 | Enter, //!< Keyboard Enter/Return key | ^~~~~ /usr/include/SFML/Window/Keyboard.hpp:211:5: note: 'sf::Keyboard::Scan::Enter' /usr/include/SFML/Window/Keyboard.hpp:112:5: note: 'sf::Keyboard::Key::Enter' 112 | Enter, //!< The Enter/Return keys | ^~~~~ game_over.cpp:58:64: error: 'Escape' is not a member of 'sf::Keyboard' 58 | if (key == sf::Keyboard::Enter || key == sf::Keyboard::Escape) QuitGameOver(); | ^~~~~~ game_over.cpp:58:64: note: suggested alternatives: /usr/include/SFML/Window/Keyboard.hpp:212:5: note: 'sf::Keyboard::Scan::Escape' 212 | Escape, //!< Keyboard Escape key | ^~~~~~ /usr/include/SFML/Window/Keyboard.hpp:212:5: note: 'sf::Keyboard::Scan::Escape' /usr/include/SFML/Window/Keyboard.hpp:90:5: note: 'sf::Keyboard::Key::Escape' 90 | Escape, //!< The Escape key | ^~~~~~ make[2]: *** [Makefile:566: game_over.o] Error 1 make[2]: Leaving directory '/usr/src/RPM/BUILD/etr-0.8.4/src' make[2]: Entering directory '/usr/src/RPM/BUILD/etr-0.8.4/src' x86_64-alt-linux-g++ -DHAVE_CONFIG_H -I. -I.. -DETR_DATA_DIR=\"/usr/share\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -std=c++14 -c -o game_type_select.o game_type_select.cpp In file included from /usr/include/SFML/System.hpp:34, from bh.h:30, from game_type_select.h:21, from game_type_select.cpp:22: /usr/include/SFML/System/Clock.hpp:78:20: error: 'ratio_less_equal_v' is not a member of 'std'; did you mean 'ratio_less_equal'? 78 | static_assert(std::ratio_less_equal_v, | ^~~~~~~~~~~~~~~~~~ | ratio_less_equal /usr/include/SFML/System/Clock.hpp:78:56: error: expected primary-expression before ',' token 78 | static_assert(std::ratio_less_equal_v, | ^ /usr/include/SFML/System/Clock.hpp:78:68: error: expected primary-expression before '>' token 78 | static_assert(std::ratio_less_equal_v, | ^ /usr/include/SFML/System/Clock.hpp:78:69: error: expected primary-expression before ',' token 78 | static_assert(std::ratio_less_equal_v, | ^ /usr/include/SFML/System/Clock.hpp:78:69: error: expected ')' before ',' token 78 | static_assert(std::ratio_less_equal_v, | ~ ^ | ) In file included from /usr/include/SFML/System/FileInputStream.hpp:34, from /usr/include/SFML/System.hpp:37: /usr/include/SFML/System/InputStream.hpp:66:32: error: 'optional' in namespace 'std' does not name a template type 66 | [[nodiscard]] virtual std::optional read(void* data, std::size_t size) = 0; | ^~~~~~~~ /usr/include/SFML/System/InputStream.hpp:66:27: note: 'std::optional' is only available from C++17 onwards 66 | [[nodiscard]] virtual std::optional read(void* data, std::size_t size) = 0; | ^~~ /usr/include/SFML/System/InputStream.hpp:76:32: error: 'optional' in namespace 'std' does not name a template type 76 | [[nodiscard]] virtual std::optional seek(std::size_t position) = 0; | ^~~~~~~~ /usr/include/SFML/System/InputStream.hpp:76:27: note: 'std::optional' is only available from C++17 onwards 76 | [[nodiscard]] virtual std::optional seek(std::size_t position) = 0; | ^~~ /usr/include/SFML/System/InputStream.hpp:84:32: error: 'optional' in namespace 'std' does not name a template type 84 | [[nodiscard]] virtual std::optional tell() = 0; | ^~~~~~~~ /usr/include/SFML/System/InputStream.hpp:84:27: note: 'std::optional' is only available from C++17 onwards 84 | [[nodiscard]] virtual std::optional tell() = 0; | ^~~ /usr/include/SFML/System/InputStream.hpp:92:18: error: 'optional' in namespace 'std' does not name a template type 92 | virtual std::optional getSize() = 0; | ^~~~~~~~ /usr/include/SFML/System/InputStream.hpp:92:13: note: 'std::optional' is only available from C++17 onwards 92 | virtual std::optional getSize() = 0; | ^~~ /usr/include/SFML/System/FileInputStream.hpp:106:41: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 106 | explicit FileInputStream(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/System/FileInputStream.hpp:106:57: error: expected unqualified-id before '&' token 106 | explicit FileInputStream(const std::filesystem::path& filename); | ^ /usr/include/SFML/System/FileInputStream.hpp:106:57: error: expected ')' before '&' token 106 | explicit FileInputStream(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/System/FileInputStream.hpp:106:57: error: constructors may not be ref-qualified /usr/include/SFML/System/FileInputStream.hpp:106:57: error: expected ';' at end of member declaration 106 | explicit FileInputStream(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/System/FileInputStream.hpp:106:59: error: 'filename' does not name a type 106 | explicit FileInputStream(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:116:40: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/System/FileInputStream.hpp:116:56: error: expected unqualified-id before '&' token 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ^ /usr/include/SFML/System/FileInputStream.hpp:116:56: error: expected ')' before '&' token 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/System/FileInputStream.hpp:116:56: error: expected ';' at end of member declaration 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/System/FileInputStream.hpp:116:58: error: 'filename' does not name a type 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:130:24: error: 'optional' in namespace 'std' does not name a template type 130 | [[nodiscard]] std::optional read(void* data, std::size_t size) override; | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:130:19: note: 'std::optional' is only available from C++17 onwards 130 | [[nodiscard]] std::optional read(void* data, std::size_t size) override; | ^~~ /usr/include/SFML/System/FileInputStream.hpp:140:24: error: 'optional' in namespace 'std' does not name a template type 140 | [[nodiscard]] std::optional seek(std::size_t position) override; | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:140:19: note: 'std::optional' is only available from C++17 onwards 140 | [[nodiscard]] std::optional seek(std::size_t position) override; | ^~~ /usr/include/SFML/System/FileInputStream.hpp:148:24: error: 'optional' in namespace 'std' does not name a template type 148 | [[nodiscard]] std::optional tell() override; | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:148:19: note: 'std::optional' is only available from C++17 onwards 148 | [[nodiscard]] std::optional tell() override; | ^~~ /usr/include/SFML/System/FileInputStream.hpp:156:10: error: 'optional' in namespace 'std' does not name a template type 156 | std::optional getSize() override; | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:156:5: note: 'std::optional' is only available from C++17 onwards 156 | std::optional getSize() override; | ^~~ In file included from /usr/include/SFML/System.hpp:39: /usr/include/SFML/System/MemoryInputStream.hpp:70:24: error: 'optional' in namespace 'std' does not name a template type 70 | [[nodiscard]] std::optional read(void* data, std::size_t size) override; | ^~~~~~~~ /usr/include/SFML/System/MemoryInputStream.hpp:70:19: note: 'std::optional' is only available from C++17 onwards 70 | [[nodiscard]] std::optional read(void* data, std::size_t size) override; | ^~~ /usr/include/SFML/System/MemoryInputStream.hpp:80:24: error: 'optional' in namespace 'std' does not name a template type 80 | [[nodiscard]] std::optional seek(std::size_t position) override; | ^~~~~~~~ /usr/include/SFML/System/MemoryInputStream.hpp:80:19: note: 'std::optional' is only available from C++17 onwards 80 | [[nodiscard]] std::optional seek(std::size_t position) override; | ^~~ /usr/include/SFML/System/MemoryInputStream.hpp:88:24: error: 'optional' in namespace 'std' does not name a template type 88 | [[nodiscard]] std::optional tell() override; | ^~~~~~~~ /usr/include/SFML/System/MemoryInputStream.hpp:88:19: note: 'std::optional' is only available from C++17 onwards 88 | [[nodiscard]] std::optional tell() override; | ^~~ /usr/include/SFML/System/MemoryInputStream.hpp:96:10: error: 'optional' in namespace 'std' does not name a template type 96 | std::optional getSize() override; | ^~~~~~~~ /usr/include/SFML/System/MemoryInputStream.hpp:96:5: note: 'std::optional' is only available from C++17 onwards 96 | std::optional getSize() override; | ^~~ /usr/include/SFML/System/MemoryInputStream.hpp:102:16: error: 'byte' in namespace 'std' does not name a type 102 | const std::byte* m_data{}; //!< Pointer to the data in memory | ^~~~ /usr/include/SFML/System/MemoryInputStream.hpp:102:11: note: 'std::byte' is only available from C++17 onwards 102 | const std::byte* m_data{}; //!< Pointer to the data in memory | ^~~ In file included from /usr/include/SFML/System/Utf.hpp:742, from /usr/include/SFML/System/String.hpp:32, from /usr/include/SFML/System.hpp:41: /usr/include/SFML/System/Utf.inl: In static member function 'static Out sf::Utf<8>::encode(char32_t, Out, uint8_t)': /usr/include/SFML/System/Utf.inl:137:25: error: 'byte' is not a member of 'std' 137 | std::array bytes{}; | ^~~~ /usr/include/SFML/System/Utf.inl:137:25: note: 'std::byte' is only available from C++17 onwards /usr/include/SFML/System/Utf.inl:137:25: error: 'byte' is not a member of 'std' /usr/include/SFML/System/Utf.inl:137:25: note: 'std::byte' is only available from C++17 onwards /usr/include/SFML/System/Utf.inl:137:32: error: template argument 1 is invalid 137 | std::array bytes{}; | ^ /usr/include/SFML/System/Utf.inl:142:26: error: invalid types 'int[int]' for array subscript 142 | case 4: bytes[3] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^ /usr/include/SFML/System/Utf.inl:142:49: error: 'byte' in namespace 'std' does not name a type 142 | case 4: bytes[3] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~~ /usr/include/SFML/System/Utf.inl:142:44: note: 'std::byte' is only available from C++17 onwards 142 | case 4: bytes[3] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~ /usr/include/SFML/System/Utf.inl:143:26: error: invalid types 'int[int]' for array subscript 143 | case 3: bytes[2] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^ /usr/include/SFML/System/Utf.inl:143:49: error: 'byte' in namespace 'std' does not name a type 143 | case 3: bytes[2] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~~ /usr/include/SFML/System/Utf.inl:143:44: note: 'std::byte' is only available from C++17 onwards 143 | case 3: bytes[2] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~ /usr/include/SFML/System/Utf.inl:144:26: error: invalid types 'int[int]' for array subscript 144 | case 2: bytes[1] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^ /usr/include/SFML/System/Utf.inl:144:49: error: 'byte' in namespace 'std' does not name a type 144 | case 2: bytes[1] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~~ /usr/include/SFML/System/Utf.inl:144:44: note: 'std::byte' is only available from C++17 onwards 144 | case 2: bytes[1] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~ /usr/include/SFML/System/Utf.inl:145:26: error: invalid types 'int[int]' for array subscript 145 | case 1: bytes[0] = static_cast (input | firstBytes[bytestoWrite]); | ^ /usr/include/SFML/System/Utf.inl:145:49: error: 'byte' in namespace 'std' does not name a type 145 | case 1: bytes[0] = static_cast (input | firstBytes[bytestoWrite]); | ^~~~ /usr/include/SFML/System/Utf.inl:145:44: note: 'std::byte' is only available from C++17 onwards 145 | case 1: bytes[0] = static_cast (input | firstBytes[bytestoWrite]); | ^~~ /usr/include/SFML/System/Utf.inl:150:35: error: request for member 'data' in 'bytes', which is of non-class type 'int' 150 | output = priv::copy(bytes.data(), bytes.data() + bytestoWrite, output); | ^~~~ /usr/include/SFML/System/Utf.inl:150:49: error: request for member 'data' in 'bytes', which is of non-class type 'int' 150 | output = priv::copy(bytes.data(), bytes.data() + bytestoWrite, output); | ^~~~ In file included from /usr/include/SFML/Window.hpp:32, from bh.h:31: /usr/include/SFML/Window/Context.hpp: At global scope: /usr/include/SFML/Window/Context.hpp:130:57: error: 'std::string_view' has not been declared 130 | [[nodiscard]] static bool isExtensionAvailable(std::string_view name); | ^~~~~~~~~~~ In file included from /usr/include/SFML/Window.hpp:34: /usr/include/SFML/Window/Cursor.hpp:226:31: error: 'optional' in namespace 'std' does not name a template type 226 | [[nodiscard]] static std::optional createFromPixels(const std::uint8_t* pixels, Vector2u size, Vector2u hotspot); | ^~~~~~~~ /usr/include/SFML/Window/Cursor.hpp:226:26: note: 'std::optional' is only available from C++17 onwards 226 | [[nodiscard]] static std::optional createFromPixels(const std::uint8_t* pixels, Vector2u size, Vector2u hotspot); | ^~~ /usr/include/SFML/Window/Cursor.hpp:242:31: error: 'optional' in namespace 'std' does not name a template type 242 | [[nodiscard]] static std::optional createFromSystem(Type type); | ^~~~~~~~ /usr/include/SFML/Window/Cursor.hpp:242:26: note: 'std::optional' is only available from C++17 onwards 242 | [[nodiscard]] static std::optional createFromSystem(Type type); | ^~~ In file included from /usr/include/SFML/Window.hpp:35: /usr/include/SFML/Window/Event.hpp:345:10: error: 'variant' in namespace 'std' does not name a template type 345 | std::variant*) | ^~~~~~~ /usr/include/SFML/Window/Event.hpp:374:65: note: 'std::variant' is only available from C++17 onwards 374 | [[nodiscard]] static constexpr bool isInParameterPack(const std::variant*) | ^~~ /usr/include/SFML/Window/Event.hpp:374:77: error: expected ',' or '...' before '<' token 374 | [[nodiscard]] static constexpr bool isInParameterPack(const std::variant*) | ^ /usr/include/SFML/Window/Event.hpp:380:76: error: 'm_data' was not declared in this scope 380 | static constexpr bool isEventSubtype = isInParameterPack(decltype (&m_data)(nullptr)); | ^~~~~~ /usr/include/SFML/Window/Event.hpp: In static member function 'static constexpr bool sf::Event::isInParameterPack(int)': /usr/include/SFML/Window/Event.hpp:376:22: error: 'is_same_v' is not a member of 'std'; did you mean 'is_same'? 376 | return (std::is_same_v || ...); | ^~~~~~~~~ | is_same /usr/include/SFML/Window/Event.hpp:376:33: error: expected primary-expression before ',' token 376 | return (std::is_same_v || ...); | ^ /usr/include/SFML/Window/Event.hpp:376:37: error: expected primary-expression before '>' token 376 | return (std::is_same_v || ...); | ^ /usr/include/SFML/Window/Event.hpp:376:39: error: expected primary-expression before '||' token 376 | return (std::is_same_v || ...); | ^~ /usr/include/SFML/Window/Event.hpp:376:42: error: operand of fold expression has no unexpanded parameter packs 376 | return (std::is_same_v || ...); | ^~~ In file included from /usr/include/SFML/Window/Event.hpp:385: /usr/include/SFML/Window/Event.inl: In constructor 'sf::Event::Event(const TEventSubtype&)': /usr/include/SFML/Window/Event.inl:47:9: error: 'm_data' was not declared in this scope 47 | m_data = eventSubtype; | ^~~~~~ /usr/include/SFML/Window/Event.inl: In member function 'bool sf::Event::is() const': /usr/include/SFML/Window/Event.inl:57:21: error: 'holds_alternative' is not a member of 'std' 57 | return std::holds_alternative(m_data); | ^~~~~~~~~~~~~~~~~ /usr/include/SFML/Window/Event.inl:57:21: note: 'std::holds_alternative' is only available from C++17 onwards /usr/include/SFML/Window/Event.inl:57:52: error: expected primary-expression before '>' token 57 | return std::holds_alternative(m_data); | ^ /usr/include/SFML/Window/Event.inl:57:54: error: 'm_data' was not declared in this scope 57 | return std::holds_alternative(m_data); | ^~~~~~ /usr/include/SFML/Window/Event.inl: In member function 'const TEventSubtype* sf::Event::getIf() const': /usr/include/SFML/Window/Event.inl:67:21: error: 'get_if' is not a member of 'std' 67 | return std::get_if(&m_data); | ^~~~~~ /usr/include/SFML/Window/Event.inl:67:41: error: expected primary-expression before '>' token 67 | return std::get_if(&m_data); | ^ /usr/include/SFML/Window/Event.inl:67:44: error: 'm_data' was not declared in this scope 67 | return std::get_if(&m_data); | ^~~~~~ /usr/include/SFML/Window/Event.inl: In member function 'decltype(auto) sf::Event::visit(T&&) const': /usr/include/SFML/Window/Event.inl:75:17: error: 'visit' is not a member of 'std' 75 | return std::visit(std::forward(visitor), m_data); | ^~~~~ /usr/include/SFML/Window/Event.inl:75:17: note: 'std::visit' is only available from C++17 onwards /usr/include/SFML/Window/Event.inl:75:49: error: 'm_data' was not declared in this scope 75 | return std::visit(std::forward(visitor), m_data); | ^~~~~~ In file included from /usr/include/SFML/Window/Window.hpp:32, from /usr/include/SFML/Window.hpp:42: /usr/include/SFML/Window/WindowBase.hpp: At global scope: /usr/include/SFML/Window/WindowBase.hpp:226:24: error: 'optional' in namespace 'std' does not name a template type 226 | [[nodiscard]] std::optional pollEvent(); | ^~~~~~~~ /usr/include/SFML/Window/WindowBase.hpp:226:19: note: 'std::optional' is only available from C++17 onwards 226 | [[nodiscard]] std::optional pollEvent(); | ^~~ /usr/include/SFML/Window/WindowBase.hpp:252:24: error: 'optional' in namespace 'std' does not name a template type 252 | [[nodiscard]] std::optional waitEvent(Time timeout = Time::Zero); | ^~~~~~~~ /usr/include/SFML/Window/WindowBase.hpp:252:19: note: 'std::optional' is only available from C++17 onwards 252 | [[nodiscard]] std::optional waitEvent(Time timeout = Time::Zero); | ^~~ /usr/include/SFML/Window/WindowBase.hpp:387:36: error: 'optional' in namespace 'std' does not name a template type 387 | void setMinimumSize(const std::optional& minimumSize); | ^~~~~~~~ /usr/include/SFML/Window/WindowBase.hpp:387:31: note: 'std::optional' is only available from C++17 onwards 387 | void setMinimumSize(const std::optional& minimumSize); | ^~~ /usr/include/SFML/Window/WindowBase.hpp:387:44: error: expected ',' or '...' before '<' token 387 | void setMinimumSize(const std::optional& minimumSize); | ^ /usr/include/SFML/Window/WindowBase.hpp:397:36: error: 'optional' in namespace 'std' does not name a template type 397 | void setMaximumSize(const std::optional& maximumSize); | ^~~~~~~~ /usr/include/SFML/Window/WindowBase.hpp:397:31: note: 'std::optional' is only available from C++17 onwards 397 | void setMaximumSize(const std::optional& maximumSize); | ^~~ /usr/include/SFML/Window/WindowBase.hpp:397:44: error: expected ',' or '...' before '<' token 397 | void setMaximumSize(const std::optional& maximumSize); | ^ In file included from /usr/include/SFML/Window/WindowBase.hpp:617: /usr/include/SFML/Window/WindowBase.inl:47:41: error: expected constructor, destructor, or type conversion before ';' token 47 | OverloadSet(Ts...) -> OverloadSet; | ^ /usr/include/SFML/Window/WindowBase.inl: In member function 'void sf::WindowBase::handleEvents(Ts&& ...)': /usr/include/SFML/Window/WindowBase.inl:69:23: error: missing template arguments before 'overloadSet' 69 | priv::OverloadSet overloadSet{std::forward(handlers)..., [](const priv::DelayOverloadResolution&) { /* ignore */ }}; | ^~~~~~~~~~~ /usr/include/SFML/Window/WindowBase.inl:71:32: error: qualified-id in declaration before 'event' 71 | while (const std::optional event = pollEvent()) | ^~~~~ /usr/include/SFML/Window/WindowBase.inl:72:9: error: 'event' was not declared in this scope; did you mean 'Event'? 72 | event->visit(overloadSet); | ^~~~~ | Event /usr/include/SFML/Window/WindowBase.inl:72:22: error: 'overloadSet' was not declared in this scope 72 | event->visit(overloadSet); | ^~~~~~~~~~~ In file included from /usr/include/SFML/Graphics/Color.hpp:229, from /usr/include/SFML/Graphics/Shape.hpp:32, from /usr/include/SFML/Graphics/CircleShape.hpp:32, from /usr/include/SFML/Graphics.hpp:32, from bh.h:32: /usr/include/SFML/Graphics/Color.inl: In function 'constexpr sf::Color sf::operator+(Color, Color)': /usr/include/SFML/Graphics/Color.inl:77:16: error: variable 'clampedAdd' of non-literal type 'const sf::operator+(Color, Color)::' in 'constexpr' function only available with '-std=c++2b' or '-std=gnu++2b' 77 | const auto clampedAdd = [](std::uint8_t lhs, std::uint8_t rhs) | ^~~~~~~~~~ /usr/include/SFML/Graphics/Color.inl:77:30: note: 'sf::operator+(Color, Color)::' is not literal because: 77 | const auto clampedAdd = [](std::uint8_t lhs, std::uint8_t rhs) | ^ cc1plus: note: 'sf::operator+(Color, Color)::' is a closure type, which is only literal in C++17 and later /usr/include/SFML/Graphics/Color.inl: In function 'constexpr sf::Color sf::operator-(Color, Color)': /usr/include/SFML/Graphics/Color.inl:93:16: error: variable 'clampedSub' of non-literal type 'const sf::operator-(Color, Color)::' in 'constexpr' function only available with '-std=c++2b' or '-std=gnu++2b' 93 | const auto clampedSub = [](std::uint8_t lhs, std::uint8_t rhs) | ^~~~~~~~~~ /usr/include/SFML/Graphics/Color.inl:93:30: note: 'sf::operator-(Color, Color)::' is not literal because: 93 | const auto clampedSub = [](std::uint8_t lhs, std::uint8_t rhs) | ^ cc1plus: note: 'sf::operator-(Color, Color)::' is a closure type, which is only literal in C++17 and later /usr/include/SFML/Graphics/Color.inl: In function 'constexpr sf::Color sf::operator*(Color, Color)': /usr/include/SFML/Graphics/Color.inl:109:16: error: variable 'scaledMul' of non-literal type 'const sf::operator*(Color, Color)::' in 'constexpr' function only available with '-std=c++2b' or '-std=gnu++2b' 109 | const auto scaledMul = [](std::uint8_t lhs, std::uint8_t rhs) | ^~~~~~~~~ /usr/include/SFML/Graphics/Color.inl:109:29: note: 'sf::operator*(Color, Color)::' is not literal because: 109 | const auto scaledMul = [](std::uint8_t lhs, std::uint8_t rhs) | ^ cc1plus: note: 'sf::operator*(Color, Color)::' is a closure type, which is only literal in C++17 and later In file included from /usr/include/SFML/Graphics/Shape.hpp:35: /usr/include/SFML/Graphics/Rect.hpp: At global scope: /usr/include/SFML/Graphics/Rect.hpp:98:34: error: 'optional' in namespace 'std' does not name a template type 98 | [[nodiscard]] constexpr std::optional> findIntersection(const Rect& rectangle) const; | ^~~~~~~~ /usr/include/SFML/Graphics/Rect.hpp:98:29: note: 'std::optional' is only available from C++17 onwards 98 | [[nodiscard]] constexpr std::optional> findIntersection(const Rect& rectangle) const; | ^~~ In file included from /usr/include/SFML/Graphics/Rect.hpp:151: /usr/include/SFML/Graphics/Rect.inl:71:16: error: 'optional' in namespace 'std' does not name a template type 71 | constexpr std::optional> Rect::findIntersection(const Rect& rectangle) const | ^~~~~~~~ /usr/include/SFML/Graphics/Rect.inl:71:11: note: 'std::optional' is only available from C++17 onwards 71 | constexpr std::optional> Rect::findIntersection(const Rect& rectangle) const | ^~~ In file included from /usr/include/SFML/Graphics/Transform.hpp:352, from /usr/include/SFML/Graphics/RenderStates.hpp:35, from /usr/include/SFML/Graphics/Shape.hpp:36: /usr/include/SFML/Graphics/Transform.inl: In member function 'constexpr sf::FloatRect sf::Transform::transformRect(const sf::FloatRect&) const': /usr/include/SFML/Graphics/Transform.inl:101:11: error: invalid use of template-name 'std::array' without an argument list 101 | const std::array points = {transformPoint(rectangle.position), | ^~~ /usr/include/SFML/Graphics/Transform.inl:101:11: note: class template argument deduction is only available with '-std=c++17' or '-std=gnu++17' In file included from /usr/include/c++/14/bits/stl_algobase.h:64, from /usr/include/c++/14/string:51, from bh.h:27: /usr/include/c++/14/bits/stl_pair.h:99:12: note: 'template struct std::array' declared here 99 | struct array; | ^~~~~ /usr/include/SFML/Graphics/Transform.inl:107:21: error: 'points' was not declared in this scope; did you mean 'printf'? 107 | Vector2f pmin = points[0]; | ^~~~~~ | printf In file included from /usr/include/SFML/Graphics/Font.hpp:34, from /usr/include/SFML/Graphics.hpp:36: /usr/include/SFML/Graphics/Texture.hpp: At global scope: /usr/include/SFML/Graphics/Texture.hpp:114:33: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Texture.hpp:114:49: error: expected unqualified-id before '&' token 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^ /usr/include/SFML/Graphics/Texture.hpp:114:49: error: expected ')' before '&' token 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ~ ^ | ) /usr/include/SFML/Graphics/Texture.hpp:114:49: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Texture.hpp:114:49: error: expected ';' at end of member declaration 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^ | ; /usr/include/SFML/Graphics/Texture.hpp:114:51: error: 'filename' does not name a type 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^~~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:137:24: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Texture.hpp:137:40: error: expected unqualified-id before '&' token 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^ /usr/include/SFML/Graphics/Texture.hpp:137:40: error: expected ')' before '&' token 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ~ ^ | ) /usr/include/SFML/Graphics/Texture.hpp:137:40: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Texture.hpp:137:40: error: expected ';' at end of member declaration 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^ | ; /usr/include/SFML/Graphics/Texture.hpp:137:5: error: 'sf::Texture::Texture(...)' cannot be overloaded with 'sf::Texture::Texture(...)' 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:114:14: note: previous declaration 'sf::Texture::Texture(...)' 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:137:42: error: 'filename' does not name a type 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^~~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:304:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Texture.hpp:304:64: error: expected unqualified-id before '&' token 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^ /usr/include/SFML/Graphics/Texture.hpp:304:64: error: expected ')' before '&' token 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ~ ^ | ) /usr/include/SFML/Graphics/Texture.hpp:304:64: error: expected ';' at end of member declaration 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^ | ; /usr/include/SFML/Graphics/Texture.hpp:304:66: error: 'filename' does not name a type 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^~~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:304:119: error: expected unqualified-id before ')' token 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^ /usr/include/SFML/Graphics/Font.hpp:103:30: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 103 | explicit Font(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Font.hpp:103:46: error: expected unqualified-id before '&' token 103 | explicit Font(const std::filesystem::path& filename); | ^ /usr/include/SFML/Graphics/Font.hpp:103:46: error: expected ')' before '&' token 103 | explicit Font(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Graphics/Font.hpp:103:46: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Font.hpp:103:46: error: expected ';' at end of member declaration 103 | explicit Font(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Graphics/Font.hpp:103:48: error: 'filename' does not name a type 103 | explicit Font(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/Graphics/Font.hpp:168:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Font.hpp:168:64: error: expected unqualified-id before '&' token 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^ /usr/include/SFML/Graphics/Font.hpp:168:64: error: expected ')' before '&' token 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Graphics/Font.hpp:168:64: error: expected ';' at end of member declaration 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Graphics/Font.hpp:168:66: error: 'filename' does not name a type 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^~~~~~~~ In file included from /usr/include/SFML/Graphics.hpp:38: /usr/include/SFML/Graphics/Image.hpp:103:31: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 103 | explicit Image(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Image.hpp:103:47: error: expected unqualified-id before '&' token 103 | explicit Image(const std::filesystem::path& filename); | ^ /usr/include/SFML/Graphics/Image.hpp:103:47: error: expected ')' before '&' token 103 | explicit Image(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Graphics/Image.hpp:103:47: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Image.hpp:103:47: error: expected ';' at end of member declaration 103 | explicit Image(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Graphics/Image.hpp:103:49: error: 'filename' does not name a type 103 | explicit Image(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/Graphics/Image.hpp:175:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Image.hpp:175:64: error: expected unqualified-id before '&' token 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^ /usr/include/SFML/Graphics/Image.hpp:175:64: error: expected ')' before '&' token 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Graphics/Image.hpp:175:64: error: expected ';' at end of member declaration 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Graphics/Image.hpp:175:66: error: 'filename' does not name a type 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/Graphics/Image.hpp:227:46: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Image.hpp:227:62: error: expected unqualified-id before '&' token 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^ /usr/include/SFML/Graphics/Image.hpp:227:62: error: expected ')' before '&' token 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ~ ^ | ) /usr/include/SFML/Graphics/Image.hpp:227:62: error: expected ';' at end of member declaration 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^ | ; /usr/include/SFML/Graphics/Image.hpp:227:64: error: 'filename' does not name a type 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^~~~~~~~ /usr/include/SFML/Graphics/Image.hpp:245:24: error: 'optional' in namespace 'std' does not name a template type 245 | [[nodiscard]] std::optional> saveToMemory(std::string_view format) const; | ^~~~~~~~ /usr/include/SFML/Graphics/Image.hpp:245:19: note: 'std::optional' is only available from C++17 onwards 245 | [[nodiscard]] std::optional> saveToMemory(std::string_view format) const; | ^~~ In file included from /usr/include/SFML/Graphics.hpp:46: /usr/include/SFML/Graphics/Shader.hpp:147:23: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 147 | Shader(const std::filesystem::path& filename, Type type); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:147:39: error: expected unqualified-id before '&' token 147 | Shader(const std::filesystem::path& filename, Type type); | ^ /usr/include/SFML/Graphics/Shader.hpp:147:39: error: expected ')' before '&' token 147 | Shader(const std::filesystem::path& filename, Type type); | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:147:39: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Shader.hpp:147:39: error: expected ';' at end of member declaration 147 | Shader(const std::filesystem::path& filename, Type type); | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:147:41: error: 'filename' does not name a type 147 | Shader(const std::filesystem::path& filename, Type type); | ^~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:168:23: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:168:39: error: expected unqualified-id before '&' token 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^ /usr/include/SFML/Graphics/Shader.hpp:168:39: error: expected ')' before '&' token 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:168:39: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Shader.hpp:168:39: error: expected ';' at end of member declaration 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:168:5: error: 'sf::Shader::Shader(...)' cannot be overloaded with 'sf::Shader::Shader(...)' 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^~~~~~ /usr/include/SFML/Graphics/Shader.hpp:147:5: note: previous declaration 'sf::Shader::Shader(...)' 147 | Shader(const std::filesystem::path& filename, Type type); | ^~~~~~ /usr/include/SFML/Graphics/Shader.hpp:168:41: error: 'vertexShaderFilename' does not name a type 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:190:23: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:190:39: error: expected unqualified-id before '&' token 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^ /usr/include/SFML/Graphics/Shader.hpp:190:39: error: expected ')' before '&' token 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:190:39: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Shader.hpp:190:39: error: expected ';' at end of member declaration 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:190:5: error: 'sf::Shader::Shader(...)' cannot be overloaded with 'sf::Shader::Shader(...)' 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^~~~~~ /usr/include/SFML/Graphics/Shader.hpp:147:5: note: previous declaration 'sf::Shader::Shader(...)' 147 | Shader(const std::filesystem::path& filename, Type type); | ^~~~~~ /usr/include/SFML/Graphics/Shader.hpp:190:41: error: 'vertexShaderFilename' does not name a type 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:212:28: error: expected ')' before 'shader' 212 | Shader(std::string_view shader, Type type); | ~ ^~~~~~~ | ) /usr/include/SFML/Graphics/Shader.hpp:233:28: error: expected ')' before 'vertexShader' 233 | Shader(std::string_view vertexShader, std::string_view fragmentShader); | ~ ^~~~~~~~~~~~~ | ) /usr/include/SFML/Graphics/Shader.hpp:255:28: error: expected ')' before 'vertexShader' 255 | Shader(std::string_view vertexShader, std::string_view geometryShader, std::string_view fragmentShader); | ~ ^~~~~~~~~~~~~ | ) /usr/include/SFML/Graphics/Shader.hpp:339:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:339:64: error: expected unqualified-id before '&' token 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^ /usr/include/SFML/Graphics/Shader.hpp:339:64: error: expected ')' before '&' token 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:339:64: error: expected ';' at end of member declaration 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:339:66: error: 'filename' does not name a type 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:360:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:360:64: error: expected unqualified-id before '&' token 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^ /usr/include/SFML/Graphics/Shader.hpp:360:64: error: expected ')' before '&' token 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:360:64: error: expected ';' at end of member declaration 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:360:24: error: 'bool sf::Shader::loadFromFile(...) &' cannot be overloaded with 'bool sf::Shader::loadFromFile(...) &' 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:339:24: note: previous declaration 'bool sf::Shader::loadFromFile(...) &' 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:360:66: error: 'vertexShaderFilename' does not name a type 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:383:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:383:64: error: expected unqualified-id before '&' token 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^ /usr/include/SFML/Graphics/Shader.hpp:383:64: error: expected ')' before '&' token 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:383:64: error: expected ';' at end of member declaration 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:383:24: error: 'bool sf::Shader::loadFromFile(...) &' cannot be overloaded with 'bool sf::Shader::loadFromFile(...) &' 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:339:24: note: previous declaration 'bool sf::Shader::loadFromFile(...) &' 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:383:66: error: 'vertexShaderFilename' does not name a type 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:405:44: error: 'std::string_view' has not been declared 405 | [[nodiscard]] bool loadFromMemory(std::string_view shader, Type type); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:426:44: error: 'std::string_view' has not been declared 426 | [[nodiscard]] bool loadFromMemory(std::string_view vertexShader, std::string_view fragmentShader); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:426:75: error: 'std::string_view' has not been declared 426 | [[nodiscard]] bool loadFromMemory(std::string_view vertexShader, std::string_view fragmentShader); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:448:44: error: 'std::string_view' has not been declared 448 | [[nodiscard]] bool loadFromMemory(std::string_view vertexShader, | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:449:44: error: 'std::string_view' has not been declared 449 | std::string_view geometryShader, | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:450:44: error: 'std::string_view' has not been declared 450 | std::string_view fragmentShader); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:861:37: error: 'std::string_view' has not been declared 861 | [[nodiscard]] bool compile(std::string_view vertexShaderCode, | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:862:37: error: 'std::string_view' has not been declared 862 | std::string_view geometryShaderCode, | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:863:37: error: 'std::string_view' has not been declared 863 | std::string_view fragmentShaderCode); | ^~~~~~~~~~~ In file included from game_type_select.cpp:26: gui.h:62:22: warning: 'virtual void TWidget::Focussed()' was hidden [-Woverloaded-virtual=] 62 | virtual void Focussed() {} | ^~~~~~~~ gui.h:76:14: note: by 'void TLabel::Focussed(bool)' 76 | void Focussed(bool masterFocus); | ^~~~~~~~ In file included from game_type_select.cpp:36: winsys.h: In member function 'bool CWinsys::PollEvent(sf::Event&)': winsys.h:65:58: error: 'class sf::RenderWindow' has no member named 'pollEvent' 65 | bool PollEvent(sf::Event& event) { return window.pollEvent(event); } | ^~~~~~~~~ game_type_select.cpp: At global scope: game_type_select.cpp:41:19: error: no matching function for call to 'sf::Sprite::Sprite()' 41 | static sf::Sprite logo; | ^~~~ In file included from /usr/include/SFML/Graphics.hpp:48: /usr/include/SFML/Graphics/Sprite.hpp:78:5: note: candidate: 'sf::Sprite::Sprite(const sf::Texture&, const sf::IntRect&)' 78 | Sprite(const Texture& texture, const IntRect& rectangle); | ^~~~~~ /usr/include/SFML/Graphics/Sprite.hpp:78:5: note: candidate expects 2 arguments, 0 provided /usr/include/SFML/Graphics/Sprite.hpp:61:14: note: candidate: 'sf::Sprite::Sprite(const sf::Texture&)' 61 | explicit Sprite(const Texture& texture); | ^~~~~~ /usr/include/SFML/Graphics/Sprite.hpp:61:14: note: candidate expects 1 argument, 0 provided /usr/include/SFML/Graphics/Sprite.hpp:50:25: note: candidate: 'constexpr sf::Sprite::Sprite(const sf::Sprite&)' 50 | class SFML_GRAPHICS_API Sprite : public Drawable, public Transformable | ^~~~~~ /usr/include/SFML/Graphics/Sprite.hpp:50:25: note: candidate expects 1 argument, 0 provided /usr/include/SFML/Graphics/Sprite.hpp:50:25: note: candidate: 'constexpr sf::Sprite::Sprite(sf::Sprite&&)' /usr/include/SFML/Graphics/Sprite.hpp:50:25: note: candidate expects 1 argument, 0 provided game_type_select.cpp: In member function 'virtual void CGameTypeSelect::Keyb(sf::Keyboard::Key, bool, int, int)': game_type_select.cpp:76:36: error: 'U' is not a member of 'sf::Keyboard' 76 | case sf::Keyboard::U: | ^ game_type_select.cpp:76:36: note: suggested alternatives: In file included from /usr/include/SFML/Window/Event.hpp:30: /usr/include/SFML/Window/Joystick.hpp:60:5: note: 'sf::Joystick::Axis::U' 60 | U, //!< The U axis | ^ In file included from /usr/include/SFML/Window/Event.hpp:31: /usr/include/SFML/Window/Keyboard.hpp:195:5: note: 'sf::Keyboard::Scan::U' 195 | U, //!< Keyboard u and U key | ^ /usr/include/SFML/Window/Keyboard.hpp:195:5: note: 'sf::Keyboard::Scan::U' /usr/include/SFML/Window/Keyboard.hpp:74:5: note: 'sf::Keyboard::Key::U' 74 | U, //!< The U key | ^ game_type_select.cpp:79:36: error: 'Escape' is not a member of 'sf::Keyboard' 79 | case sf::Keyboard::Escape: | ^~~~~~ game_type_select.cpp:79:36: note: suggested alternatives: /usr/include/SFML/Window/Keyboard.hpp:212:5: note: 'sf::Keyboard::Scan::Escape' 212 | Escape, //!< Keyboard Escape key | ^~~~~~ /usr/include/SFML/Window/Keyboard.hpp:212:5: note: 'sf::Keyboard::Scan::Escape' /usr/include/SFML/Window/Keyboard.hpp:90:5: note: 'sf::Keyboard::Key::Escape' 90 | Escape, //!< The Escape key | ^~~~~~ game_type_select.cpp:82:36: error: 'Return' is not a member of 'sf::Keyboard' 82 | case sf::Keyboard::Return: | ^~~~~~ game_type_select.cpp:85:36: error: 'W' is not a member of 'sf::Keyboard' 85 | case sf::Keyboard::W: | ^ game_type_select.cpp:85:36: note: suggested alternatives: /usr/include/SFML/Window/Keyboard.hpp:197:5: note: 'sf::Keyboard::Scan::W' 197 | W, //!< Keyboard w and W key | ^ /usr/include/SFML/Window/Keyboard.hpp:197:5: note: 'sf::Keyboard::Scan::W' /usr/include/SFML/Window/Keyboard.hpp:76:5: note: 'sf::Keyboard::Key::W' 76 | W, //!< The W key | ^ game_type_select.cpp: In member function 'virtual void CGameTypeSelect::Enter()': game_type_select.cpp:117:22: error: no matching function for call to 'sf::Sprite::setScale(float&, float&)' 117 | logo.setScale(Winsys.scale, Winsys.scale); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/SFML/Graphics/Shape.hpp:37: /usr/include/SFML/Graphics/Transformable.hpp:98:10: note: candidate: 'void sf::Transformable::setScale(sf::Vector2f)' 98 | void setScale(Vector2f factors); | ^~~~~~~~ /usr/include/SFML/Graphics/Transformable.hpp:98:10: note: candidate expects 1 argument, 2 provided game_type_select.cpp:118:75: error: 'const sf::IntRect' {aka 'const class sf::Rect'} has no member named 'width' 118 | logo.setPosition((Winsys.resolution.width - logo.getTextureRect().width) / 2, (5)); | ^~~~~ make[2]: *** [Makefile:566: game_type_select.o] Error 1 make[2]: Leaving directory '/usr/src/RPM/BUILD/etr-0.8.4/src' make[2]: Entering directory '/usr/src/RPM/BUILD/etr-0.8.4/src' x86_64-alt-linux-g++ -DHAVE_CONFIG_H -I. -I.. -DETR_DATA_DIR=\"/usr/share\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -std=c++14 -c -o game_ctrl.o game_ctrl.cpp In file included from /usr/include/SFML/System.hpp:34, from bh.h:30, from game_ctrl.h:20, from game_ctrl.cpp:21: /usr/include/SFML/System/Clock.hpp:78:20: error: 'ratio_less_equal_v' is not a member of 'std'; did you mean 'ratio_less_equal'? 78 | static_assert(std::ratio_less_equal_v, | ^~~~~~~~~~~~~~~~~~ | ratio_less_equal /usr/include/SFML/System/Clock.hpp:78:56: error: expected primary-expression before ',' token 78 | static_assert(std::ratio_less_equal_v, | ^ /usr/include/SFML/System/Clock.hpp:78:68: error: expected primary-expression before '>' token 78 | static_assert(std::ratio_less_equal_v, | ^ /usr/include/SFML/System/Clock.hpp:78:69: error: expected primary-expression before ',' token 78 | static_assert(std::ratio_less_equal_v, | ^ /usr/include/SFML/System/Clock.hpp:78:69: error: expected ')' before ',' token 78 | static_assert(std::ratio_less_equal_v, | ~ ^ | ) In file included from /usr/include/SFML/System/FileInputStream.hpp:34, from /usr/include/SFML/System.hpp:37: /usr/include/SFML/System/InputStream.hpp:66:32: error: 'optional' in namespace 'std' does not name a template type 66 | [[nodiscard]] virtual std::optional read(void* data, std::size_t size) = 0; | ^~~~~~~~ /usr/include/SFML/System/InputStream.hpp:66:27: note: 'std::optional' is only available from C++17 onwards 66 | [[nodiscard]] virtual std::optional read(void* data, std::size_t size) = 0; | ^~~ /usr/include/SFML/System/InputStream.hpp:76:32: error: 'optional' in namespace 'std' does not name a template type 76 | [[nodiscard]] virtual std::optional seek(std::size_t position) = 0; | ^~~~~~~~ /usr/include/SFML/System/InputStream.hpp:76:27: note: 'std::optional' is only available from C++17 onwards 76 | [[nodiscard]] virtual std::optional seek(std::size_t position) = 0; | ^~~ /usr/include/SFML/System/InputStream.hpp:84:32: error: 'optional' in namespace 'std' does not name a template type 84 | [[nodiscard]] virtual std::optional tell() = 0; | ^~~~~~~~ /usr/include/SFML/System/InputStream.hpp:84:27: note: 'std::optional' is only available from C++17 onwards 84 | [[nodiscard]] virtual std::optional tell() = 0; | ^~~ /usr/include/SFML/System/InputStream.hpp:92:18: error: 'optional' in namespace 'std' does not name a template type 92 | virtual std::optional getSize() = 0; | ^~~~~~~~ /usr/include/SFML/System/InputStream.hpp:92:13: note: 'std::optional' is only available from C++17 onwards 92 | virtual std::optional getSize() = 0; | ^~~ /usr/include/SFML/System/FileInputStream.hpp:106:41: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 106 | explicit FileInputStream(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/System/FileInputStream.hpp:106:57: error: expected unqualified-id before '&' token 106 | explicit FileInputStream(const std::filesystem::path& filename); | ^ /usr/include/SFML/System/FileInputStream.hpp:106:57: error: expected ')' before '&' token 106 | explicit FileInputStream(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/System/FileInputStream.hpp:106:57: error: constructors may not be ref-qualified /usr/include/SFML/System/FileInputStream.hpp:106:57: error: expected ';' at end of member declaration 106 | explicit FileInputStream(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/System/FileInputStream.hpp:106:59: error: 'filename' does not name a type 106 | explicit FileInputStream(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:116:40: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/System/FileInputStream.hpp:116:56: error: expected unqualified-id before '&' token 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ^ /usr/include/SFML/System/FileInputStream.hpp:116:56: error: expected ')' before '&' token 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/System/FileInputStream.hpp:116:56: error: expected ';' at end of member declaration 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/System/FileInputStream.hpp:116:58: error: 'filename' does not name a type 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:130:24: error: 'optional' in namespace 'std' does not name a template type 130 | [[nodiscard]] std::optional read(void* data, std::size_t size) override; | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:130:19: note: 'std::optional' is only available from C++17 onwards 130 | [[nodiscard]] std::optional read(void* data, std::size_t size) override; | ^~~ /usr/include/SFML/System/FileInputStream.hpp:140:24: error: 'optional' in namespace 'std' does not name a template type 140 | [[nodiscard]] std::optional seek(std::size_t position) override; | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:140:19: note: 'std::optional' is only available from C++17 onwards 140 | [[nodiscard]] std::optional seek(std::size_t position) override; | ^~~ /usr/include/SFML/System/FileInputStream.hpp:148:24: error: 'optional' in namespace 'std' does not name a template type 148 | [[nodiscard]] std::optional tell() override; | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:148:19: note: 'std::optional' is only available from C++17 onwards 148 | [[nodiscard]] std::optional tell() override; | ^~~ /usr/include/SFML/System/FileInputStream.hpp:156:10: error: 'optional' in namespace 'std' does not name a template type 156 | std::optional getSize() override; | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:156:5: note: 'std::optional' is only available from C++17 onwards 156 | std::optional getSize() override; | ^~~ In file included from /usr/include/SFML/System.hpp:39: /usr/include/SFML/System/MemoryInputStream.hpp:70:24: error: 'optional' in namespace 'std' does not name a template type 70 | [[nodiscard]] std::optional read(void* data, std::size_t size) override; | ^~~~~~~~ /usr/include/SFML/System/MemoryInputStream.hpp:70:19: note: 'std::optional' is only available from C++17 onwards 70 | [[nodiscard]] std::optional read(void* data, std::size_t size) override; | ^~~ /usr/include/SFML/System/MemoryInputStream.hpp:80:24: error: 'optional' in namespace 'std' does not name a template type 80 | [[nodiscard]] std::optional seek(std::size_t position) override; | ^~~~~~~~ /usr/include/SFML/System/MemoryInputStream.hpp:80:19: note: 'std::optional' is only available from C++17 onwards 80 | [[nodiscard]] std::optional seek(std::size_t position) override; | ^~~ /usr/include/SFML/System/MemoryInputStream.hpp:88:24: error: 'optional' in namespace 'std' does not name a template type 88 | [[nodiscard]] std::optional tell() override; | ^~~~~~~~ /usr/include/SFML/System/MemoryInputStream.hpp:88:19: note: 'std::optional' is only available from C++17 onwards 88 | [[nodiscard]] std::optional tell() override; | ^~~ /usr/include/SFML/System/MemoryInputStream.hpp:96:10: error: 'optional' in namespace 'std' does not name a template type 96 | std::optional getSize() override; | ^~~~~~~~ /usr/include/SFML/System/MemoryInputStream.hpp:96:5: note: 'std::optional' is only available from C++17 onwards 96 | std::optional getSize() override; | ^~~ /usr/include/SFML/System/MemoryInputStream.hpp:102:16: error: 'byte' in namespace 'std' does not name a type 102 | const std::byte* m_data{}; //!< Pointer to the data in memory | ^~~~ /usr/include/SFML/System/MemoryInputStream.hpp:102:11: note: 'std::byte' is only available from C++17 onwards 102 | const std::byte* m_data{}; //!< Pointer to the data in memory | ^~~ In file included from /usr/include/SFML/System/Utf.hpp:742, from /usr/include/SFML/System/String.hpp:32, from /usr/include/SFML/System.hpp:41: /usr/include/SFML/System/Utf.inl: In static member function 'static Out sf::Utf<8>::encode(char32_t, Out, uint8_t)': /usr/include/SFML/System/Utf.inl:137:25: error: 'byte' is not a member of 'std' 137 | std::array bytes{}; | ^~~~ /usr/include/SFML/System/Utf.inl:137:25: note: 'std::byte' is only available from C++17 onwards /usr/include/SFML/System/Utf.inl:137:25: error: 'byte' is not a member of 'std' /usr/include/SFML/System/Utf.inl:137:25: note: 'std::byte' is only available from C++17 onwards /usr/include/SFML/System/Utf.inl:137:32: error: template argument 1 is invalid 137 | std::array bytes{}; | ^ /usr/include/SFML/System/Utf.inl:142:26: error: invalid types 'int[int]' for array subscript 142 | case 4: bytes[3] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^ /usr/include/SFML/System/Utf.inl:142:49: error: 'byte' in namespace 'std' does not name a type 142 | case 4: bytes[3] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~~ /usr/include/SFML/System/Utf.inl:142:44: note: 'std::byte' is only available from C++17 onwards 142 | case 4: bytes[3] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~ /usr/include/SFML/System/Utf.inl:143:26: error: invalid types 'int[int]' for array subscript 143 | case 3: bytes[2] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^ /usr/include/SFML/System/Utf.inl:143:49: error: 'byte' in namespace 'std' does not name a type 143 | case 3: bytes[2] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~~ /usr/include/SFML/System/Utf.inl:143:44: note: 'std::byte' is only available from C++17 onwards 143 | case 3: bytes[2] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~ /usr/include/SFML/System/Utf.inl:144:26: error: invalid types 'int[int]' for array subscript 144 | case 2: bytes[1] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^ /usr/include/SFML/System/Utf.inl:144:49: error: 'byte' in namespace 'std' does not name a type 144 | case 2: bytes[1] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~~ /usr/include/SFML/System/Utf.inl:144:44: note: 'std::byte' is only available from C++17 onwards 144 | case 2: bytes[1] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~ /usr/include/SFML/System/Utf.inl:145:26: error: invalid types 'int[int]' for array subscript 145 | case 1: bytes[0] = static_cast (input | firstBytes[bytestoWrite]); | ^ /usr/include/SFML/System/Utf.inl:145:49: error: 'byte' in namespace 'std' does not name a type 145 | case 1: bytes[0] = static_cast (input | firstBytes[bytestoWrite]); | ^~~~ /usr/include/SFML/System/Utf.inl:145:44: note: 'std::byte' is only available from C++17 onwards 145 | case 1: bytes[0] = static_cast (input | firstBytes[bytestoWrite]); | ^~~ /usr/include/SFML/System/Utf.inl:150:35: error: request for member 'data' in 'bytes', which is of non-class type 'int' 150 | output = priv::copy(bytes.data(), bytes.data() + bytestoWrite, output); | ^~~~ /usr/include/SFML/System/Utf.inl:150:49: error: request for member 'data' in 'bytes', which is of non-class type 'int' 150 | output = priv::copy(bytes.data(), bytes.data() + bytestoWrite, output); | ^~~~ In file included from /usr/include/SFML/Window.hpp:32, from bh.h:31: /usr/include/SFML/Window/Context.hpp: At global scope: /usr/include/SFML/Window/Context.hpp:130:57: error: 'std::string_view' has not been declared 130 | [[nodiscard]] static bool isExtensionAvailable(std::string_view name); | ^~~~~~~~~~~ In file included from /usr/include/SFML/Window.hpp:34: /usr/include/SFML/Window/Cursor.hpp:226:31: error: 'optional' in namespace 'std' does not name a template type 226 | [[nodiscard]] static std::optional createFromPixels(const std::uint8_t* pixels, Vector2u size, Vector2u hotspot); | ^~~~~~~~ /usr/include/SFML/Window/Cursor.hpp:226:26: note: 'std::optional' is only available from C++17 onwards 226 | [[nodiscard]] static std::optional createFromPixels(const std::uint8_t* pixels, Vector2u size, Vector2u hotspot); | ^~~ /usr/include/SFML/Window/Cursor.hpp:242:31: error: 'optional' in namespace 'std' does not name a template type 242 | [[nodiscard]] static std::optional createFromSystem(Type type); | ^~~~~~~~ /usr/include/SFML/Window/Cursor.hpp:242:26: note: 'std::optional' is only available from C++17 onwards 242 | [[nodiscard]] static std::optional createFromSystem(Type type); | ^~~ In file included from /usr/include/SFML/Window.hpp:35: /usr/include/SFML/Window/Event.hpp:345:10: error: 'variant' in namespace 'std' does not name a template type 345 | std::variant*) | ^~~~~~~ /usr/include/SFML/Window/Event.hpp:374:65: note: 'std::variant' is only available from C++17 onwards 374 | [[nodiscard]] static constexpr bool isInParameterPack(const std::variant*) | ^~~ /usr/include/SFML/Window/Event.hpp:374:77: error: expected ',' or '...' before '<' token 374 | [[nodiscard]] static constexpr bool isInParameterPack(const std::variant*) | ^ /usr/include/SFML/Window/Event.hpp:380:76: error: 'm_data' was not declared in this scope 380 | static constexpr bool isEventSubtype = isInParameterPack(decltype (&m_data)(nullptr)); | ^~~~~~ /usr/include/SFML/Window/Event.hpp: In static member function 'static constexpr bool sf::Event::isInParameterPack(int)': /usr/include/SFML/Window/Event.hpp:376:22: error: 'is_same_v' is not a member of 'std'; did you mean 'is_same'? 376 | return (std::is_same_v || ...); | ^~~~~~~~~ | is_same /usr/include/SFML/Window/Event.hpp:376:33: error: expected primary-expression before ',' token 376 | return (std::is_same_v || ...); | ^ /usr/include/SFML/Window/Event.hpp:376:37: error: expected primary-expression before '>' token 376 | return (std::is_same_v || ...); | ^ /usr/include/SFML/Window/Event.hpp:376:39: error: expected primary-expression before '||' token 376 | return (std::is_same_v || ...); | ^~ /usr/include/SFML/Window/Event.hpp:376:42: error: operand of fold expression has no unexpanded parameter packs 376 | return (std::is_same_v || ...); | ^~~ In file included from /usr/include/SFML/Window/Event.hpp:385: /usr/include/SFML/Window/Event.inl: In constructor 'sf::Event::Event(const TEventSubtype&)': /usr/include/SFML/Window/Event.inl:47:9: error: 'm_data' was not declared in this scope 47 | m_data = eventSubtype; | ^~~~~~ /usr/include/SFML/Window/Event.inl: In member function 'bool sf::Event::is() const': /usr/include/SFML/Window/Event.inl:57:21: error: 'holds_alternative' is not a member of 'std' 57 | return std::holds_alternative(m_data); | ^~~~~~~~~~~~~~~~~ /usr/include/SFML/Window/Event.inl:57:21: note: 'std::holds_alternative' is only available from C++17 onwards /usr/include/SFML/Window/Event.inl:57:52: error: expected primary-expression before '>' token 57 | return std::holds_alternative(m_data); | ^ /usr/include/SFML/Window/Event.inl:57:54: error: 'm_data' was not declared in this scope 57 | return std::holds_alternative(m_data); | ^~~~~~ /usr/include/SFML/Window/Event.inl: In member function 'const TEventSubtype* sf::Event::getIf() const': /usr/include/SFML/Window/Event.inl:67:21: error: 'get_if' is not a member of 'std' 67 | return std::get_if(&m_data); | ^~~~~~ /usr/include/SFML/Window/Event.inl:67:41: error: expected primary-expression before '>' token 67 | return std::get_if(&m_data); | ^ /usr/include/SFML/Window/Event.inl:67:44: error: 'm_data' was not declared in this scope 67 | return std::get_if(&m_data); | ^~~~~~ /usr/include/SFML/Window/Event.inl: In member function 'decltype(auto) sf::Event::visit(T&&) const': /usr/include/SFML/Window/Event.inl:75:17: error: 'visit' is not a member of 'std' 75 | return std::visit(std::forward(visitor), m_data); | ^~~~~ /usr/include/SFML/Window/Event.inl:75:17: note: 'std::visit' is only available from C++17 onwards /usr/include/SFML/Window/Event.inl:75:49: error: 'm_data' was not declared in this scope 75 | return std::visit(std::forward(visitor), m_data); | ^~~~~~ In file included from /usr/include/SFML/Window/Window.hpp:32, from /usr/include/SFML/Window.hpp:42: /usr/include/SFML/Window/WindowBase.hpp: At global scope: /usr/include/SFML/Window/WindowBase.hpp:226:24: error: 'optional' in namespace 'std' does not name a template type 226 | [[nodiscard]] std::optional pollEvent(); | ^~~~~~~~ /usr/include/SFML/Window/WindowBase.hpp:226:19: note: 'std::optional' is only available from C++17 onwards 226 | [[nodiscard]] std::optional pollEvent(); | ^~~ /usr/include/SFML/Window/WindowBase.hpp:252:24: error: 'optional' in namespace 'std' does not name a template type 252 | [[nodiscard]] std::optional waitEvent(Time timeout = Time::Zero); | ^~~~~~~~ /usr/include/SFML/Window/WindowBase.hpp:252:19: note: 'std::optional' is only available from C++17 onwards 252 | [[nodiscard]] std::optional waitEvent(Time timeout = Time::Zero); | ^~~ /usr/include/SFML/Window/WindowBase.hpp:387:36: error: 'optional' in namespace 'std' does not name a template type 387 | void setMinimumSize(const std::optional& minimumSize); | ^~~~~~~~ /usr/include/SFML/Window/WindowBase.hpp:387:31: note: 'std::optional' is only available from C++17 onwards 387 | void setMinimumSize(const std::optional& minimumSize); | ^~~ /usr/include/SFML/Window/WindowBase.hpp:387:44: error: expected ',' or '...' before '<' token 387 | void setMinimumSize(const std::optional& minimumSize); | ^ /usr/include/SFML/Window/WindowBase.hpp:397:36: error: 'optional' in namespace 'std' does not name a template type 397 | void setMaximumSize(const std::optional& maximumSize); | ^~~~~~~~ /usr/include/SFML/Window/WindowBase.hpp:397:31: note: 'std::optional' is only available from C++17 onwards 397 | void setMaximumSize(const std::optional& maximumSize); | ^~~ /usr/include/SFML/Window/WindowBase.hpp:397:44: error: expected ',' or '...' before '<' token 397 | void setMaximumSize(const std::optional& maximumSize); | ^ In file included from /usr/include/SFML/Window/WindowBase.hpp:617: /usr/include/SFML/Window/WindowBase.inl:47:41: error: expected constructor, destructor, or type conversion before ';' token 47 | OverloadSet(Ts...) -> OverloadSet; | ^ /usr/include/SFML/Window/WindowBase.inl: In member function 'void sf::WindowBase::handleEvents(Ts&& ...)': /usr/include/SFML/Window/WindowBase.inl:69:23: error: missing template arguments before 'overloadSet' 69 | priv::OverloadSet overloadSet{std::forward(handlers)..., [](const priv::DelayOverloadResolution&) { /* ignore */ }}; | ^~~~~~~~~~~ /usr/include/SFML/Window/WindowBase.inl:71:32: error: qualified-id in declaration before 'event' 71 | while (const std::optional event = pollEvent()) | ^~~~~ /usr/include/SFML/Window/WindowBase.inl:72:9: error: 'event' was not declared in this scope; did you mean 'Event'? 72 | event->visit(overloadSet); | ^~~~~ | Event /usr/include/SFML/Window/WindowBase.inl:72:22: error: 'overloadSet' was not declared in this scope 72 | event->visit(overloadSet); | ^~~~~~~~~~~ In file included from /usr/include/SFML/Graphics/Color.hpp:229, from /usr/include/SFML/Graphics/Shape.hpp:32, from /usr/include/SFML/Graphics/CircleShape.hpp:32, from /usr/include/SFML/Graphics.hpp:32, from bh.h:32: /usr/include/SFML/Graphics/Color.inl: In function 'constexpr sf::Color sf::operator+(Color, Color)': /usr/include/SFML/Graphics/Color.inl:77:16: error: variable 'clampedAdd' of non-literal type 'const sf::operator+(Color, Color)::' in 'constexpr' function only available with '-std=c++2b' or '-std=gnu++2b' 77 | const auto clampedAdd = [](std::uint8_t lhs, std::uint8_t rhs) | ^~~~~~~~~~ /usr/include/SFML/Graphics/Color.inl:77:30: note: 'sf::operator+(Color, Color)::' is not literal because: 77 | const auto clampedAdd = [](std::uint8_t lhs, std::uint8_t rhs) | ^ cc1plus: note: 'sf::operator+(Color, Color)::' is a closure type, which is only literal in C++17 and later /usr/include/SFML/Graphics/Color.inl: In function 'constexpr sf::Color sf::operator-(Color, Color)': /usr/include/SFML/Graphics/Color.inl:93:16: error: variable 'clampedSub' of non-literal type 'const sf::operator-(Color, Color)::' in 'constexpr' function only available with '-std=c++2b' or '-std=gnu++2b' 93 | const auto clampedSub = [](std::uint8_t lhs, std::uint8_t rhs) | ^~~~~~~~~~ /usr/include/SFML/Graphics/Color.inl:93:30: note: 'sf::operator-(Color, Color)::' is not literal because: 93 | const auto clampedSub = [](std::uint8_t lhs, std::uint8_t rhs) | ^ cc1plus: note: 'sf::operator-(Color, Color)::' is a closure type, which is only literal in C++17 and later /usr/include/SFML/Graphics/Color.inl: In function 'constexpr sf::Color sf::operator*(Color, Color)': /usr/include/SFML/Graphics/Color.inl:109:16: error: variable 'scaledMul' of non-literal type 'const sf::operator*(Color, Color)::' in 'constexpr' function only available with '-std=c++2b' or '-std=gnu++2b' 109 | const auto scaledMul = [](std::uint8_t lhs, std::uint8_t rhs) | ^~~~~~~~~ /usr/include/SFML/Graphics/Color.inl:109:29: note: 'sf::operator*(Color, Color)::' is not literal because: 109 | const auto scaledMul = [](std::uint8_t lhs, std::uint8_t rhs) | ^ cc1plus: note: 'sf::operator*(Color, Color)::' is a closure type, which is only literal in C++17 and later In file included from /usr/include/SFML/Graphics/Shape.hpp:35: /usr/include/SFML/Graphics/Rect.hpp: At global scope: /usr/include/SFML/Graphics/Rect.hpp:98:34: error: 'optional' in namespace 'std' does not name a template type 98 | [[nodiscard]] constexpr std::optional> findIntersection(const Rect& rectangle) const; | ^~~~~~~~ /usr/include/SFML/Graphics/Rect.hpp:98:29: note: 'std::optional' is only available from C++17 onwards 98 | [[nodiscard]] constexpr std::optional> findIntersection(const Rect& rectangle) const; | ^~~ In file included from /usr/include/SFML/Graphics/Rect.hpp:151: /usr/include/SFML/Graphics/Rect.inl:71:16: error: 'optional' in namespace 'std' does not name a template type 71 | constexpr std::optional> Rect::findIntersection(const Rect& rectangle) const | ^~~~~~~~ /usr/include/SFML/Graphics/Rect.inl:71:11: note: 'std::optional' is only available from C++17 onwards 71 | constexpr std::optional> Rect::findIntersection(const Rect& rectangle) const | ^~~ In file included from /usr/include/SFML/Graphics/Transform.hpp:352, from /usr/include/SFML/Graphics/RenderStates.hpp:35, from /usr/include/SFML/Graphics/Shape.hpp:36: /usr/include/SFML/Graphics/Transform.inl: In member function 'constexpr sf::FloatRect sf::Transform::transformRect(const sf::FloatRect&) const': /usr/include/SFML/Graphics/Transform.inl:101:11: error: invalid use of template-name 'std::array' without an argument list 101 | const std::array points = {transformPoint(rectangle.position), | ^~~ /usr/include/SFML/Graphics/Transform.inl:101:11: note: class template argument deduction is only available with '-std=c++17' or '-std=gnu++17' In file included from /usr/include/c++/14/bits/stl_algobase.h:64, from /usr/include/c++/14/string:51, from bh.h:27: /usr/include/c++/14/bits/stl_pair.h:99:12: note: 'template struct std::array' declared here 99 | struct array; | ^~~~~ /usr/include/SFML/Graphics/Transform.inl:107:21: error: 'points' was not declared in this scope; did you mean 'printf'? 107 | Vector2f pmin = points[0]; | ^~~~~~ | printf In file included from /usr/include/SFML/Graphics/Font.hpp:34, from /usr/include/SFML/Graphics.hpp:36: /usr/include/SFML/Graphics/Texture.hpp: At global scope: /usr/include/SFML/Graphics/Texture.hpp:114:33: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Texture.hpp:114:49: error: expected unqualified-id before '&' token 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^ /usr/include/SFML/Graphics/Texture.hpp:114:49: error: expected ')' before '&' token 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ~ ^ | ) /usr/include/SFML/Graphics/Texture.hpp:114:49: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Texture.hpp:114:49: error: expected ';' at end of member declaration 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^ | ; /usr/include/SFML/Graphics/Texture.hpp:114:51: error: 'filename' does not name a type 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^~~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:137:24: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Texture.hpp:137:40: error: expected unqualified-id before '&' token 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^ /usr/include/SFML/Graphics/Texture.hpp:137:40: error: expected ')' before '&' token 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ~ ^ | ) /usr/include/SFML/Graphics/Texture.hpp:137:40: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Texture.hpp:137:40: error: expected ';' at end of member declaration 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^ | ; /usr/include/SFML/Graphics/Texture.hpp:137:5: error: 'sf::Texture::Texture(...)' cannot be overloaded with 'sf::Texture::Texture(...)' 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:114:14: note: previous declaration 'sf::Texture::Texture(...)' 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:137:42: error: 'filename' does not name a type 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^~~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:304:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Texture.hpp:304:64: error: expected unqualified-id before '&' token 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^ /usr/include/SFML/Graphics/Texture.hpp:304:64: error: expected ')' before '&' token 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ~ ^ | ) /usr/include/SFML/Graphics/Texture.hpp:304:64: error: expected ';' at end of member declaration 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^ | ; /usr/include/SFML/Graphics/Texture.hpp:304:66: error: 'filename' does not name a type 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^~~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:304:119: error: expected unqualified-id before ')' token 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^ /usr/include/SFML/Graphics/Font.hpp:103:30: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 103 | explicit Font(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Font.hpp:103:46: error: expected unqualified-id before '&' token 103 | explicit Font(const std::filesystem::path& filename); | ^ /usr/include/SFML/Graphics/Font.hpp:103:46: error: expected ')' before '&' token 103 | explicit Font(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Graphics/Font.hpp:103:46: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Font.hpp:103:46: error: expected ';' at end of member declaration 103 | explicit Font(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Graphics/Font.hpp:103:48: error: 'filename' does not name a type 103 | explicit Font(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/Graphics/Font.hpp:168:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Font.hpp:168:64: error: expected unqualified-id before '&' token 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^ /usr/include/SFML/Graphics/Font.hpp:168:64: error: expected ')' before '&' token 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Graphics/Font.hpp:168:64: error: expected ';' at end of member declaration 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Graphics/Font.hpp:168:66: error: 'filename' does not name a type 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^~~~~~~~ In file included from /usr/include/SFML/Graphics.hpp:38: /usr/include/SFML/Graphics/Image.hpp:103:31: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 103 | explicit Image(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Image.hpp:103:47: error: expected unqualified-id before '&' token 103 | explicit Image(const std::filesystem::path& filename); | ^ /usr/include/SFML/Graphics/Image.hpp:103:47: error: expected ')' before '&' token 103 | explicit Image(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Graphics/Image.hpp:103:47: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Image.hpp:103:47: error: expected ';' at end of member declaration 103 | explicit Image(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Graphics/Image.hpp:103:49: error: 'filename' does not name a type 103 | explicit Image(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/Graphics/Image.hpp:175:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Image.hpp:175:64: error: expected unqualified-id before '&' token 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^ /usr/include/SFML/Graphics/Image.hpp:175:64: error: expected ')' before '&' token 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Graphics/Image.hpp:175:64: error: expected ';' at end of member declaration 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Graphics/Image.hpp:175:66: error: 'filename' does not name a type 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/Graphics/Image.hpp:227:46: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Image.hpp:227:62: error: expected unqualified-id before '&' token 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^ /usr/include/SFML/Graphics/Image.hpp:227:62: error: expected ')' before '&' token 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ~ ^ | ) /usr/include/SFML/Graphics/Image.hpp:227:62: error: expected ';' at end of member declaration 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^ | ; /usr/include/SFML/Graphics/Image.hpp:227:64: error: 'filename' does not name a type 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^~~~~~~~ /usr/include/SFML/Graphics/Image.hpp:245:24: error: 'optional' in namespace 'std' does not name a template type 245 | [[nodiscard]] std::optional> saveToMemory(std::string_view format) const; | ^~~~~~~~ /usr/include/SFML/Graphics/Image.hpp:245:19: note: 'std::optional' is only available from C++17 onwards 245 | [[nodiscard]] std::optional> saveToMemory(std::string_view format) const; | ^~~ In file included from /usr/include/SFML/Graphics.hpp:46: /usr/include/SFML/Graphics/Shader.hpp:147:23: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 147 | Shader(const std::filesystem::path& filename, Type type); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:147:39: error: expected unqualified-id before '&' token 147 | Shader(const std::filesystem::path& filename, Type type); | ^ /usr/include/SFML/Graphics/Shader.hpp:147:39: error: expected ')' before '&' token 147 | Shader(const std::filesystem::path& filename, Type type); | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:147:39: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Shader.hpp:147:39: error: expected ';' at end of member declaration 147 | Shader(const std::filesystem::path& filename, Type type); | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:147:41: error: 'filename' does not name a type 147 | Shader(const std::filesystem::path& filename, Type type); | ^~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:168:23: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:168:39: error: expected unqualified-id before '&' token 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^ /usr/include/SFML/Graphics/Shader.hpp:168:39: error: expected ')' before '&' token 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:168:39: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Shader.hpp:168:39: error: expected ';' at end of member declaration 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:168:5: error: 'sf::Shader::Shader(...)' cannot be overloaded with 'sf::Shader::Shader(...)' 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^~~~~~ /usr/include/SFML/Graphics/Shader.hpp:147:5: note: previous declaration 'sf::Shader::Shader(...)' 147 | Shader(const std::filesystem::path& filename, Type type); | ^~~~~~ /usr/include/SFML/Graphics/Shader.hpp:168:41: error: 'vertexShaderFilename' does not name a type 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:190:23: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:190:39: error: expected unqualified-id before '&' token 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^ /usr/include/SFML/Graphics/Shader.hpp:190:39: error: expected ')' before '&' token 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:190:39: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Shader.hpp:190:39: error: expected ';' at end of member declaration 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:190:5: error: 'sf::Shader::Shader(...)' cannot be overloaded with 'sf::Shader::Shader(...)' 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^~~~~~ /usr/include/SFML/Graphics/Shader.hpp:147:5: note: previous declaration 'sf::Shader::Shader(...)' 147 | Shader(const std::filesystem::path& filename, Type type); | ^~~~~~ /usr/include/SFML/Graphics/Shader.hpp:190:41: error: 'vertexShaderFilename' does not name a type 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:212:28: error: expected ')' before 'shader' 212 | Shader(std::string_view shader, Type type); | ~ ^~~~~~~ | ) /usr/include/SFML/Graphics/Shader.hpp:233:28: error: expected ')' before 'vertexShader' 233 | Shader(std::string_view vertexShader, std::string_view fragmentShader); | ~ ^~~~~~~~~~~~~ | ) /usr/include/SFML/Graphics/Shader.hpp:255:28: error: expected ')' before 'vertexShader' 255 | Shader(std::string_view vertexShader, std::string_view geometryShader, std::string_view fragmentShader); | ~ ^~~~~~~~~~~~~ | ) /usr/include/SFML/Graphics/Shader.hpp:339:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:339:64: error: expected unqualified-id before '&' token 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^ /usr/include/SFML/Graphics/Shader.hpp:339:64: error: expected ')' before '&' token 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:339:64: error: expected ';' at end of member declaration 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:339:66: error: 'filename' does not name a type 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:360:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:360:64: error: expected unqualified-id before '&' token 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^ /usr/include/SFML/Graphics/Shader.hpp:360:64: error: expected ')' before '&' token 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:360:64: error: expected ';' at end of member declaration 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:360:24: error: 'bool sf::Shader::loadFromFile(...) &' cannot be overloaded with 'bool sf::Shader::loadFromFile(...) &' 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:339:24: note: previous declaration 'bool sf::Shader::loadFromFile(...) &' 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:360:66: error: 'vertexShaderFilename' does not name a type 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:383:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:383:64: error: expected unqualified-id before '&' token 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^ /usr/include/SFML/Graphics/Shader.hpp:383:64: error: expected ')' before '&' token 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:383:64: error: expected ';' at end of member declaration 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:383:24: error: 'bool sf::Shader::loadFromFile(...) &' cannot be overloaded with 'bool sf::Shader::loadFromFile(...) &' 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:339:24: note: previous declaration 'bool sf::Shader::loadFromFile(...) &' 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:383:66: error: 'vertexShaderFilename' does not name a type 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:405:44: error: 'std::string_view' has not been declared 405 | [[nodiscard]] bool loadFromMemory(std::string_view shader, Type type); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:426:44: error: 'std::string_view' has not been declared 426 | [[nodiscard]] bool loadFromMemory(std::string_view vertexShader, std::string_view fragmentShader); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:426:75: error: 'std::string_view' has not been declared 426 | [[nodiscard]] bool loadFromMemory(std::string_view vertexShader, std::string_view fragmentShader); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:448:44: error: 'std::string_view' has not been declared 448 | [[nodiscard]] bool loadFromMemory(std::string_view vertexShader, | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:449:44: error: 'std::string_view' has not been declared 449 | std::string_view geometryShader, | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:450:44: error: 'std::string_view' has not been declared 450 | std::string_view fragmentShader); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:861:37: error: 'std::string_view' has not been declared 861 | [[nodiscard]] bool compile(std::string_view vertexShaderCode, | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:862:37: error: 'std::string_view' has not been declared 862 | std::string_view geometryShaderCode, | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:863:37: error: 'std::string_view' has not been declared 863 | std::string_view fragmentShaderCode); | ^~~~~~~~~~~ game_ctrl.cpp: In member function 'bool CPlayers::LoadAvatars()': game_ctrl.cpp:252:50: error: use of deleted function 'TTexture::TTexture()' 252 | TTexture* texture = new TTexture(); | ^ In file included from game_ctrl.cpp:26: textures.h:64:7: note: 'TTexture::TTexture()' is implicitly deleted because the default definition would be ill-formed: 64 | class TTexture { | ^~~~~~~~ textures.h: At global scope: textures.h:64:7: error: call of overloaded 'Texture()' is ambiguous /usr/include/SFML/Graphics/Texture.hpp:114:14: note: candidate: 'sf::Texture::Texture(...)' 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:66:5: note: candidate: 'sf::Texture::Texture()' 66 | Texture(); | ^~~~~~~ game_ctrl.cpp: In member function 'bool CPlayers::LoadAvatars()': game_ctrl.cpp:252:50: note: use '-fdiagnostics-all-candidates' to display considered candidates 252 | TTexture* texture = new TTexture(); | ^ game_ctrl.cpp: In member function 'bool CCharacter::LoadCharacterList()': game_ctrl.cpp:313:52: error: use of deleted function 'TTexture::TTexture()' 313 | ch->preview = new TTexture(); | ^ game_ctrl.cpp:313:52: note: use '-fdiagnostics-all-candidates' to display considered candidates make[2]: *** [Makefile:566: game_ctrl.o] Error 1 make[2]: Leaving directory '/usr/src/RPM/BUILD/etr-0.8.4/src' make[2]: Entering directory '/usr/src/RPM/BUILD/etr-0.8.4/src' x86_64-alt-linux-g++ -DHAVE_CONFIG_H -I. -I.. -DETR_DATA_DIR=\"/usr/share\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -std=c++14 -c -o event_select.o event_select.cpp In file included from /usr/include/SFML/System.hpp:34, from bh.h:30, from course.h:21, from event_select.cpp:22: /usr/include/SFML/System/Clock.hpp:78:20: error: 'ratio_less_equal_v' is not a member of 'std'; did you mean 'ratio_less_equal'? 78 | static_assert(std::ratio_less_equal_v, | ^~~~~~~~~~~~~~~~~~ | ratio_less_equal /usr/include/SFML/System/Clock.hpp:78:56: error: expected primary-expression before ',' token 78 | static_assert(std::ratio_less_equal_v, | ^ /usr/include/SFML/System/Clock.hpp:78:68: error: expected primary-expression before '>' token 78 | static_assert(std::ratio_less_equal_v, | ^ /usr/include/SFML/System/Clock.hpp:78:69: error: expected primary-expression before ',' token 78 | static_assert(std::ratio_less_equal_v, | ^ /usr/include/SFML/System/Clock.hpp:78:69: error: expected ')' before ',' token 78 | static_assert(std::ratio_less_equal_v, | ~ ^ | ) In file included from /usr/include/SFML/System/FileInputStream.hpp:34, from /usr/include/SFML/System.hpp:37: /usr/include/SFML/System/InputStream.hpp:66:32: error: 'optional' in namespace 'std' does not name a template type 66 | [[nodiscard]] virtual std::optional read(void* data, std::size_t size) = 0; | ^~~~~~~~ /usr/include/SFML/System/InputStream.hpp:66:27: note: 'std::optional' is only available from C++17 onwards 66 | [[nodiscard]] virtual std::optional read(void* data, std::size_t size) = 0; | ^~~ /usr/include/SFML/System/InputStream.hpp:76:32: error: 'optional' in namespace 'std' does not name a template type 76 | [[nodiscard]] virtual std::optional seek(std::size_t position) = 0; | ^~~~~~~~ /usr/include/SFML/System/InputStream.hpp:76:27: note: 'std::optional' is only available from C++17 onwards 76 | [[nodiscard]] virtual std::optional seek(std::size_t position) = 0; | ^~~ /usr/include/SFML/System/InputStream.hpp:84:32: error: 'optional' in namespace 'std' does not name a template type 84 | [[nodiscard]] virtual std::optional tell() = 0; | ^~~~~~~~ /usr/include/SFML/System/InputStream.hpp:84:27: note: 'std::optional' is only available from C++17 onwards 84 | [[nodiscard]] virtual std::optional tell() = 0; | ^~~ /usr/include/SFML/System/InputStream.hpp:92:18: error: 'optional' in namespace 'std' does not name a template type 92 | virtual std::optional getSize() = 0; | ^~~~~~~~ /usr/include/SFML/System/InputStream.hpp:92:13: note: 'std::optional' is only available from C++17 onwards 92 | virtual std::optional getSize() = 0; | ^~~ /usr/include/SFML/System/FileInputStream.hpp:106:41: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 106 | explicit FileInputStream(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/System/FileInputStream.hpp:106:57: error: expected unqualified-id before '&' token 106 | explicit FileInputStream(const std::filesystem::path& filename); | ^ /usr/include/SFML/System/FileInputStream.hpp:106:57: error: expected ')' before '&' token 106 | explicit FileInputStream(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/System/FileInputStream.hpp:106:57: error: constructors may not be ref-qualified /usr/include/SFML/System/FileInputStream.hpp:106:57: error: expected ';' at end of member declaration 106 | explicit FileInputStream(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/System/FileInputStream.hpp:106:59: error: 'filename' does not name a type 106 | explicit FileInputStream(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:116:40: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/System/FileInputStream.hpp:116:56: error: expected unqualified-id before '&' token 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ^ /usr/include/SFML/System/FileInputStream.hpp:116:56: error: expected ')' before '&' token 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/System/FileInputStream.hpp:116:56: error: expected ';' at end of member declaration 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/System/FileInputStream.hpp:116:58: error: 'filename' does not name a type 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:130:24: error: 'optional' in namespace 'std' does not name a template type 130 | [[nodiscard]] std::optional read(void* data, std::size_t size) override; | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:130:19: note: 'std::optional' is only available from C++17 onwards 130 | [[nodiscard]] std::optional read(void* data, std::size_t size) override; | ^~~ /usr/include/SFML/System/FileInputStream.hpp:140:24: error: 'optional' in namespace 'std' does not name a template type 140 | [[nodiscard]] std::optional seek(std::size_t position) override; | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:140:19: note: 'std::optional' is only available from C++17 onwards 140 | [[nodiscard]] std::optional seek(std::size_t position) override; | ^~~ /usr/include/SFML/System/FileInputStream.hpp:148:24: error: 'optional' in namespace 'std' does not name a template type 148 | [[nodiscard]] std::optional tell() override; | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:148:19: note: 'std::optional' is only available from C++17 onwards 148 | [[nodiscard]] std::optional tell() override; | ^~~ /usr/include/SFML/System/FileInputStream.hpp:156:10: error: 'optional' in namespace 'std' does not name a template type 156 | std::optional getSize() override; | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:156:5: note: 'std::optional' is only available from C++17 onwards 156 | std::optional getSize() override; | ^~~ In file included from /usr/include/SFML/System.hpp:39: /usr/include/SFML/System/MemoryInputStream.hpp:70:24: error: 'optional' in namespace 'std' does not name a template type 70 | [[nodiscard]] std::optional read(void* data, std::size_t size) override; | ^~~~~~~~ /usr/include/SFML/System/MemoryInputStream.hpp:70:19: note: 'std::optional' is only available from C++17 onwards 70 | [[nodiscard]] std::optional read(void* data, std::size_t size) override; | ^~~ /usr/include/SFML/System/MemoryInputStream.hpp:80:24: error: 'optional' in namespace 'std' does not name a template type 80 | [[nodiscard]] std::optional seek(std::size_t position) override; | ^~~~~~~~ /usr/include/SFML/System/MemoryInputStream.hpp:80:19: note: 'std::optional' is only available from C++17 onwards 80 | [[nodiscard]] std::optional seek(std::size_t position) override; | ^~~ /usr/include/SFML/System/MemoryInputStream.hpp:88:24: error: 'optional' in namespace 'std' does not name a template type 88 | [[nodiscard]] std::optional tell() override; | ^~~~~~~~ /usr/include/SFML/System/MemoryInputStream.hpp:88:19: note: 'std::optional' is only available from C++17 onwards 88 | [[nodiscard]] std::optional tell() override; | ^~~ /usr/include/SFML/System/MemoryInputStream.hpp:96:10: error: 'optional' in namespace 'std' does not name a template type 96 | std::optional getSize() override; | ^~~~~~~~ /usr/include/SFML/System/MemoryInputStream.hpp:96:5: note: 'std::optional' is only available from C++17 onwards 96 | std::optional getSize() override; | ^~~ /usr/include/SFML/System/MemoryInputStream.hpp:102:16: error: 'byte' in namespace 'std' does not name a type 102 | const std::byte* m_data{}; //!< Pointer to the data in memory | ^~~~ /usr/include/SFML/System/MemoryInputStream.hpp:102:11: note: 'std::byte' is only available from C++17 onwards 102 | const std::byte* m_data{}; //!< Pointer to the data in memory | ^~~ In file included from /usr/include/SFML/System/Utf.hpp:742, from /usr/include/SFML/System/String.hpp:32, from /usr/include/SFML/System.hpp:41: /usr/include/SFML/System/Utf.inl: In static member function 'static Out sf::Utf<8>::encode(char32_t, Out, uint8_t)': /usr/include/SFML/System/Utf.inl:137:25: error: 'byte' is not a member of 'std' 137 | std::array bytes{}; | ^~~~ /usr/include/SFML/System/Utf.inl:137:25: note: 'std::byte' is only available from C++17 onwards /usr/include/SFML/System/Utf.inl:137:25: error: 'byte' is not a member of 'std' /usr/include/SFML/System/Utf.inl:137:25: note: 'std::byte' is only available from C++17 onwards /usr/include/SFML/System/Utf.inl:137:32: error: template argument 1 is invalid 137 | std::array bytes{}; | ^ /usr/include/SFML/System/Utf.inl:142:26: error: invalid types 'int[int]' for array subscript 142 | case 4: bytes[3] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^ /usr/include/SFML/System/Utf.inl:142:49: error: 'byte' in namespace 'std' does not name a type 142 | case 4: bytes[3] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~~ /usr/include/SFML/System/Utf.inl:142:44: note: 'std::byte' is only available from C++17 onwards 142 | case 4: bytes[3] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~ /usr/include/SFML/System/Utf.inl:143:26: error: invalid types 'int[int]' for array subscript 143 | case 3: bytes[2] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^ /usr/include/SFML/System/Utf.inl:143:49: error: 'byte' in namespace 'std' does not name a type 143 | case 3: bytes[2] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~~ /usr/include/SFML/System/Utf.inl:143:44: note: 'std::byte' is only available from C++17 onwards 143 | case 3: bytes[2] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~ /usr/include/SFML/System/Utf.inl:144:26: error: invalid types 'int[int]' for array subscript 144 | case 2: bytes[1] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^ /usr/include/SFML/System/Utf.inl:144:49: error: 'byte' in namespace 'std' does not name a type 144 | case 2: bytes[1] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~~ /usr/include/SFML/System/Utf.inl:144:44: note: 'std::byte' is only available from C++17 onwards 144 | case 2: bytes[1] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~ /usr/include/SFML/System/Utf.inl:145:26: error: invalid types 'int[int]' for array subscript 145 | case 1: bytes[0] = static_cast (input | firstBytes[bytestoWrite]); | ^ /usr/include/SFML/System/Utf.inl:145:49: error: 'byte' in namespace 'std' does not name a type 145 | case 1: bytes[0] = static_cast (input | firstBytes[bytestoWrite]); | ^~~~ /usr/include/SFML/System/Utf.inl:145:44: note: 'std::byte' is only available from C++17 onwards 145 | case 1: bytes[0] = static_cast (input | firstBytes[bytestoWrite]); | ^~~ /usr/include/SFML/System/Utf.inl:150:35: error: request for member 'data' in 'bytes', which is of non-class type 'int' 150 | output = priv::copy(bytes.data(), bytes.data() + bytestoWrite, output); | ^~~~ /usr/include/SFML/System/Utf.inl:150:49: error: request for member 'data' in 'bytes', which is of non-class type 'int' 150 | output = priv::copy(bytes.data(), bytes.data() + bytestoWrite, output); | ^~~~ In file included from /usr/include/SFML/Window.hpp:32, from bh.h:31: /usr/include/SFML/Window/Context.hpp: At global scope: /usr/include/SFML/Window/Context.hpp:130:57: error: 'std::string_view' has not been declared 130 | [[nodiscard]] static bool isExtensionAvailable(std::string_view name); | ^~~~~~~~~~~ In file included from /usr/include/SFML/Window.hpp:34: /usr/include/SFML/Window/Cursor.hpp:226:31: error: 'optional' in namespace 'std' does not name a template type 226 | [[nodiscard]] static std::optional createFromPixels(const std::uint8_t* pixels, Vector2u size, Vector2u hotspot); | ^~~~~~~~ /usr/include/SFML/Window/Cursor.hpp:226:26: note: 'std::optional' is only available from C++17 onwards 226 | [[nodiscard]] static std::optional createFromPixels(const std::uint8_t* pixels, Vector2u size, Vector2u hotspot); | ^~~ /usr/include/SFML/Window/Cursor.hpp:242:31: error: 'optional' in namespace 'std' does not name a template type 242 | [[nodiscard]] static std::optional createFromSystem(Type type); | ^~~~~~~~ /usr/include/SFML/Window/Cursor.hpp:242:26: note: 'std::optional' is only available from C++17 onwards 242 | [[nodiscard]] static std::optional createFromSystem(Type type); | ^~~ In file included from /usr/include/SFML/Window.hpp:35: /usr/include/SFML/Window/Event.hpp:345:10: error: 'variant' in namespace 'std' does not name a template type 345 | std::variant*) | ^~~~~~~ /usr/include/SFML/Window/Event.hpp:374:65: note: 'std::variant' is only available from C++17 onwards 374 | [[nodiscard]] static constexpr bool isInParameterPack(const std::variant*) | ^~~ /usr/include/SFML/Window/Event.hpp:374:77: error: expected ',' or '...' before '<' token 374 | [[nodiscard]] static constexpr bool isInParameterPack(const std::variant*) | ^ /usr/include/SFML/Window/Event.hpp:380:76: error: 'm_data' was not declared in this scope 380 | static constexpr bool isEventSubtype = isInParameterPack(decltype (&m_data)(nullptr)); | ^~~~~~ /usr/include/SFML/Window/Event.hpp: In static member function 'static constexpr bool sf::Event::isInParameterPack(int)': /usr/include/SFML/Window/Event.hpp:376:22: error: 'is_same_v' is not a member of 'std'; did you mean 'is_same'? 376 | return (std::is_same_v || ...); | ^~~~~~~~~ | is_same /usr/include/SFML/Window/Event.hpp:376:33: error: expected primary-expression before ',' token 376 | return (std::is_same_v || ...); | ^ /usr/include/SFML/Window/Event.hpp:376:37: error: expected primary-expression before '>' token 376 | return (std::is_same_v || ...); | ^ /usr/include/SFML/Window/Event.hpp:376:39: error: expected primary-expression before '||' token 376 | return (std::is_same_v || ...); | ^~ /usr/include/SFML/Window/Event.hpp:376:42: error: operand of fold expression has no unexpanded parameter packs 376 | return (std::is_same_v || ...); | ^~~ In file included from /usr/include/SFML/Window/Event.hpp:385: /usr/include/SFML/Window/Event.inl: In constructor 'sf::Event::Event(const TEventSubtype&)': /usr/include/SFML/Window/Event.inl:47:9: error: 'm_data' was not declared in this scope 47 | m_data = eventSubtype; | ^~~~~~ /usr/include/SFML/Window/Event.inl: In member function 'bool sf::Event::is() const': /usr/include/SFML/Window/Event.inl:57:21: error: 'holds_alternative' is not a member of 'std' 57 | return std::holds_alternative(m_data); | ^~~~~~~~~~~~~~~~~ /usr/include/SFML/Window/Event.inl:57:21: note: 'std::holds_alternative' is only available from C++17 onwards /usr/include/SFML/Window/Event.inl:57:52: error: expected primary-expression before '>' token 57 | return std::holds_alternative(m_data); | ^ /usr/include/SFML/Window/Event.inl:57:54: error: 'm_data' was not declared in this scope 57 | return std::holds_alternative(m_data); | ^~~~~~ /usr/include/SFML/Window/Event.inl: In member function 'const TEventSubtype* sf::Event::getIf() const': /usr/include/SFML/Window/Event.inl:67:21: error: 'get_if' is not a member of 'std' 67 | return std::get_if(&m_data); | ^~~~~~ /usr/include/SFML/Window/Event.inl:67:41: error: expected primary-expression before '>' token 67 | return std::get_if(&m_data); | ^ /usr/include/SFML/Window/Event.inl:67:44: error: 'm_data' was not declared in this scope 67 | return std::get_if(&m_data); | ^~~~~~ /usr/include/SFML/Window/Event.inl: In member function 'decltype(auto) sf::Event::visit(T&&) const': /usr/include/SFML/Window/Event.inl:75:17: error: 'visit' is not a member of 'std' 75 | return std::visit(std::forward(visitor), m_data); | ^~~~~ /usr/include/SFML/Window/Event.inl:75:17: note: 'std::visit' is only available from C++17 onwards /usr/include/SFML/Window/Event.inl:75:49: error: 'm_data' was not declared in this scope 75 | return std::visit(std::forward(visitor), m_data); | ^~~~~~ In file included from /usr/include/SFML/Window/Window.hpp:32, from /usr/include/SFML/Window.hpp:42: /usr/include/SFML/Window/WindowBase.hpp: At global scope: /usr/include/SFML/Window/WindowBase.hpp:226:24: error: 'optional' in namespace 'std' does not name a template type 226 | [[nodiscard]] std::optional pollEvent(); | ^~~~~~~~ /usr/include/SFML/Window/WindowBase.hpp:226:19: note: 'std::optional' is only available from C++17 onwards 226 | [[nodiscard]] std::optional pollEvent(); | ^~~ /usr/include/SFML/Window/WindowBase.hpp:252:24: error: 'optional' in namespace 'std' does not name a template type 252 | [[nodiscard]] std::optional waitEvent(Time timeout = Time::Zero); | ^~~~~~~~ /usr/include/SFML/Window/WindowBase.hpp:252:19: note: 'std::optional' is only available from C++17 onwards 252 | [[nodiscard]] std::optional waitEvent(Time timeout = Time::Zero); | ^~~ /usr/include/SFML/Window/WindowBase.hpp:387:36: error: 'optional' in namespace 'std' does not name a template type 387 | void setMinimumSize(const std::optional& minimumSize); | ^~~~~~~~ /usr/include/SFML/Window/WindowBase.hpp:387:31: note: 'std::optional' is only available from C++17 onwards 387 | void setMinimumSize(const std::optional& minimumSize); | ^~~ /usr/include/SFML/Window/WindowBase.hpp:387:44: error: expected ',' or '...' before '<' token 387 | void setMinimumSize(const std::optional& minimumSize); | ^ /usr/include/SFML/Window/WindowBase.hpp:397:36: error: 'optional' in namespace 'std' does not name a template type 397 | void setMaximumSize(const std::optional& maximumSize); | ^~~~~~~~ /usr/include/SFML/Window/WindowBase.hpp:397:31: note: 'std::optional' is only available from C++17 onwards 397 | void setMaximumSize(const std::optional& maximumSize); | ^~~ /usr/include/SFML/Window/WindowBase.hpp:397:44: error: expected ',' or '...' before '<' token 397 | void setMaximumSize(const std::optional& maximumSize); | ^ In file included from /usr/include/SFML/Window/WindowBase.hpp:617: /usr/include/SFML/Window/WindowBase.inl:47:41: error: expected constructor, destructor, or type conversion before ';' token 47 | OverloadSet(Ts...) -> OverloadSet; | ^ /usr/include/SFML/Window/WindowBase.inl: In member function 'void sf::WindowBase::handleEvents(Ts&& ...)': /usr/include/SFML/Window/WindowBase.inl:69:23: error: missing template arguments before 'overloadSet' 69 | priv::OverloadSet overloadSet{std::forward(handlers)..., [](const priv::DelayOverloadResolution&) { /* ignore */ }}; | ^~~~~~~~~~~ /usr/include/SFML/Window/WindowBase.inl:71:32: error: qualified-id in declaration before 'event' 71 | while (const std::optional event = pollEvent()) | ^~~~~ /usr/include/SFML/Window/WindowBase.inl:72:9: error: 'event' was not declared in this scope; did you mean 'Event'? 72 | event->visit(overloadSet); | ^~~~~ | Event /usr/include/SFML/Window/WindowBase.inl:72:22: error: 'overloadSet' was not declared in this scope 72 | event->visit(overloadSet); | ^~~~~~~~~~~ In file included from /usr/include/SFML/Graphics/Color.hpp:229, from /usr/include/SFML/Graphics/Shape.hpp:32, from /usr/include/SFML/Graphics/CircleShape.hpp:32, from /usr/include/SFML/Graphics.hpp:32, from bh.h:32: /usr/include/SFML/Graphics/Color.inl: In function 'constexpr sf::Color sf::operator+(Color, Color)': /usr/include/SFML/Graphics/Color.inl:77:16: error: variable 'clampedAdd' of non-literal type 'const sf::operator+(Color, Color)::' in 'constexpr' function only available with '-std=c++2b' or '-std=gnu++2b' 77 | const auto clampedAdd = [](std::uint8_t lhs, std::uint8_t rhs) | ^~~~~~~~~~ /usr/include/SFML/Graphics/Color.inl:77:30: note: 'sf::operator+(Color, Color)::' is not literal because: 77 | const auto clampedAdd = [](std::uint8_t lhs, std::uint8_t rhs) | ^ cc1plus: note: 'sf::operator+(Color, Color)::' is a closure type, which is only literal in C++17 and later /usr/include/SFML/Graphics/Color.inl: In function 'constexpr sf::Color sf::operator-(Color, Color)': /usr/include/SFML/Graphics/Color.inl:93:16: error: variable 'clampedSub' of non-literal type 'const sf::operator-(Color, Color)::' in 'constexpr' function only available with '-std=c++2b' or '-std=gnu++2b' 93 | const auto clampedSub = [](std::uint8_t lhs, std::uint8_t rhs) | ^~~~~~~~~~ /usr/include/SFML/Graphics/Color.inl:93:30: note: 'sf::operator-(Color, Color)::' is not literal because: 93 | const auto clampedSub = [](std::uint8_t lhs, std::uint8_t rhs) | ^ cc1plus: note: 'sf::operator-(Color, Color)::' is a closure type, which is only literal in C++17 and later /usr/include/SFML/Graphics/Color.inl: In function 'constexpr sf::Color sf::operator*(Color, Color)': /usr/include/SFML/Graphics/Color.inl:109:16: error: variable 'scaledMul' of non-literal type 'const sf::operator*(Color, Color)::' in 'constexpr' function only available with '-std=c++2b' or '-std=gnu++2b' 109 | const auto scaledMul = [](std::uint8_t lhs, std::uint8_t rhs) | ^~~~~~~~~ /usr/include/SFML/Graphics/Color.inl:109:29: note: 'sf::operator*(Color, Color)::' is not literal because: 109 | const auto scaledMul = [](std::uint8_t lhs, std::uint8_t rhs) | ^ cc1plus: note: 'sf::operator*(Color, Color)::' is a closure type, which is only literal in C++17 and later In file included from /usr/include/SFML/Graphics/Shape.hpp:35: /usr/include/SFML/Graphics/Rect.hpp: At global scope: /usr/include/SFML/Graphics/Rect.hpp:98:34: error: 'optional' in namespace 'std' does not name a template type 98 | [[nodiscard]] constexpr std::optional> findIntersection(const Rect& rectangle) const; | ^~~~~~~~ /usr/include/SFML/Graphics/Rect.hpp:98:29: note: 'std::optional' is only available from C++17 onwards 98 | [[nodiscard]] constexpr std::optional> findIntersection(const Rect& rectangle) const; | ^~~ In file included from /usr/include/SFML/Graphics/Rect.hpp:151: /usr/include/SFML/Graphics/Rect.inl:71:16: error: 'optional' in namespace 'std' does not name a template type 71 | constexpr std::optional> Rect::findIntersection(const Rect& rectangle) const | ^~~~~~~~ /usr/include/SFML/Graphics/Rect.inl:71:11: note: 'std::optional' is only available from C++17 onwards 71 | constexpr std::optional> Rect::findIntersection(const Rect& rectangle) const | ^~~ In file included from /usr/include/SFML/Graphics/Transform.hpp:352, from /usr/include/SFML/Graphics/RenderStates.hpp:35, from /usr/include/SFML/Graphics/Shape.hpp:36: /usr/include/SFML/Graphics/Transform.inl: In member function 'constexpr sf::FloatRect sf::Transform::transformRect(const sf::FloatRect&) const': /usr/include/SFML/Graphics/Transform.inl:101:11: error: invalid use of template-name 'std::array' without an argument list 101 | const std::array points = {transformPoint(rectangle.position), | ^~~ /usr/include/SFML/Graphics/Transform.inl:101:11: note: class template argument deduction is only available with '-std=c++17' or '-std=gnu++17' In file included from /usr/include/c++/14/bits/stl_algobase.h:64, from /usr/include/c++/14/string:51, from bh.h:27: /usr/include/c++/14/bits/stl_pair.h:99:12: note: 'template struct std::array' declared here 99 | struct array; | ^~~~~ /usr/include/SFML/Graphics/Transform.inl:107:21: error: 'points' was not declared in this scope; did you mean 'printf'? 107 | Vector2f pmin = points[0]; | ^~~~~~ | printf In file included from /usr/include/SFML/Graphics/Font.hpp:34, from /usr/include/SFML/Graphics.hpp:36: /usr/include/SFML/Graphics/Texture.hpp: At global scope: /usr/include/SFML/Graphics/Texture.hpp:114:33: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Texture.hpp:114:49: error: expected unqualified-id before '&' token 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^ /usr/include/SFML/Graphics/Texture.hpp:114:49: error: expected ')' before '&' token 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ~ ^ | ) /usr/include/SFML/Graphics/Texture.hpp:114:49: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Texture.hpp:114:49: error: expected ';' at end of member declaration 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^ | ; /usr/include/SFML/Graphics/Texture.hpp:114:51: error: 'filename' does not name a type 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^~~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:137:24: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Texture.hpp:137:40: error: expected unqualified-id before '&' token 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^ /usr/include/SFML/Graphics/Texture.hpp:137:40: error: expected ')' before '&' token 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ~ ^ | ) /usr/include/SFML/Graphics/Texture.hpp:137:40: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Texture.hpp:137:40: error: expected ';' at end of member declaration 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^ | ; /usr/include/SFML/Graphics/Texture.hpp:137:5: error: 'sf::Texture::Texture(...)' cannot be overloaded with 'sf::Texture::Texture(...)' 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:114:14: note: previous declaration 'sf::Texture::Texture(...)' 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:137:42: error: 'filename' does not name a type 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^~~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:304:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Texture.hpp:304:64: error: expected unqualified-id before '&' token 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^ /usr/include/SFML/Graphics/Texture.hpp:304:64: error: expected ')' before '&' token 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ~ ^ | ) /usr/include/SFML/Graphics/Texture.hpp:304:64: error: expected ';' at end of member declaration 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^ | ; /usr/include/SFML/Graphics/Texture.hpp:304:66: error: 'filename' does not name a type 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^~~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:304:119: error: expected unqualified-id before ')' token 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^ /usr/include/SFML/Graphics/Font.hpp:103:30: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 103 | explicit Font(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Font.hpp:103:46: error: expected unqualified-id before '&' token 103 | explicit Font(const std::filesystem::path& filename); | ^ /usr/include/SFML/Graphics/Font.hpp:103:46: error: expected ')' before '&' token 103 | explicit Font(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Graphics/Font.hpp:103:46: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Font.hpp:103:46: error: expected ';' at end of member declaration 103 | explicit Font(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Graphics/Font.hpp:103:48: error: 'filename' does not name a type 103 | explicit Font(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/Graphics/Font.hpp:168:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Font.hpp:168:64: error: expected unqualified-id before '&' token 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^ /usr/include/SFML/Graphics/Font.hpp:168:64: error: expected ')' before '&' token 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Graphics/Font.hpp:168:64: error: expected ';' at end of member declaration 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Graphics/Font.hpp:168:66: error: 'filename' does not name a type 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^~~~~~~~ In file included from /usr/include/SFML/Graphics.hpp:38: /usr/include/SFML/Graphics/Image.hpp:103:31: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 103 | explicit Image(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Image.hpp:103:47: error: expected unqualified-id before '&' token 103 | explicit Image(const std::filesystem::path& filename); | ^ /usr/include/SFML/Graphics/Image.hpp:103:47: error: expected ')' before '&' token 103 | explicit Image(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Graphics/Image.hpp:103:47: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Image.hpp:103:47: error: expected ';' at end of member declaration 103 | explicit Image(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Graphics/Image.hpp:103:49: error: 'filename' does not name a type 103 | explicit Image(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/Graphics/Image.hpp:175:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Image.hpp:175:64: error: expected unqualified-id before '&' token 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^ /usr/include/SFML/Graphics/Image.hpp:175:64: error: expected ')' before '&' token 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Graphics/Image.hpp:175:64: error: expected ';' at end of member declaration 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Graphics/Image.hpp:175:66: error: 'filename' does not name a type 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/Graphics/Image.hpp:227:46: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Image.hpp:227:62: error: expected unqualified-id before '&' token 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^ /usr/include/SFML/Graphics/Image.hpp:227:62: error: expected ')' before '&' token 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ~ ^ | ) /usr/include/SFML/Graphics/Image.hpp:227:62: error: expected ';' at end of member declaration 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^ | ; /usr/include/SFML/Graphics/Image.hpp:227:64: error: 'filename' does not name a type 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^~~~~~~~ /usr/include/SFML/Graphics/Image.hpp:245:24: error: 'optional' in namespace 'std' does not name a template type 245 | [[nodiscard]] std::optional> saveToMemory(std::string_view format) const; | ^~~~~~~~ /usr/include/SFML/Graphics/Image.hpp:245:19: note: 'std::optional' is only available from C++17 onwards 245 | [[nodiscard]] std::optional> saveToMemory(std::string_view format) const; | ^~~ In file included from /usr/include/SFML/Graphics.hpp:46: /usr/include/SFML/Graphics/Shader.hpp:147:23: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 147 | Shader(const std::filesystem::path& filename, Type type); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:147:39: error: expected unqualified-id before '&' token 147 | Shader(const std::filesystem::path& filename, Type type); | ^ /usr/include/SFML/Graphics/Shader.hpp:147:39: error: expected ')' before '&' token 147 | Shader(const std::filesystem::path& filename, Type type); | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:147:39: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Shader.hpp:147:39: error: expected ';' at end of member declaration 147 | Shader(const std::filesystem::path& filename, Type type); | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:147:41: error: 'filename' does not name a type 147 | Shader(const std::filesystem::path& filename, Type type); | ^~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:168:23: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:168:39: error: expected unqualified-id before '&' token 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^ /usr/include/SFML/Graphics/Shader.hpp:168:39: error: expected ')' before '&' token 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:168:39: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Shader.hpp:168:39: error: expected ';' at end of member declaration 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:168:5: error: 'sf::Shader::Shader(...)' cannot be overloaded with 'sf::Shader::Shader(...)' 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^~~~~~ /usr/include/SFML/Graphics/Shader.hpp:147:5: note: previous declaration 'sf::Shader::Shader(...)' 147 | Shader(const std::filesystem::path& filename, Type type); | ^~~~~~ /usr/include/SFML/Graphics/Shader.hpp:168:41: error: 'vertexShaderFilename' does not name a type 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:190:23: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:190:39: error: expected unqualified-id before '&' token 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^ /usr/include/SFML/Graphics/Shader.hpp:190:39: error: expected ')' before '&' token 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:190:39: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Shader.hpp:190:39: error: expected ';' at end of member declaration 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:190:5: error: 'sf::Shader::Shader(...)' cannot be overloaded with 'sf::Shader::Shader(...)' 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^~~~~~ /usr/include/SFML/Graphics/Shader.hpp:147:5: note: previous declaration 'sf::Shader::Shader(...)' 147 | Shader(const std::filesystem::path& filename, Type type); | ^~~~~~ /usr/include/SFML/Graphics/Shader.hpp:190:41: error: 'vertexShaderFilename' does not name a type 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:212:28: error: expected ')' before 'shader' 212 | Shader(std::string_view shader, Type type); | ~ ^~~~~~~ | ) /usr/include/SFML/Graphics/Shader.hpp:233:28: error: expected ')' before 'vertexShader' 233 | Shader(std::string_view vertexShader, std::string_view fragmentShader); | ~ ^~~~~~~~~~~~~ | ) /usr/include/SFML/Graphics/Shader.hpp:255:28: error: expected ')' before 'vertexShader' 255 | Shader(std::string_view vertexShader, std::string_view geometryShader, std::string_view fragmentShader); | ~ ^~~~~~~~~~~~~ | ) /usr/include/SFML/Graphics/Shader.hpp:339:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:339:64: error: expected unqualified-id before '&' token 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^ /usr/include/SFML/Graphics/Shader.hpp:339:64: error: expected ')' before '&' token 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:339:64: error: expected ';' at end of member declaration 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:339:66: error: 'filename' does not name a type 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:360:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:360:64: error: expected unqualified-id before '&' token 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^ /usr/include/SFML/Graphics/Shader.hpp:360:64: error: expected ')' before '&' token 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:360:64: error: expected ';' at end of member declaration 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:360:24: error: 'bool sf::Shader::loadFromFile(...) &' cannot be overloaded with 'bool sf::Shader::loadFromFile(...) &' 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:339:24: note: previous declaration 'bool sf::Shader::loadFromFile(...) &' 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:360:66: error: 'vertexShaderFilename' does not name a type 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:383:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:383:64: error: expected unqualified-id before '&' token 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^ /usr/include/SFML/Graphics/Shader.hpp:383:64: error: expected ')' before '&' token 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:383:64: error: expected ';' at end of member declaration 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:383:24: error: 'bool sf::Shader::loadFromFile(...) &' cannot be overloaded with 'bool sf::Shader::loadFromFile(...) &' 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:339:24: note: previous declaration 'bool sf::Shader::loadFromFile(...) &' 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:383:66: error: 'vertexShaderFilename' does not name a type 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:405:44: error: 'std::string_view' has not been declared 405 | [[nodiscard]] bool loadFromMemory(std::string_view shader, Type type); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:426:44: error: 'std::string_view' has not been declared 426 | [[nodiscard]] bool loadFromMemory(std::string_view vertexShader, std::string_view fragmentShader); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:426:75: error: 'std::string_view' has not been declared 426 | [[nodiscard]] bool loadFromMemory(std::string_view vertexShader, std::string_view fragmentShader); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:448:44: error: 'std::string_view' has not been declared 448 | [[nodiscard]] bool loadFromMemory(std::string_view vertexShader, | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:449:44: error: 'std::string_view' has not been declared 449 | std::string_view geometryShader, | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:450:44: error: 'std::string_view' has not been declared 450 | std::string_view fragmentShader); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:861:37: error: 'std::string_view' has not been declared 861 | [[nodiscard]] bool compile(std::string_view vertexShaderCode, | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:862:37: error: 'std::string_view' has not been declared 862 | std::string_view geometryShaderCode, | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:863:37: error: 'std::string_view' has not been declared 863 | std::string_view fragmentShaderCode); | ^~~~~~~~~~~ In file included from event_select.cpp:24: gui.h:62:22: warning: 'virtual void TWidget::Focussed()' was hidden [-Woverloaded-virtual=] 62 | virtual void Focussed() {} | ^~~~~~~~ gui.h:76:14: note: by 'void TLabel::Focussed(bool)' 76 | void Focussed(bool masterFocus); | ^~~~~~~~ In file included from event_select.cpp:34: winsys.h: In member function 'bool CWinsys::PollEvent(sf::Event&)': winsys.h:65:58: error: 'class sf::RenderWindow' has no member named 'pollEvent' 65 | bool PollEvent(sf::Event& event) { return window.pollEvent(event); } | ^~~~~~~~~ event_select.cpp: In member function 'virtual void CEventSelect::Keyb(sf::Keyboard::Key, bool, int, int)': event_select.cpp:56:36: error: 'Escape' is not a member of 'sf::Keyboard' 56 | case sf::Keyboard::Escape: | ^~~~~~ event_select.cpp:56:36: note: suggested alternatives: In file included from /usr/include/SFML/Window/Event.hpp:31: /usr/include/SFML/Window/Keyboard.hpp:212:5: note: 'sf::Keyboard::Scan::Escape' 212 | Escape, //!< Keyboard Escape key | ^~~~~~ /usr/include/SFML/Window/Keyboard.hpp:212:5: note: 'sf::Keyboard::Scan::Escape' /usr/include/SFML/Window/Keyboard.hpp:90:5: note: 'sf::Keyboard::Key::Escape' 90 | Escape, //!< The Escape key | ^~~~~~ event_select.cpp:59:36: error: 'Q' is not a member of 'sf::Keyboard' 59 | case sf::Keyboard::Q: | ^ event_select.cpp:59:36: note: suggested alternatives: /usr/include/SFML/Window/Keyboard.hpp:191:5: note: 'sf::Keyboard::Scan::Q' 191 | Q, //!< Keyboard q and Q key | ^ /usr/include/SFML/Window/Keyboard.hpp:191:5: note: 'sf::Keyboard::Scan::Q' /usr/include/SFML/Window/Keyboard.hpp:70:5: note: 'sf::Keyboard::Key::Q' 70 | Q, //!< The Q key | ^ event_select.cpp:62:36: error: 'Return' is not a member of 'sf::Keyboard' 62 | case sf::Keyboard::Return: | ^~~~~~ event_select.cpp:66:36: error: 'U' is not a member of 'sf::Keyboard' 66 | case sf::Keyboard::U: | ^ event_select.cpp:66:36: note: suggested alternatives: In file included from /usr/include/SFML/Window/Event.hpp:30: /usr/include/SFML/Window/Joystick.hpp:60:5: note: 'sf::Joystick::Axis::U' 60 | U, //!< The U axis | ^ /usr/include/SFML/Window/Keyboard.hpp:195:5: note: 'sf::Keyboard::Scan::U' 195 | U, //!< Keyboard u and U key | ^ /usr/include/SFML/Window/Keyboard.hpp:195:5: note: 'sf::Keyboard::Scan::U' /usr/include/SFML/Window/Keyboard.hpp:74:5: note: 'sf::Keyboard::Key::U' 74 | U, //!< The U key | ^ make[2]: *** [Makefile:566: event_select.o] Error 1 make[2]: Leaving directory '/usr/src/RPM/BUILD/etr-0.8.4/src' make[2]: Entering directory '/usr/src/RPM/BUILD/etr-0.8.4/src' x86_64-alt-linux-g++ -DHAVE_CONFIG_H -I. -I.. -DETR_DATA_DIR=\"/usr/share\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -std=c++14 -c -o help.o help.cpp In file included from /usr/include/SFML/System.hpp:34, from bh.h:30, from help.h:21, from help.cpp:22: /usr/include/SFML/System/Clock.hpp:78:20: error: 'ratio_less_equal_v' is not a member of 'std'; did you mean 'ratio_less_equal'? 78 | static_assert(std::ratio_less_equal_v, | ^~~~~~~~~~~~~~~~~~ | ratio_less_equal /usr/include/SFML/System/Clock.hpp:78:56: error: expected primary-expression before ',' token 78 | static_assert(std::ratio_less_equal_v, | ^ /usr/include/SFML/System/Clock.hpp:78:68: error: expected primary-expression before '>' token 78 | static_assert(std::ratio_less_equal_v, | ^ /usr/include/SFML/System/Clock.hpp:78:69: error: expected primary-expression before ',' token 78 | static_assert(std::ratio_less_equal_v, | ^ /usr/include/SFML/System/Clock.hpp:78:69: error: expected ')' before ',' token 78 | static_assert(std::ratio_less_equal_v, | ~ ^ | ) In file included from /usr/include/SFML/System/FileInputStream.hpp:34, from /usr/include/SFML/System.hpp:37: /usr/include/SFML/System/InputStream.hpp:66:32: error: 'optional' in namespace 'std' does not name a template type 66 | [[nodiscard]] virtual std::optional read(void* data, std::size_t size) = 0; | ^~~~~~~~ /usr/include/SFML/System/InputStream.hpp:66:27: note: 'std::optional' is only available from C++17 onwards 66 | [[nodiscard]] virtual std::optional read(void* data, std::size_t size) = 0; | ^~~ /usr/include/SFML/System/InputStream.hpp:76:32: error: 'optional' in namespace 'std' does not name a template type 76 | [[nodiscard]] virtual std::optional seek(std::size_t position) = 0; | ^~~~~~~~ /usr/include/SFML/System/InputStream.hpp:76:27: note: 'std::optional' is only available from C++17 onwards 76 | [[nodiscard]] virtual std::optional seek(std::size_t position) = 0; | ^~~ /usr/include/SFML/System/InputStream.hpp:84:32: error: 'optional' in namespace 'std' does not name a template type 84 | [[nodiscard]] virtual std::optional tell() = 0; | ^~~~~~~~ /usr/include/SFML/System/InputStream.hpp:84:27: note: 'std::optional' is only available from C++17 onwards 84 | [[nodiscard]] virtual std::optional tell() = 0; | ^~~ /usr/include/SFML/System/InputStream.hpp:92:18: error: 'optional' in namespace 'std' does not name a template type 92 | virtual std::optional getSize() = 0; | ^~~~~~~~ /usr/include/SFML/System/InputStream.hpp:92:13: note: 'std::optional' is only available from C++17 onwards 92 | virtual std::optional getSize() = 0; | ^~~ /usr/include/SFML/System/FileInputStream.hpp:106:41: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 106 | explicit FileInputStream(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/System/FileInputStream.hpp:106:57: error: expected unqualified-id before '&' token 106 | explicit FileInputStream(const std::filesystem::path& filename); | ^ /usr/include/SFML/System/FileInputStream.hpp:106:57: error: expected ')' before '&' token 106 | explicit FileInputStream(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/System/FileInputStream.hpp:106:57: error: constructors may not be ref-qualified /usr/include/SFML/System/FileInputStream.hpp:106:57: error: expected ';' at end of member declaration 106 | explicit FileInputStream(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/System/FileInputStream.hpp:106:59: error: 'filename' does not name a type 106 | explicit FileInputStream(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:116:40: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/System/FileInputStream.hpp:116:56: error: expected unqualified-id before '&' token 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ^ /usr/include/SFML/System/FileInputStream.hpp:116:56: error: expected ')' before '&' token 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/System/FileInputStream.hpp:116:56: error: expected ';' at end of member declaration 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/System/FileInputStream.hpp:116:58: error: 'filename' does not name a type 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:130:24: error: 'optional' in namespace 'std' does not name a template type 130 | [[nodiscard]] std::optional read(void* data, std::size_t size) override; | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:130:19: note: 'std::optional' is only available from C++17 onwards 130 | [[nodiscard]] std::optional read(void* data, std::size_t size) override; | ^~~ /usr/include/SFML/System/FileInputStream.hpp:140:24: error: 'optional' in namespace 'std' does not name a template type 140 | [[nodiscard]] std::optional seek(std::size_t position) override; | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:140:19: note: 'std::optional' is only available from C++17 onwards 140 | [[nodiscard]] std::optional seek(std::size_t position) override; | ^~~ /usr/include/SFML/System/FileInputStream.hpp:148:24: error: 'optional' in namespace 'std' does not name a template type 148 | [[nodiscard]] std::optional tell() override; | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:148:19: note: 'std::optional' is only available from C++17 onwards 148 | [[nodiscard]] std::optional tell() override; | ^~~ /usr/include/SFML/System/FileInputStream.hpp:156:10: error: 'optional' in namespace 'std' does not name a template type 156 | std::optional getSize() override; | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:156:5: note: 'std::optional' is only available from C++17 onwards 156 | std::optional getSize() override; | ^~~ In file included from /usr/include/SFML/System.hpp:39: /usr/include/SFML/System/MemoryInputStream.hpp:70:24: error: 'optional' in namespace 'std' does not name a template type 70 | [[nodiscard]] std::optional read(void* data, std::size_t size) override; | ^~~~~~~~ /usr/include/SFML/System/MemoryInputStream.hpp:70:19: note: 'std::optional' is only available from C++17 onwards 70 | [[nodiscard]] std::optional read(void* data, std::size_t size) override; | ^~~ /usr/include/SFML/System/MemoryInputStream.hpp:80:24: error: 'optional' in namespace 'std' does not name a template type 80 | [[nodiscard]] std::optional seek(std::size_t position) override; | ^~~~~~~~ /usr/include/SFML/System/MemoryInputStream.hpp:80:19: note: 'std::optional' is only available from C++17 onwards 80 | [[nodiscard]] std::optional seek(std::size_t position) override; | ^~~ /usr/include/SFML/System/MemoryInputStream.hpp:88:24: error: 'optional' in namespace 'std' does not name a template type 88 | [[nodiscard]] std::optional tell() override; | ^~~~~~~~ /usr/include/SFML/System/MemoryInputStream.hpp:88:19: note: 'std::optional' is only available from C++17 onwards 88 | [[nodiscard]] std::optional tell() override; | ^~~ /usr/include/SFML/System/MemoryInputStream.hpp:96:10: error: 'optional' in namespace 'std' does not name a template type 96 | std::optional getSize() override; | ^~~~~~~~ /usr/include/SFML/System/MemoryInputStream.hpp:96:5: note: 'std::optional' is only available from C++17 onwards 96 | std::optional getSize() override; | ^~~ /usr/include/SFML/System/MemoryInputStream.hpp:102:16: error: 'byte' in namespace 'std' does not name a type 102 | const std::byte* m_data{}; //!< Pointer to the data in memory | ^~~~ /usr/include/SFML/System/MemoryInputStream.hpp:102:11: note: 'std::byte' is only available from C++17 onwards 102 | const std::byte* m_data{}; //!< Pointer to the data in memory | ^~~ In file included from /usr/include/SFML/System/Utf.hpp:742, from /usr/include/SFML/System/String.hpp:32, from /usr/include/SFML/System.hpp:41: /usr/include/SFML/System/Utf.inl: In static member function 'static Out sf::Utf<8>::encode(char32_t, Out, uint8_t)': /usr/include/SFML/System/Utf.inl:137:25: error: 'byte' is not a member of 'std' 137 | std::array bytes{}; | ^~~~ /usr/include/SFML/System/Utf.inl:137:25: note: 'std::byte' is only available from C++17 onwards /usr/include/SFML/System/Utf.inl:137:25: error: 'byte' is not a member of 'std' /usr/include/SFML/System/Utf.inl:137:25: note: 'std::byte' is only available from C++17 onwards /usr/include/SFML/System/Utf.inl:137:32: error: template argument 1 is invalid 137 | std::array bytes{}; | ^ /usr/include/SFML/System/Utf.inl:142:26: error: invalid types 'int[int]' for array subscript 142 | case 4: bytes[3] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^ /usr/include/SFML/System/Utf.inl:142:49: error: 'byte' in namespace 'std' does not name a type 142 | case 4: bytes[3] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~~ /usr/include/SFML/System/Utf.inl:142:44: note: 'std::byte' is only available from C++17 onwards 142 | case 4: bytes[3] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~ /usr/include/SFML/System/Utf.inl:143:26: error: invalid types 'int[int]' for array subscript 143 | case 3: bytes[2] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^ /usr/include/SFML/System/Utf.inl:143:49: error: 'byte' in namespace 'std' does not name a type 143 | case 3: bytes[2] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~~ /usr/include/SFML/System/Utf.inl:143:44: note: 'std::byte' is only available from C++17 onwards 143 | case 3: bytes[2] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~ /usr/include/SFML/System/Utf.inl:144:26: error: invalid types 'int[int]' for array subscript 144 | case 2: bytes[1] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^ /usr/include/SFML/System/Utf.inl:144:49: error: 'byte' in namespace 'std' does not name a type 144 | case 2: bytes[1] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~~ /usr/include/SFML/System/Utf.inl:144:44: note: 'std::byte' is only available from C++17 onwards 144 | case 2: bytes[1] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~ /usr/include/SFML/System/Utf.inl:145:26: error: invalid types 'int[int]' for array subscript 145 | case 1: bytes[0] = static_cast (input | firstBytes[bytestoWrite]); | ^ /usr/include/SFML/System/Utf.inl:145:49: error: 'byte' in namespace 'std' does not name a type 145 | case 1: bytes[0] = static_cast (input | firstBytes[bytestoWrite]); | ^~~~ /usr/include/SFML/System/Utf.inl:145:44: note: 'std::byte' is only available from C++17 onwards 145 | case 1: bytes[0] = static_cast (input | firstBytes[bytestoWrite]); | ^~~ /usr/include/SFML/System/Utf.inl:150:35: error: request for member 'data' in 'bytes', which is of non-class type 'int' 150 | output = priv::copy(bytes.data(), bytes.data() + bytestoWrite, output); | ^~~~ /usr/include/SFML/System/Utf.inl:150:49: error: request for member 'data' in 'bytes', which is of non-class type 'int' 150 | output = priv::copy(bytes.data(), bytes.data() + bytestoWrite, output); | ^~~~ In file included from /usr/include/SFML/Window.hpp:32, from bh.h:31: /usr/include/SFML/Window/Context.hpp: At global scope: /usr/include/SFML/Window/Context.hpp:130:57: error: 'std::string_view' has not been declared 130 | [[nodiscard]] static bool isExtensionAvailable(std::string_view name); | ^~~~~~~~~~~ In file included from /usr/include/SFML/Window.hpp:34: /usr/include/SFML/Window/Cursor.hpp:226:31: error: 'optional' in namespace 'std' does not name a template type 226 | [[nodiscard]] static std::optional createFromPixels(const std::uint8_t* pixels, Vector2u size, Vector2u hotspot); | ^~~~~~~~ /usr/include/SFML/Window/Cursor.hpp:226:26: note: 'std::optional' is only available from C++17 onwards 226 | [[nodiscard]] static std::optional createFromPixels(const std::uint8_t* pixels, Vector2u size, Vector2u hotspot); | ^~~ /usr/include/SFML/Window/Cursor.hpp:242:31: error: 'optional' in namespace 'std' does not name a template type 242 | [[nodiscard]] static std::optional createFromSystem(Type type); | ^~~~~~~~ /usr/include/SFML/Window/Cursor.hpp:242:26: note: 'std::optional' is only available from C++17 onwards 242 | [[nodiscard]] static std::optional createFromSystem(Type type); | ^~~ In file included from /usr/include/SFML/Window.hpp:35: /usr/include/SFML/Window/Event.hpp:345:10: error: 'variant' in namespace 'std' does not name a template type 345 | std::variant*) | ^~~~~~~ /usr/include/SFML/Window/Event.hpp:374:65: note: 'std::variant' is only available from C++17 onwards 374 | [[nodiscard]] static constexpr bool isInParameterPack(const std::variant*) | ^~~ /usr/include/SFML/Window/Event.hpp:374:77: error: expected ',' or '...' before '<' token 374 | [[nodiscard]] static constexpr bool isInParameterPack(const std::variant*) | ^ /usr/include/SFML/Window/Event.hpp:380:76: error: 'm_data' was not declared in this scope 380 | static constexpr bool isEventSubtype = isInParameterPack(decltype (&m_data)(nullptr)); | ^~~~~~ /usr/include/SFML/Window/Event.hpp: In static member function 'static constexpr bool sf::Event::isInParameterPack(int)': /usr/include/SFML/Window/Event.hpp:376:22: error: 'is_same_v' is not a member of 'std'; did you mean 'is_same'? 376 | return (std::is_same_v || ...); | ^~~~~~~~~ | is_same /usr/include/SFML/Window/Event.hpp:376:33: error: expected primary-expression before ',' token 376 | return (std::is_same_v || ...); | ^ /usr/include/SFML/Window/Event.hpp:376:37: error: expected primary-expression before '>' token 376 | return (std::is_same_v || ...); | ^ /usr/include/SFML/Window/Event.hpp:376:39: error: expected primary-expression before '||' token 376 | return (std::is_same_v || ...); | ^~ /usr/include/SFML/Window/Event.hpp:376:42: error: operand of fold expression has no unexpanded parameter packs 376 | return (std::is_same_v || ...); | ^~~ In file included from /usr/include/SFML/Window/Event.hpp:385: /usr/include/SFML/Window/Event.inl: In constructor 'sf::Event::Event(const TEventSubtype&)': /usr/include/SFML/Window/Event.inl:47:9: error: 'm_data' was not declared in this scope 47 | m_data = eventSubtype; | ^~~~~~ /usr/include/SFML/Window/Event.inl: In member function 'bool sf::Event::is() const': /usr/include/SFML/Window/Event.inl:57:21: error: 'holds_alternative' is not a member of 'std' 57 | return std::holds_alternative(m_data); | ^~~~~~~~~~~~~~~~~ /usr/include/SFML/Window/Event.inl:57:21: note: 'std::holds_alternative' is only available from C++17 onwards /usr/include/SFML/Window/Event.inl:57:52: error: expected primary-expression before '>' token 57 | return std::holds_alternative(m_data); | ^ /usr/include/SFML/Window/Event.inl:57:54: error: 'm_data' was not declared in this scope 57 | return std::holds_alternative(m_data); | ^~~~~~ /usr/include/SFML/Window/Event.inl: In member function 'const TEventSubtype* sf::Event::getIf() const': /usr/include/SFML/Window/Event.inl:67:21: error: 'get_if' is not a member of 'std' 67 | return std::get_if(&m_data); | ^~~~~~ /usr/include/SFML/Window/Event.inl:67:41: error: expected primary-expression before '>' token 67 | return std::get_if(&m_data); | ^ /usr/include/SFML/Window/Event.inl:67:44: error: 'm_data' was not declared in this scope 67 | return std::get_if(&m_data); | ^~~~~~ /usr/include/SFML/Window/Event.inl: In member function 'decltype(auto) sf::Event::visit(T&&) const': /usr/include/SFML/Window/Event.inl:75:17: error: 'visit' is not a member of 'std' 75 | return std::visit(std::forward(visitor), m_data); | ^~~~~ /usr/include/SFML/Window/Event.inl:75:17: note: 'std::visit' is only available from C++17 onwards /usr/include/SFML/Window/Event.inl:75:49: error: 'm_data' was not declared in this scope 75 | return std::visit(std::forward(visitor), m_data); | ^~~~~~ In file included from /usr/include/SFML/Window/Window.hpp:32, from /usr/include/SFML/Window.hpp:42: /usr/include/SFML/Window/WindowBase.hpp: At global scope: /usr/include/SFML/Window/WindowBase.hpp:226:24: error: 'optional' in namespace 'std' does not name a template type 226 | [[nodiscard]] std::optional pollEvent(); | ^~~~~~~~ /usr/include/SFML/Window/WindowBase.hpp:226:19: note: 'std::optional' is only available from C++17 onwards 226 | [[nodiscard]] std::optional pollEvent(); | ^~~ /usr/include/SFML/Window/WindowBase.hpp:252:24: error: 'optional' in namespace 'std' does not name a template type 252 | [[nodiscard]] std::optional waitEvent(Time timeout = Time::Zero); | ^~~~~~~~ /usr/include/SFML/Window/WindowBase.hpp:252:19: note: 'std::optional' is only available from C++17 onwards 252 | [[nodiscard]] std::optional waitEvent(Time timeout = Time::Zero); | ^~~ /usr/include/SFML/Window/WindowBase.hpp:387:36: error: 'optional' in namespace 'std' does not name a template type 387 | void setMinimumSize(const std::optional& minimumSize); | ^~~~~~~~ /usr/include/SFML/Window/WindowBase.hpp:387:31: note: 'std::optional' is only available from C++17 onwards 387 | void setMinimumSize(const std::optional& minimumSize); | ^~~ /usr/include/SFML/Window/WindowBase.hpp:387:44: error: expected ',' or '...' before '<' token 387 | void setMinimumSize(const std::optional& minimumSize); | ^ /usr/include/SFML/Window/WindowBase.hpp:397:36: error: 'optional' in namespace 'std' does not name a template type 397 | void setMaximumSize(const std::optional& maximumSize); | ^~~~~~~~ /usr/include/SFML/Window/WindowBase.hpp:397:31: note: 'std::optional' is only available from C++17 onwards 397 | void setMaximumSize(const std::optional& maximumSize); | ^~~ /usr/include/SFML/Window/WindowBase.hpp:397:44: error: expected ',' or '...' before '<' token 397 | void setMaximumSize(const std::optional& maximumSize); | ^ In file included from /usr/include/SFML/Window/WindowBase.hpp:617: /usr/include/SFML/Window/WindowBase.inl:47:41: error: expected constructor, destructor, or type conversion before ';' token 47 | OverloadSet(Ts...) -> OverloadSet; | ^ /usr/include/SFML/Window/WindowBase.inl: In member function 'void sf::WindowBase::handleEvents(Ts&& ...)': /usr/include/SFML/Window/WindowBase.inl:69:23: error: missing template arguments before 'overloadSet' 69 | priv::OverloadSet overloadSet{std::forward(handlers)..., [](const priv::DelayOverloadResolution&) { /* ignore */ }}; | ^~~~~~~~~~~ /usr/include/SFML/Window/WindowBase.inl:71:32: error: qualified-id in declaration before 'event' 71 | while (const std::optional event = pollEvent()) | ^~~~~ /usr/include/SFML/Window/WindowBase.inl:72:9: error: 'event' was not declared in this scope; did you mean 'Event'? 72 | event->visit(overloadSet); | ^~~~~ | Event /usr/include/SFML/Window/WindowBase.inl:72:22: error: 'overloadSet' was not declared in this scope 72 | event->visit(overloadSet); | ^~~~~~~~~~~ In file included from /usr/include/SFML/Graphics/Color.hpp:229, from /usr/include/SFML/Graphics/Shape.hpp:32, from /usr/include/SFML/Graphics/CircleShape.hpp:32, from /usr/include/SFML/Graphics.hpp:32, from bh.h:32: /usr/include/SFML/Graphics/Color.inl: In function 'constexpr sf::Color sf::operator+(Color, Color)': /usr/include/SFML/Graphics/Color.inl:77:16: error: variable 'clampedAdd' of non-literal type 'const sf::operator+(Color, Color)::' in 'constexpr' function only available with '-std=c++2b' or '-std=gnu++2b' 77 | const auto clampedAdd = [](std::uint8_t lhs, std::uint8_t rhs) | ^~~~~~~~~~ /usr/include/SFML/Graphics/Color.inl:77:30: note: 'sf::operator+(Color, Color)::' is not literal because: 77 | const auto clampedAdd = [](std::uint8_t lhs, std::uint8_t rhs) | ^ cc1plus: note: 'sf::operator+(Color, Color)::' is a closure type, which is only literal in C++17 and later /usr/include/SFML/Graphics/Color.inl: In function 'constexpr sf::Color sf::operator-(Color, Color)': /usr/include/SFML/Graphics/Color.inl:93:16: error: variable 'clampedSub' of non-literal type 'const sf::operator-(Color, Color)::' in 'constexpr' function only available with '-std=c++2b' or '-std=gnu++2b' 93 | const auto clampedSub = [](std::uint8_t lhs, std::uint8_t rhs) | ^~~~~~~~~~ /usr/include/SFML/Graphics/Color.inl:93:30: note: 'sf::operator-(Color, Color)::' is not literal because: 93 | const auto clampedSub = [](std::uint8_t lhs, std::uint8_t rhs) | ^ cc1plus: note: 'sf::operator-(Color, Color)::' is a closure type, which is only literal in C++17 and later /usr/include/SFML/Graphics/Color.inl: In function 'constexpr sf::Color sf::operator*(Color, Color)': /usr/include/SFML/Graphics/Color.inl:109:16: error: variable 'scaledMul' of non-literal type 'const sf::operator*(Color, Color)::' in 'constexpr' function only available with '-std=c++2b' or '-std=gnu++2b' 109 | const auto scaledMul = [](std::uint8_t lhs, std::uint8_t rhs) | ^~~~~~~~~ /usr/include/SFML/Graphics/Color.inl:109:29: note: 'sf::operator*(Color, Color)::' is not literal because: 109 | const auto scaledMul = [](std::uint8_t lhs, std::uint8_t rhs) | ^ cc1plus: note: 'sf::operator*(Color, Color)::' is a closure type, which is only literal in C++17 and later In file included from /usr/include/SFML/Graphics/Shape.hpp:35: /usr/include/SFML/Graphics/Rect.hpp: At global scope: /usr/include/SFML/Graphics/Rect.hpp:98:34: error: 'optional' in namespace 'std' does not name a template type 98 | [[nodiscard]] constexpr std::optional> findIntersection(const Rect& rectangle) const; | ^~~~~~~~ /usr/include/SFML/Graphics/Rect.hpp:98:29: note: 'std::optional' is only available from C++17 onwards 98 | [[nodiscard]] constexpr std::optional> findIntersection(const Rect& rectangle) const; | ^~~ In file included from /usr/include/SFML/Graphics/Rect.hpp:151: /usr/include/SFML/Graphics/Rect.inl:71:16: error: 'optional' in namespace 'std' does not name a template type 71 | constexpr std::optional> Rect::findIntersection(const Rect& rectangle) const | ^~~~~~~~ /usr/include/SFML/Graphics/Rect.inl:71:11: note: 'std::optional' is only available from C++17 onwards 71 | constexpr std::optional> Rect::findIntersection(const Rect& rectangle) const | ^~~ In file included from /usr/include/SFML/Graphics/Transform.hpp:352, from /usr/include/SFML/Graphics/RenderStates.hpp:35, from /usr/include/SFML/Graphics/Shape.hpp:36: /usr/include/SFML/Graphics/Transform.inl: In member function 'constexpr sf::FloatRect sf::Transform::transformRect(const sf::FloatRect&) const': /usr/include/SFML/Graphics/Transform.inl:101:11: error: invalid use of template-name 'std::array' without an argument list 101 | const std::array points = {transformPoint(rectangle.position), | ^~~ /usr/include/SFML/Graphics/Transform.inl:101:11: note: class template argument deduction is only available with '-std=c++17' or '-std=gnu++17' In file included from /usr/include/c++/14/bits/stl_algobase.h:64, from /usr/include/c++/14/string:51, from bh.h:27: /usr/include/c++/14/bits/stl_pair.h:99:12: note: 'template struct std::array' declared here 99 | struct array; | ^~~~~ /usr/include/SFML/Graphics/Transform.inl:107:21: error: 'points' was not declared in this scope; did you mean 'printf'? 107 | Vector2f pmin = points[0]; | ^~~~~~ | printf In file included from /usr/include/SFML/Graphics/Font.hpp:34, from /usr/include/SFML/Graphics.hpp:36: /usr/include/SFML/Graphics/Texture.hpp: At global scope: /usr/include/SFML/Graphics/Texture.hpp:114:33: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Texture.hpp:114:49: error: expected unqualified-id before '&' token 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^ /usr/include/SFML/Graphics/Texture.hpp:114:49: error: expected ')' before '&' token 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ~ ^ | ) /usr/include/SFML/Graphics/Texture.hpp:114:49: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Texture.hpp:114:49: error: expected ';' at end of member declaration 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^ | ; /usr/include/SFML/Graphics/Texture.hpp:114:51: error: 'filename' does not name a type 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^~~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:137:24: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Texture.hpp:137:40: error: expected unqualified-id before '&' token 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^ /usr/include/SFML/Graphics/Texture.hpp:137:40: error: expected ')' before '&' token 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ~ ^ | ) /usr/include/SFML/Graphics/Texture.hpp:137:40: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Texture.hpp:137:40: error: expected ';' at end of member declaration 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^ | ; /usr/include/SFML/Graphics/Texture.hpp:137:5: error: 'sf::Texture::Texture(...)' cannot be overloaded with 'sf::Texture::Texture(...)' 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:114:14: note: previous declaration 'sf::Texture::Texture(...)' 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:137:42: error: 'filename' does not name a type 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^~~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:304:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Texture.hpp:304:64: error: expected unqualified-id before '&' token 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^ /usr/include/SFML/Graphics/Texture.hpp:304:64: error: expected ')' before '&' token 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ~ ^ | ) /usr/include/SFML/Graphics/Texture.hpp:304:64: error: expected ';' at end of member declaration 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^ | ; /usr/include/SFML/Graphics/Texture.hpp:304:66: error: 'filename' does not name a type 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^~~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:304:119: error: expected unqualified-id before ')' token 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^ /usr/include/SFML/Graphics/Font.hpp:103:30: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 103 | explicit Font(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Font.hpp:103:46: error: expected unqualified-id before '&' token 103 | explicit Font(const std::filesystem::path& filename); | ^ /usr/include/SFML/Graphics/Font.hpp:103:46: error: expected ')' before '&' token 103 | explicit Font(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Graphics/Font.hpp:103:46: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Font.hpp:103:46: error: expected ';' at end of member declaration 103 | explicit Font(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Graphics/Font.hpp:103:48: error: 'filename' does not name a type 103 | explicit Font(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/Graphics/Font.hpp:168:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Font.hpp:168:64: error: expected unqualified-id before '&' token 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^ /usr/include/SFML/Graphics/Font.hpp:168:64: error: expected ')' before '&' token 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Graphics/Font.hpp:168:64: error: expected ';' at end of member declaration 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Graphics/Font.hpp:168:66: error: 'filename' does not name a type 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^~~~~~~~ In file included from /usr/include/SFML/Graphics.hpp:38: /usr/include/SFML/Graphics/Image.hpp:103:31: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 103 | explicit Image(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Image.hpp:103:47: error: expected unqualified-id before '&' token 103 | explicit Image(const std::filesystem::path& filename); | ^ /usr/include/SFML/Graphics/Image.hpp:103:47: error: expected ')' before '&' token 103 | explicit Image(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Graphics/Image.hpp:103:47: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Image.hpp:103:47: error: expected ';' at end of member declaration 103 | explicit Image(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Graphics/Image.hpp:103:49: error: 'filename' does not name a type 103 | explicit Image(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/Graphics/Image.hpp:175:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Image.hpp:175:64: error: expected unqualified-id before '&' token 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^ /usr/include/SFML/Graphics/Image.hpp:175:64: error: expected ')' before '&' token 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Graphics/Image.hpp:175:64: error: expected ';' at end of member declaration 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Graphics/Image.hpp:175:66: error: 'filename' does not name a type 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/Graphics/Image.hpp:227:46: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Image.hpp:227:62: error: expected unqualified-id before '&' token 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^ /usr/include/SFML/Graphics/Image.hpp:227:62: error: expected ')' before '&' token 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ~ ^ | ) /usr/include/SFML/Graphics/Image.hpp:227:62: error: expected ';' at end of member declaration 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^ | ; /usr/include/SFML/Graphics/Image.hpp:227:64: error: 'filename' does not name a type 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^~~~~~~~ /usr/include/SFML/Graphics/Image.hpp:245:24: error: 'optional' in namespace 'std' does not name a template type 245 | [[nodiscard]] std::optional> saveToMemory(std::string_view format) const; | ^~~~~~~~ /usr/include/SFML/Graphics/Image.hpp:245:19: note: 'std::optional' is only available from C++17 onwards 245 | [[nodiscard]] std::optional> saveToMemory(std::string_view format) const; | ^~~ In file included from /usr/include/SFML/Graphics.hpp:46: /usr/include/SFML/Graphics/Shader.hpp:147:23: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 147 | Shader(const std::filesystem::path& filename, Type type); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:147:39: error: expected unqualified-id before '&' token 147 | Shader(const std::filesystem::path& filename, Type type); | ^ /usr/include/SFML/Graphics/Shader.hpp:147:39: error: expected ')' before '&' token 147 | Shader(const std::filesystem::path& filename, Type type); | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:147:39: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Shader.hpp:147:39: error: expected ';' at end of member declaration 147 | Shader(const std::filesystem::path& filename, Type type); | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:147:41: error: 'filename' does not name a type 147 | Shader(const std::filesystem::path& filename, Type type); | ^~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:168:23: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:168:39: error: expected unqualified-id before '&' token 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^ /usr/include/SFML/Graphics/Shader.hpp:168:39: error: expected ')' before '&' token 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:168:39: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Shader.hpp:168:39: error: expected ';' at end of member declaration 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:168:5: error: 'sf::Shader::Shader(...)' cannot be overloaded with 'sf::Shader::Shader(...)' 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^~~~~~ /usr/include/SFML/Graphics/Shader.hpp:147:5: note: previous declaration 'sf::Shader::Shader(...)' 147 | Shader(const std::filesystem::path& filename, Type type); | ^~~~~~ /usr/include/SFML/Graphics/Shader.hpp:168:41: error: 'vertexShaderFilename' does not name a type 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:190:23: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:190:39: error: expected unqualified-id before '&' token 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^ /usr/include/SFML/Graphics/Shader.hpp:190:39: error: expected ')' before '&' token 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:190:39: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Shader.hpp:190:39: error: expected ';' at end of member declaration 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:190:5: error: 'sf::Shader::Shader(...)' cannot be overloaded with 'sf::Shader::Shader(...)' 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^~~~~~ /usr/include/SFML/Graphics/Shader.hpp:147:5: note: previous declaration 'sf::Shader::Shader(...)' 147 | Shader(const std::filesystem::path& filename, Type type); | ^~~~~~ /usr/include/SFML/Graphics/Shader.hpp:190:41: error: 'vertexShaderFilename' does not name a type 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:212:28: error: expected ')' before 'shader' 212 | Shader(std::string_view shader, Type type); | ~ ^~~~~~~ | ) /usr/include/SFML/Graphics/Shader.hpp:233:28: error: expected ')' before 'vertexShader' 233 | Shader(std::string_view vertexShader, std::string_view fragmentShader); | ~ ^~~~~~~~~~~~~ | ) /usr/include/SFML/Graphics/Shader.hpp:255:28: error: expected ')' before 'vertexShader' 255 | Shader(std::string_view vertexShader, std::string_view geometryShader, std::string_view fragmentShader); | ~ ^~~~~~~~~~~~~ | ) /usr/include/SFML/Graphics/Shader.hpp:339:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:339:64: error: expected unqualified-id before '&' token 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^ /usr/include/SFML/Graphics/Shader.hpp:339:64: error: expected ')' before '&' token 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:339:64: error: expected ';' at end of member declaration 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:339:66: error: 'filename' does not name a type 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:360:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:360:64: error: expected unqualified-id before '&' token 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^ /usr/include/SFML/Graphics/Shader.hpp:360:64: error: expected ')' before '&' token 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:360:64: error: expected ';' at end of member declaration 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:360:24: error: 'bool sf::Shader::loadFromFile(...) &' cannot be overloaded with 'bool sf::Shader::loadFromFile(...) &' 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:339:24: note: previous declaration 'bool sf::Shader::loadFromFile(...) &' 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:360:66: error: 'vertexShaderFilename' does not name a type 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:383:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:383:64: error: expected unqualified-id before '&' token 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^ /usr/include/SFML/Graphics/Shader.hpp:383:64: error: expected ')' before '&' token 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:383:64: error: expected ';' at end of member declaration 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:383:24: error: 'bool sf::Shader::loadFromFile(...) &' cannot be overloaded with 'bool sf::Shader::loadFromFile(...) &' 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:339:24: note: previous declaration 'bool sf::Shader::loadFromFile(...) &' 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:383:66: error: 'vertexShaderFilename' does not name a type 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:405:44: error: 'std::string_view' has not been declared 405 | [[nodiscard]] bool loadFromMemory(std::string_view shader, Type type); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:426:44: error: 'std::string_view' has not been declared 426 | [[nodiscard]] bool loadFromMemory(std::string_view vertexShader, std::string_view fragmentShader); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:426:75: error: 'std::string_view' has not been declared 426 | [[nodiscard]] bool loadFromMemory(std::string_view vertexShader, std::string_view fragmentShader); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:448:44: error: 'std::string_view' has not been declared 448 | [[nodiscard]] bool loadFromMemory(std::string_view vertexShader, | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:449:44: error: 'std::string_view' has not been declared 449 | std::string_view geometryShader, | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:450:44: error: 'std::string_view' has not been declared 450 | std::string_view fragmentShader); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:861:37: error: 'std::string_view' has not been declared 861 | [[nodiscard]] bool compile(std::string_view vertexShaderCode, | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:862:37: error: 'std::string_view' has not been declared 862 | std::string_view geometryShaderCode, | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:863:37: error: 'std::string_view' has not been declared 863 | std::string_view fragmentShaderCode); | ^~~~~~~~~~~ In file included from help.cpp:27: gui.h:62:22: warning: 'virtual void TWidget::Focussed()' was hidden [-Woverloaded-virtual=] 62 | virtual void Focussed() {} | ^~~~~~~~ gui.h:76:14: note: by 'void TLabel::Focussed(bool)' 76 | void Focussed(bool masterFocus); | ^~~~~~~~ In file included from help.cpp:29: winsys.h: In member function 'bool CWinsys::PollEvent(sf::Event&)': winsys.h:65:58: error: 'class sf::RenderWindow' has no member named 'pollEvent' 65 | bool PollEvent(sf::Event& event) { return window.pollEvent(event); } | ^~~~~~~~~ make[2]: *** [Makefile:566: help.o] Error 1 make[2]: Leaving directory '/usr/src/RPM/BUILD/etr-0.8.4/src' make[2]: Entering directory '/usr/src/RPM/BUILD/etr-0.8.4/src' x86_64-alt-linux-g++ -DHAVE_CONFIG_H -I. -I.. -DETR_DATA_DIR=\"/usr/share\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -std=c++14 -c -o course_render.o course_render.cpp In file included from /usr/include/SFML/System.hpp:34, from bh.h:30, from textures.h:21, from course_render.cpp:22: /usr/include/SFML/System/Clock.hpp:78:20: error: 'ratio_less_equal_v' is not a member of 'std'; did you mean 'ratio_less_equal'? 78 | static_assert(std::ratio_less_equal_v, | ^~~~~~~~~~~~~~~~~~ | ratio_less_equal /usr/include/SFML/System/Clock.hpp:78:56: error: expected primary-expression before ',' token 78 | static_assert(std::ratio_less_equal_v, | ^ /usr/include/SFML/System/Clock.hpp:78:68: error: expected primary-expression before '>' token 78 | static_assert(std::ratio_less_equal_v, | ^ /usr/include/SFML/System/Clock.hpp:78:69: error: expected primary-expression before ',' token 78 | static_assert(std::ratio_less_equal_v, | ^ /usr/include/SFML/System/Clock.hpp:78:69: error: expected ')' before ',' token 78 | static_assert(std::ratio_less_equal_v, | ~ ^ | ) In file included from /usr/include/SFML/System/FileInputStream.hpp:34, from /usr/include/SFML/System.hpp:37: /usr/include/SFML/System/InputStream.hpp:66:32: error: 'optional' in namespace 'std' does not name a template type 66 | [[nodiscard]] virtual std::optional read(void* data, std::size_t size) = 0; | ^~~~~~~~ /usr/include/SFML/System/InputStream.hpp:66:27: note: 'std::optional' is only available from C++17 onwards 66 | [[nodiscard]] virtual std::optional read(void* data, std::size_t size) = 0; | ^~~ /usr/include/SFML/System/InputStream.hpp:76:32: error: 'optional' in namespace 'std' does not name a template type 76 | [[nodiscard]] virtual std::optional seek(std::size_t position) = 0; | ^~~~~~~~ /usr/include/SFML/System/InputStream.hpp:76:27: note: 'std::optional' is only available from C++17 onwards 76 | [[nodiscard]] virtual std::optional seek(std::size_t position) = 0; | ^~~ /usr/include/SFML/System/InputStream.hpp:84:32: error: 'optional' in namespace 'std' does not name a template type 84 | [[nodiscard]] virtual std::optional tell() = 0; | ^~~~~~~~ /usr/include/SFML/System/InputStream.hpp:84:27: note: 'std::optional' is only available from C++17 onwards 84 | [[nodiscard]] virtual std::optional tell() = 0; | ^~~ /usr/include/SFML/System/InputStream.hpp:92:18: error: 'optional' in namespace 'std' does not name a template type 92 | virtual std::optional getSize() = 0; | ^~~~~~~~ /usr/include/SFML/System/InputStream.hpp:92:13: note: 'std::optional' is only available from C++17 onwards 92 | virtual std::optional getSize() = 0; | ^~~ /usr/include/SFML/System/FileInputStream.hpp:106:41: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 106 | explicit FileInputStream(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/System/FileInputStream.hpp:106:57: error: expected unqualified-id before '&' token 106 | explicit FileInputStream(const std::filesystem::path& filename); | ^ /usr/include/SFML/System/FileInputStream.hpp:106:57: error: expected ')' before '&' token 106 | explicit FileInputStream(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/System/FileInputStream.hpp:106:57: error: constructors may not be ref-qualified /usr/include/SFML/System/FileInputStream.hpp:106:57: error: expected ';' at end of member declaration 106 | explicit FileInputStream(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/System/FileInputStream.hpp:106:59: error: 'filename' does not name a type 106 | explicit FileInputStream(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:116:40: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/System/FileInputStream.hpp:116:56: error: expected unqualified-id before '&' token 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ^ /usr/include/SFML/System/FileInputStream.hpp:116:56: error: expected ')' before '&' token 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/System/FileInputStream.hpp:116:56: error: expected ';' at end of member declaration 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/System/FileInputStream.hpp:116:58: error: 'filename' does not name a type 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:130:24: error: 'optional' in namespace 'std' does not name a template type 130 | [[nodiscard]] std::optional read(void* data, std::size_t size) override; | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:130:19: note: 'std::optional' is only available from C++17 onwards 130 | [[nodiscard]] std::optional read(void* data, std::size_t size) override; | ^~~ /usr/include/SFML/System/FileInputStream.hpp:140:24: error: 'optional' in namespace 'std' does not name a template type 140 | [[nodiscard]] std::optional seek(std::size_t position) override; | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:140:19: note: 'std::optional' is only available from C++17 onwards 140 | [[nodiscard]] std::optional seek(std::size_t position) override; | ^~~ /usr/include/SFML/System/FileInputStream.hpp:148:24: error: 'optional' in namespace 'std' does not name a template type 148 | [[nodiscard]] std::optional tell() override; | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:148:19: note: 'std::optional' is only available from C++17 onwards 148 | [[nodiscard]] std::optional tell() override; | ^~~ /usr/include/SFML/System/FileInputStream.hpp:156:10: error: 'optional' in namespace 'std' does not name a template type 156 | std::optional getSize() override; | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:156:5: note: 'std::optional' is only available from C++17 onwards 156 | std::optional getSize() override; | ^~~ In file included from /usr/include/SFML/System.hpp:39: /usr/include/SFML/System/MemoryInputStream.hpp:70:24: error: 'optional' in namespace 'std' does not name a template type 70 | [[nodiscard]] std::optional read(void* data, std::size_t size) override; | ^~~~~~~~ /usr/include/SFML/System/MemoryInputStream.hpp:70:19: note: 'std::optional' is only available from C++17 onwards 70 | [[nodiscard]] std::optional read(void* data, std::size_t size) override; | ^~~ /usr/include/SFML/System/MemoryInputStream.hpp:80:24: error: 'optional' in namespace 'std' does not name a template type 80 | [[nodiscard]] std::optional seek(std::size_t position) override; | ^~~~~~~~ /usr/include/SFML/System/MemoryInputStream.hpp:80:19: note: 'std::optional' is only available from C++17 onwards 80 | [[nodiscard]] std::optional seek(std::size_t position) override; | ^~~ /usr/include/SFML/System/MemoryInputStream.hpp:88:24: error: 'optional' in namespace 'std' does not name a template type 88 | [[nodiscard]] std::optional tell() override; | ^~~~~~~~ /usr/include/SFML/System/MemoryInputStream.hpp:88:19: note: 'std::optional' is only available from C++17 onwards 88 | [[nodiscard]] std::optional tell() override; | ^~~ /usr/include/SFML/System/MemoryInputStream.hpp:96:10: error: 'optional' in namespace 'std' does not name a template type 96 | std::optional getSize() override; | ^~~~~~~~ /usr/include/SFML/System/MemoryInputStream.hpp:96:5: note: 'std::optional' is only available from C++17 onwards 96 | std::optional getSize() override; | ^~~ /usr/include/SFML/System/MemoryInputStream.hpp:102:16: error: 'byte' in namespace 'std' does not name a type 102 | const std::byte* m_data{}; //!< Pointer to the data in memory | ^~~~ /usr/include/SFML/System/MemoryInputStream.hpp:102:11: note: 'std::byte' is only available from C++17 onwards 102 | const std::byte* m_data{}; //!< Pointer to the data in memory | ^~~ In file included from /usr/include/SFML/System/Utf.hpp:742, from /usr/include/SFML/System/String.hpp:32, from /usr/include/SFML/System.hpp:41: /usr/include/SFML/System/Utf.inl: In static member function 'static Out sf::Utf<8>::encode(char32_t, Out, uint8_t)': /usr/include/SFML/System/Utf.inl:137:25: error: 'byte' is not a member of 'std' 137 | std::array bytes{}; | ^~~~ /usr/include/SFML/System/Utf.inl:137:25: note: 'std::byte' is only available from C++17 onwards /usr/include/SFML/System/Utf.inl:137:25: error: 'byte' is not a member of 'std' /usr/include/SFML/System/Utf.inl:137:25: note: 'std::byte' is only available from C++17 onwards /usr/include/SFML/System/Utf.inl:137:32: error: template argument 1 is invalid 137 | std::array bytes{}; | ^ /usr/include/SFML/System/Utf.inl:142:26: error: invalid types 'int[int]' for array subscript 142 | case 4: bytes[3] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^ /usr/include/SFML/System/Utf.inl:142:49: error: 'byte' in namespace 'std' does not name a type 142 | case 4: bytes[3] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~~ /usr/include/SFML/System/Utf.inl:142:44: note: 'std::byte' is only available from C++17 onwards 142 | case 4: bytes[3] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~ /usr/include/SFML/System/Utf.inl:143:26: error: invalid types 'int[int]' for array subscript 143 | case 3: bytes[2] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^ /usr/include/SFML/System/Utf.inl:143:49: error: 'byte' in namespace 'std' does not name a type 143 | case 3: bytes[2] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~~ /usr/include/SFML/System/Utf.inl:143:44: note: 'std::byte' is only available from C++17 onwards 143 | case 3: bytes[2] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~ /usr/include/SFML/System/Utf.inl:144:26: error: invalid types 'int[int]' for array subscript 144 | case 2: bytes[1] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^ /usr/include/SFML/System/Utf.inl:144:49: error: 'byte' in namespace 'std' does not name a type 144 | case 2: bytes[1] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~~ /usr/include/SFML/System/Utf.inl:144:44: note: 'std::byte' is only available from C++17 onwards 144 | case 2: bytes[1] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~ /usr/include/SFML/System/Utf.inl:145:26: error: invalid types 'int[int]' for array subscript 145 | case 1: bytes[0] = static_cast (input | firstBytes[bytestoWrite]); | ^ /usr/include/SFML/System/Utf.inl:145:49: error: 'byte' in namespace 'std' does not name a type 145 | case 1: bytes[0] = static_cast (input | firstBytes[bytestoWrite]); | ^~~~ /usr/include/SFML/System/Utf.inl:145:44: note: 'std::byte' is only available from C++17 onwards 145 | case 1: bytes[0] = static_cast (input | firstBytes[bytestoWrite]); | ^~~ /usr/include/SFML/System/Utf.inl:150:35: error: request for member 'data' in 'bytes', which is of non-class type 'int' 150 | output = priv::copy(bytes.data(), bytes.data() + bytestoWrite, output); | ^~~~ /usr/include/SFML/System/Utf.inl:150:49: error: request for member 'data' in 'bytes', which is of non-class type 'int' 150 | output = priv::copy(bytes.data(), bytes.data() + bytestoWrite, output); | ^~~~ In file included from /usr/include/SFML/Window.hpp:32, from bh.h:31: /usr/include/SFML/Window/Context.hpp: At global scope: /usr/include/SFML/Window/Context.hpp:130:57: error: 'std::string_view' has not been declared 130 | [[nodiscard]] static bool isExtensionAvailable(std::string_view name); | ^~~~~~~~~~~ In file included from /usr/include/SFML/Window.hpp:34: /usr/include/SFML/Window/Cursor.hpp:226:31: error: 'optional' in namespace 'std' does not name a template type 226 | [[nodiscard]] static std::optional createFromPixels(const std::uint8_t* pixels, Vector2u size, Vector2u hotspot); | ^~~~~~~~ /usr/include/SFML/Window/Cursor.hpp:226:26: note: 'std::optional' is only available from C++17 onwards 226 | [[nodiscard]] static std::optional createFromPixels(const std::uint8_t* pixels, Vector2u size, Vector2u hotspot); | ^~~ /usr/include/SFML/Window/Cursor.hpp:242:31: error: 'optional' in namespace 'std' does not name a template type 242 | [[nodiscard]] static std::optional createFromSystem(Type type); | ^~~~~~~~ /usr/include/SFML/Window/Cursor.hpp:242:26: note: 'std::optional' is only available from C++17 onwards 242 | [[nodiscard]] static std::optional createFromSystem(Type type); | ^~~ In file included from /usr/include/SFML/Window.hpp:35: /usr/include/SFML/Window/Event.hpp:345:10: error: 'variant' in namespace 'std' does not name a template type 345 | std::variant*) | ^~~~~~~ /usr/include/SFML/Window/Event.hpp:374:65: note: 'std::variant' is only available from C++17 onwards 374 | [[nodiscard]] static constexpr bool isInParameterPack(const std::variant*) | ^~~ /usr/include/SFML/Window/Event.hpp:374:77: error: expected ',' or '...' before '<' token 374 | [[nodiscard]] static constexpr bool isInParameterPack(const std::variant*) | ^ /usr/include/SFML/Window/Event.hpp:380:76: error: 'm_data' was not declared in this scope 380 | static constexpr bool isEventSubtype = isInParameterPack(decltype (&m_data)(nullptr)); | ^~~~~~ /usr/include/SFML/Window/Event.hpp: In static member function 'static constexpr bool sf::Event::isInParameterPack(int)': /usr/include/SFML/Window/Event.hpp:376:22: error: 'is_same_v' is not a member of 'std'; did you mean 'is_same'? 376 | return (std::is_same_v || ...); | ^~~~~~~~~ | is_same /usr/include/SFML/Window/Event.hpp:376:33: error: expected primary-expression before ',' token 376 | return (std::is_same_v || ...); | ^ /usr/include/SFML/Window/Event.hpp:376:37: error: expected primary-expression before '>' token 376 | return (std::is_same_v || ...); | ^ /usr/include/SFML/Window/Event.hpp:376:39: error: expected primary-expression before '||' token 376 | return (std::is_same_v || ...); | ^~ /usr/include/SFML/Window/Event.hpp:376:42: error: operand of fold expression has no unexpanded parameter packs 376 | return (std::is_same_v || ...); | ^~~ In file included from /usr/include/SFML/Window/Event.hpp:385: /usr/include/SFML/Window/Event.inl: In constructor 'sf::Event::Event(const TEventSubtype&)': /usr/include/SFML/Window/Event.inl:47:9: error: 'm_data' was not declared in this scope 47 | m_data = eventSubtype; | ^~~~~~ /usr/include/SFML/Window/Event.inl: In member function 'bool sf::Event::is() const': /usr/include/SFML/Window/Event.inl:57:21: error: 'holds_alternative' is not a member of 'std' 57 | return std::holds_alternative(m_data); | ^~~~~~~~~~~~~~~~~ /usr/include/SFML/Window/Event.inl:57:21: note: 'std::holds_alternative' is only available from C++17 onwards /usr/include/SFML/Window/Event.inl:57:52: error: expected primary-expression before '>' token 57 | return std::holds_alternative(m_data); | ^ /usr/include/SFML/Window/Event.inl:57:54: error: 'm_data' was not declared in this scope 57 | return std::holds_alternative(m_data); | ^~~~~~ /usr/include/SFML/Window/Event.inl: In member function 'const TEventSubtype* sf::Event::getIf() const': /usr/include/SFML/Window/Event.inl:67:21: error: 'get_if' is not a member of 'std' 67 | return std::get_if(&m_data); | ^~~~~~ /usr/include/SFML/Window/Event.inl:67:41: error: expected primary-expression before '>' token 67 | return std::get_if(&m_data); | ^ /usr/include/SFML/Window/Event.inl:67:44: error: 'm_data' was not declared in this scope 67 | return std::get_if(&m_data); | ^~~~~~ /usr/include/SFML/Window/Event.inl: In member function 'decltype(auto) sf::Event::visit(T&&) const': /usr/include/SFML/Window/Event.inl:75:17: error: 'visit' is not a member of 'std' 75 | return std::visit(std::forward(visitor), m_data); | ^~~~~ /usr/include/SFML/Window/Event.inl:75:17: note: 'std::visit' is only available from C++17 onwards /usr/include/SFML/Window/Event.inl:75:49: error: 'm_data' was not declared in this scope 75 | return std::visit(std::forward(visitor), m_data); | ^~~~~~ In file included from /usr/include/SFML/Window/Window.hpp:32, from /usr/include/SFML/Window.hpp:42: /usr/include/SFML/Window/WindowBase.hpp: At global scope: /usr/include/SFML/Window/WindowBase.hpp:226:24: error: 'optional' in namespace 'std' does not name a template type 226 | [[nodiscard]] std::optional pollEvent(); | ^~~~~~~~ /usr/include/SFML/Window/WindowBase.hpp:226:19: note: 'std::optional' is only available from C++17 onwards 226 | [[nodiscard]] std::optional pollEvent(); | ^~~ /usr/include/SFML/Window/WindowBase.hpp:252:24: error: 'optional' in namespace 'std' does not name a template type 252 | [[nodiscard]] std::optional waitEvent(Time timeout = Time::Zero); | ^~~~~~~~ /usr/include/SFML/Window/WindowBase.hpp:252:19: note: 'std::optional' is only available from C++17 onwards 252 | [[nodiscard]] std::optional waitEvent(Time timeout = Time::Zero); | ^~~ /usr/include/SFML/Window/WindowBase.hpp:387:36: error: 'optional' in namespace 'std' does not name a template type 387 | void setMinimumSize(const std::optional& minimumSize); | ^~~~~~~~ /usr/include/SFML/Window/WindowBase.hpp:387:31: note: 'std::optional' is only available from C++17 onwards 387 | void setMinimumSize(const std::optional& minimumSize); | ^~~ /usr/include/SFML/Window/WindowBase.hpp:387:44: error: expected ',' or '...' before '<' token 387 | void setMinimumSize(const std::optional& minimumSize); | ^ /usr/include/SFML/Window/WindowBase.hpp:397:36: error: 'optional' in namespace 'std' does not name a template type 397 | void setMaximumSize(const std::optional& maximumSize); | ^~~~~~~~ /usr/include/SFML/Window/WindowBase.hpp:397:31: note: 'std::optional' is only available from C++17 onwards 397 | void setMaximumSize(const std::optional& maximumSize); | ^~~ /usr/include/SFML/Window/WindowBase.hpp:397:44: error: expected ',' or '...' before '<' token 397 | void setMaximumSize(const std::optional& maximumSize); | ^ In file included from /usr/include/SFML/Window/WindowBase.hpp:617: /usr/include/SFML/Window/WindowBase.inl:47:41: error: expected constructor, destructor, or type conversion before ';' token 47 | OverloadSet(Ts...) -> OverloadSet; | ^ /usr/include/SFML/Window/WindowBase.inl: In member function 'void sf::WindowBase::handleEvents(Ts&& ...)': /usr/include/SFML/Window/WindowBase.inl:69:23: error: missing template arguments before 'overloadSet' 69 | priv::OverloadSet overloadSet{std::forward(handlers)..., [](const priv::DelayOverloadResolution&) { /* ignore */ }}; | ^~~~~~~~~~~ /usr/include/SFML/Window/WindowBase.inl:71:32: error: qualified-id in declaration before 'event' 71 | while (const std::optional event = pollEvent()) | ^~~~~ /usr/include/SFML/Window/WindowBase.inl:72:9: error: 'event' was not declared in this scope; did you mean 'Event'? 72 | event->visit(overloadSet); | ^~~~~ | Event /usr/include/SFML/Window/WindowBase.inl:72:22: error: 'overloadSet' was not declared in this scope 72 | event->visit(overloadSet); | ^~~~~~~~~~~ In file included from /usr/include/SFML/Graphics/Color.hpp:229, from /usr/include/SFML/Graphics/Shape.hpp:32, from /usr/include/SFML/Graphics/CircleShape.hpp:32, from /usr/include/SFML/Graphics.hpp:32, from bh.h:32: /usr/include/SFML/Graphics/Color.inl: In function 'constexpr sf::Color sf::operator+(Color, Color)': /usr/include/SFML/Graphics/Color.inl:77:16: error: variable 'clampedAdd' of non-literal type 'const sf::operator+(Color, Color)::' in 'constexpr' function only available with '-std=c++2b' or '-std=gnu++2b' 77 | const auto clampedAdd = [](std::uint8_t lhs, std::uint8_t rhs) | ^~~~~~~~~~ /usr/include/SFML/Graphics/Color.inl:77:30: note: 'sf::operator+(Color, Color)::' is not literal because: 77 | const auto clampedAdd = [](std::uint8_t lhs, std::uint8_t rhs) | ^ cc1plus: note: 'sf::operator+(Color, Color)::' is a closure type, which is only literal in C++17 and later /usr/include/SFML/Graphics/Color.inl: In function 'constexpr sf::Color sf::operator-(Color, Color)': /usr/include/SFML/Graphics/Color.inl:93:16: error: variable 'clampedSub' of non-literal type 'const sf::operator-(Color, Color)::' in 'constexpr' function only available with '-std=c++2b' or '-std=gnu++2b' 93 | const auto clampedSub = [](std::uint8_t lhs, std::uint8_t rhs) | ^~~~~~~~~~ /usr/include/SFML/Graphics/Color.inl:93:30: note: 'sf::operator-(Color, Color)::' is not literal because: 93 | const auto clampedSub = [](std::uint8_t lhs, std::uint8_t rhs) | ^ cc1plus: note: 'sf::operator-(Color, Color)::' is a closure type, which is only literal in C++17 and later /usr/include/SFML/Graphics/Color.inl: In function 'constexpr sf::Color sf::operator*(Color, Color)': /usr/include/SFML/Graphics/Color.inl:109:16: error: variable 'scaledMul' of non-literal type 'const sf::operator*(Color, Color)::' in 'constexpr' function only available with '-std=c++2b' or '-std=gnu++2b' 109 | const auto scaledMul = [](std::uint8_t lhs, std::uint8_t rhs) | ^~~~~~~~~ /usr/include/SFML/Graphics/Color.inl:109:29: note: 'sf::operator*(Color, Color)::' is not literal because: 109 | const auto scaledMul = [](std::uint8_t lhs, std::uint8_t rhs) | ^ cc1plus: note: 'sf::operator*(Color, Color)::' is a closure type, which is only literal in C++17 and later In file included from /usr/include/SFML/Graphics/Shape.hpp:35: /usr/include/SFML/Graphics/Rect.hpp: At global scope: /usr/include/SFML/Graphics/Rect.hpp:98:34: error: 'optional' in namespace 'std' does not name a template type 98 | [[nodiscard]] constexpr std::optional> findIntersection(const Rect& rectangle) const; | ^~~~~~~~ /usr/include/SFML/Graphics/Rect.hpp:98:29: note: 'std::optional' is only available from C++17 onwards 98 | [[nodiscard]] constexpr std::optional> findIntersection(const Rect& rectangle) const; | ^~~ In file included from /usr/include/SFML/Graphics/Rect.hpp:151: /usr/include/SFML/Graphics/Rect.inl:71:16: error: 'optional' in namespace 'std' does not name a template type 71 | constexpr std::optional> Rect::findIntersection(const Rect& rectangle) const | ^~~~~~~~ /usr/include/SFML/Graphics/Rect.inl:71:11: note: 'std::optional' is only available from C++17 onwards 71 | constexpr std::optional> Rect::findIntersection(const Rect& rectangle) const | ^~~ In file included from /usr/include/SFML/Graphics/Transform.hpp:352, from /usr/include/SFML/Graphics/RenderStates.hpp:35, from /usr/include/SFML/Graphics/Shape.hpp:36: /usr/include/SFML/Graphics/Transform.inl: In member function 'constexpr sf::FloatRect sf::Transform::transformRect(const sf::FloatRect&) const': /usr/include/SFML/Graphics/Transform.inl:101:11: error: invalid use of template-name 'std::array' without an argument list 101 | const std::array points = {transformPoint(rectangle.position), | ^~~ /usr/include/SFML/Graphics/Transform.inl:101:11: note: class template argument deduction is only available with '-std=c++17' or '-std=gnu++17' In file included from /usr/include/c++/14/bits/stl_algobase.h:64, from /usr/include/c++/14/string:51, from bh.h:27: /usr/include/c++/14/bits/stl_pair.h:99:12: note: 'template struct std::array' declared here 99 | struct array; | ^~~~~ /usr/include/SFML/Graphics/Transform.inl:107:21: error: 'points' was not declared in this scope; did you mean 'printf'? 107 | Vector2f pmin = points[0]; | ^~~~~~ | printf In file included from /usr/include/SFML/Graphics/Font.hpp:34, from /usr/include/SFML/Graphics.hpp:36: /usr/include/SFML/Graphics/Texture.hpp: At global scope: /usr/include/SFML/Graphics/Texture.hpp:114:33: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Texture.hpp:114:49: error: expected unqualified-id before '&' token 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^ /usr/include/SFML/Graphics/Texture.hpp:114:49: error: expected ')' before '&' token 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ~ ^ | ) /usr/include/SFML/Graphics/Texture.hpp:114:49: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Texture.hpp:114:49: error: expected ';' at end of member declaration 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^ | ; /usr/include/SFML/Graphics/Texture.hpp:114:51: error: 'filename' does not name a type 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^~~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:137:24: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Texture.hpp:137:40: error: expected unqualified-id before '&' token 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^ /usr/include/SFML/Graphics/Texture.hpp:137:40: error: expected ')' before '&' token 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ~ ^ | ) /usr/include/SFML/Graphics/Texture.hpp:137:40: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Texture.hpp:137:40: error: expected ';' at end of member declaration 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^ | ; /usr/include/SFML/Graphics/Texture.hpp:137:5: error: 'sf::Texture::Texture(...)' cannot be overloaded with 'sf::Texture::Texture(...)' 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:114:14: note: previous declaration 'sf::Texture::Texture(...)' 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:137:42: error: 'filename' does not name a type 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^~~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:304:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Texture.hpp:304:64: error: expected unqualified-id before '&' token 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^ /usr/include/SFML/Graphics/Texture.hpp:304:64: error: expected ')' before '&' token 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ~ ^ | ) /usr/include/SFML/Graphics/Texture.hpp:304:64: error: expected ';' at end of member declaration 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^ | ; /usr/include/SFML/Graphics/Texture.hpp:304:66: error: 'filename' does not name a type 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^~~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:304:119: error: expected unqualified-id before ')' token 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^ /usr/include/SFML/Graphics/Font.hpp:103:30: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 103 | explicit Font(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Font.hpp:103:46: error: expected unqualified-id before '&' token 103 | explicit Font(const std::filesystem::path& filename); | ^ /usr/include/SFML/Graphics/Font.hpp:103:46: error: expected ')' before '&' token 103 | explicit Font(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Graphics/Font.hpp:103:46: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Font.hpp:103:46: error: expected ';' at end of member declaration 103 | explicit Font(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Graphics/Font.hpp:103:48: error: 'filename' does not name a type 103 | explicit Font(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/Graphics/Font.hpp:168:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Font.hpp:168:64: error: expected unqualified-id before '&' token 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^ /usr/include/SFML/Graphics/Font.hpp:168:64: error: expected ')' before '&' token 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Graphics/Font.hpp:168:64: error: expected ';' at end of member declaration 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Graphics/Font.hpp:168:66: error: 'filename' does not name a type 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^~~~~~~~ In file included from /usr/include/SFML/Graphics.hpp:38: /usr/include/SFML/Graphics/Image.hpp:103:31: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 103 | explicit Image(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Image.hpp:103:47: error: expected unqualified-id before '&' token 103 | explicit Image(const std::filesystem::path& filename); | ^ /usr/include/SFML/Graphics/Image.hpp:103:47: error: expected ')' before '&' token 103 | explicit Image(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Graphics/Image.hpp:103:47: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Image.hpp:103:47: error: expected ';' at end of member declaration 103 | explicit Image(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Graphics/Image.hpp:103:49: error: 'filename' does not name a type 103 | explicit Image(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/Graphics/Image.hpp:175:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Image.hpp:175:64: error: expected unqualified-id before '&' token 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^ /usr/include/SFML/Graphics/Image.hpp:175:64: error: expected ')' before '&' token 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Graphics/Image.hpp:175:64: error: expected ';' at end of member declaration 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Graphics/Image.hpp:175:66: error: 'filename' does not name a type 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/Graphics/Image.hpp:227:46: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Image.hpp:227:62: error: expected unqualified-id before '&' token 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^ /usr/include/SFML/Graphics/Image.hpp:227:62: error: expected ')' before '&' token 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ~ ^ | ) /usr/include/SFML/Graphics/Image.hpp:227:62: error: expected ';' at end of member declaration 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^ | ; /usr/include/SFML/Graphics/Image.hpp:227:64: error: 'filename' does not name a type 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^~~~~~~~ /usr/include/SFML/Graphics/Image.hpp:245:24: error: 'optional' in namespace 'std' does not name a template type 245 | [[nodiscard]] std::optional> saveToMemory(std::string_view format) const; | ^~~~~~~~ /usr/include/SFML/Graphics/Image.hpp:245:19: note: 'std::optional' is only available from C++17 onwards 245 | [[nodiscard]] std::optional> saveToMemory(std::string_view format) const; | ^~~ In file included from /usr/include/SFML/Graphics.hpp:46: /usr/include/SFML/Graphics/Shader.hpp:147:23: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 147 | Shader(const std::filesystem::path& filename, Type type); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:147:39: error: expected unqualified-id before '&' token 147 | Shader(const std::filesystem::path& filename, Type type); | ^ /usr/include/SFML/Graphics/Shader.hpp:147:39: error: expected ')' before '&' token 147 | Shader(const std::filesystem::path& filename, Type type); | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:147:39: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Shader.hpp:147:39: error: expected ';' at end of member declaration 147 | Shader(const std::filesystem::path& filename, Type type); | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:147:41: error: 'filename' does not name a type 147 | Shader(const std::filesystem::path& filename, Type type); | ^~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:168:23: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:168:39: error: expected unqualified-id before '&' token 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^ /usr/include/SFML/Graphics/Shader.hpp:168:39: error: expected ')' before '&' token 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:168:39: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Shader.hpp:168:39: error: expected ';' at end of member declaration 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:168:5: error: 'sf::Shader::Shader(...)' cannot be overloaded with 'sf::Shader::Shader(...)' 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^~~~~~ /usr/include/SFML/Graphics/Shader.hpp:147:5: note: previous declaration 'sf::Shader::Shader(...)' 147 | Shader(const std::filesystem::path& filename, Type type); | ^~~~~~ /usr/include/SFML/Graphics/Shader.hpp:168:41: error: 'vertexShaderFilename' does not name a type 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:190:23: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:190:39: error: expected unqualified-id before '&' token 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^ /usr/include/SFML/Graphics/Shader.hpp:190:39: error: expected ')' before '&' token 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:190:39: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Shader.hpp:190:39: error: expected ';' at end of member declaration 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:190:5: error: 'sf::Shader::Shader(...)' cannot be overloaded with 'sf::Shader::Shader(...)' 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^~~~~~ /usr/include/SFML/Graphics/Shader.hpp:147:5: note: previous declaration 'sf::Shader::Shader(...)' 147 | Shader(const std::filesystem::path& filename, Type type); | ^~~~~~ /usr/include/SFML/Graphics/Shader.hpp:190:41: error: 'vertexShaderFilename' does not name a type 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:212:28: error: expected ')' before 'shader' 212 | Shader(std::string_view shader, Type type); | ~ ^~~~~~~ | ) /usr/include/SFML/Graphics/Shader.hpp:233:28: error: expected ')' before 'vertexShader' 233 | Shader(std::string_view vertexShader, std::string_view fragmentShader); | ~ ^~~~~~~~~~~~~ | ) /usr/include/SFML/Graphics/Shader.hpp:255:28: error: expected ')' before 'vertexShader' 255 | Shader(std::string_view vertexShader, std::string_view geometryShader, std::string_view fragmentShader); | ~ ^~~~~~~~~~~~~ | ) /usr/include/SFML/Graphics/Shader.hpp:339:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:339:64: error: expected unqualified-id before '&' token 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^ /usr/include/SFML/Graphics/Shader.hpp:339:64: error: expected ')' before '&' token 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:339:64: error: expected ';' at end of member declaration 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:339:66: error: 'filename' does not name a type 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:360:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:360:64: error: expected unqualified-id before '&' token 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^ /usr/include/SFML/Graphics/Shader.hpp:360:64: error: expected ')' before '&' token 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:360:64: error: expected ';' at end of member declaration 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:360:24: error: 'bool sf::Shader::loadFromFile(...) &' cannot be overloaded with 'bool sf::Shader::loadFromFile(...) &' 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:339:24: note: previous declaration 'bool sf::Shader::loadFromFile(...) &' 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:360:66: error: 'vertexShaderFilename' does not name a type 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:383:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:383:64: error: expected unqualified-id before '&' token 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^ /usr/include/SFML/Graphics/Shader.hpp:383:64: error: expected ')' before '&' token 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:383:64: error: expected ';' at end of member declaration 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:383:24: error: 'bool sf::Shader::loadFromFile(...) &' cannot be overloaded with 'bool sf::Shader::loadFromFile(...) &' 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:339:24: note: previous declaration 'bool sf::Shader::loadFromFile(...) &' 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:383:66: error: 'vertexShaderFilename' does not name a type 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:405:44: error: 'std::string_view' has not been declared 405 | [[nodiscard]] bool loadFromMemory(std::string_view shader, Type type); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:426:44: error: 'std::string_view' has not been declared 426 | [[nodiscard]] bool loadFromMemory(std::string_view vertexShader, std::string_view fragmentShader); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:426:75: error: 'std::string_view' has not been declared 426 | [[nodiscard]] bool loadFromMemory(std::string_view vertexShader, std::string_view fragmentShader); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:448:44: error: 'std::string_view' has not been declared 448 | [[nodiscard]] bool loadFromMemory(std::string_view vertexShader, | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:449:44: error: 'std::string_view' has not been declared 449 | std::string_view geometryShader, | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:450:44: error: 'std::string_view' has not been declared 450 | std::string_view fragmentShader); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:861:37: error: 'std::string_view' has not been declared 861 | [[nodiscard]] bool compile(std::string_view vertexShaderCode, | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:862:37: error: 'std::string_view' has not been declared 862 | std::string_view geometryShaderCode, | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:863:37: error: 'std::string_view' has not been declared 863 | std::string_view fragmentShaderCode); | ^~~~~~~~~~~ make[2]: *** [Makefile:566: course_render.o] Error 1 make[2]: Leaving directory '/usr/src/RPM/BUILD/etr-0.8.4/src' make[2]: Entering directory '/usr/src/RPM/BUILD/etr-0.8.4/src' x86_64-alt-linux-g++ -DHAVE_CONFIG_H -I. -I.. -DETR_DATA_DIR=\"/usr/share\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -std=c++14 -c -o font.o font.cpp In file included from /usr/include/SFML/System.hpp:34, from bh.h:30, from font.h:22, from font.cpp:23: /usr/include/SFML/System/Clock.hpp:78:20: error: 'ratio_less_equal_v' is not a member of 'std'; did you mean 'ratio_less_equal'? 78 | static_assert(std::ratio_less_equal_v, | ^~~~~~~~~~~~~~~~~~ | ratio_less_equal /usr/include/SFML/System/Clock.hpp:78:56: error: expected primary-expression before ',' token 78 | static_assert(std::ratio_less_equal_v, | ^ /usr/include/SFML/System/Clock.hpp:78:68: error: expected primary-expression before '>' token 78 | static_assert(std::ratio_less_equal_v, | ^ /usr/include/SFML/System/Clock.hpp:78:69: error: expected primary-expression before ',' token 78 | static_assert(std::ratio_less_equal_v, | ^ /usr/include/SFML/System/Clock.hpp:78:69: error: expected ')' before ',' token 78 | static_assert(std::ratio_less_equal_v, | ~ ^ | ) In file included from /usr/include/SFML/System/FileInputStream.hpp:34, from /usr/include/SFML/System.hpp:37: /usr/include/SFML/System/InputStream.hpp:66:32: error: 'optional' in namespace 'std' does not name a template type 66 | [[nodiscard]] virtual std::optional read(void* data, std::size_t size) = 0; | ^~~~~~~~ /usr/include/SFML/System/InputStream.hpp:66:27: note: 'std::optional' is only available from C++17 onwards 66 | [[nodiscard]] virtual std::optional read(void* data, std::size_t size) = 0; | ^~~ /usr/include/SFML/System/InputStream.hpp:76:32: error: 'optional' in namespace 'std' does not name a template type 76 | [[nodiscard]] virtual std::optional seek(std::size_t position) = 0; | ^~~~~~~~ /usr/include/SFML/System/InputStream.hpp:76:27: note: 'std::optional' is only available from C++17 onwards 76 | [[nodiscard]] virtual std::optional seek(std::size_t position) = 0; | ^~~ /usr/include/SFML/System/InputStream.hpp:84:32: error: 'optional' in namespace 'std' does not name a template type 84 | [[nodiscard]] virtual std::optional tell() = 0; | ^~~~~~~~ /usr/include/SFML/System/InputStream.hpp:84:27: note: 'std::optional' is only available from C++17 onwards 84 | [[nodiscard]] virtual std::optional tell() = 0; | ^~~ /usr/include/SFML/System/InputStream.hpp:92:18: error: 'optional' in namespace 'std' does not name a template type 92 | virtual std::optional getSize() = 0; | ^~~~~~~~ /usr/include/SFML/System/InputStream.hpp:92:13: note: 'std::optional' is only available from C++17 onwards 92 | virtual std::optional getSize() = 0; | ^~~ /usr/include/SFML/System/FileInputStream.hpp:106:41: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 106 | explicit FileInputStream(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/System/FileInputStream.hpp:106:57: error: expected unqualified-id before '&' token 106 | explicit FileInputStream(const std::filesystem::path& filename); | ^ /usr/include/SFML/System/FileInputStream.hpp:106:57: error: expected ')' before '&' token 106 | explicit FileInputStream(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/System/FileInputStream.hpp:106:57: error: constructors may not be ref-qualified /usr/include/SFML/System/FileInputStream.hpp:106:57: error: expected ';' at end of member declaration 106 | explicit FileInputStream(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/System/FileInputStream.hpp:106:59: error: 'filename' does not name a type 106 | explicit FileInputStream(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:116:40: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/System/FileInputStream.hpp:116:56: error: expected unqualified-id before '&' token 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ^ /usr/include/SFML/System/FileInputStream.hpp:116:56: error: expected ')' before '&' token 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/System/FileInputStream.hpp:116:56: error: expected ';' at end of member declaration 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/System/FileInputStream.hpp:116:58: error: 'filename' does not name a type 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:130:24: error: 'optional' in namespace 'std' does not name a template type 130 | [[nodiscard]] std::optional read(void* data, std::size_t size) override; | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:130:19: note: 'std::optional' is only available from C++17 onwards 130 | [[nodiscard]] std::optional read(void* data, std::size_t size) override; | ^~~ /usr/include/SFML/System/FileInputStream.hpp:140:24: error: 'optional' in namespace 'std' does not name a template type 140 | [[nodiscard]] std::optional seek(std::size_t position) override; | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:140:19: note: 'std::optional' is only available from C++17 onwards 140 | [[nodiscard]] std::optional seek(std::size_t position) override; | ^~~ /usr/include/SFML/System/FileInputStream.hpp:148:24: error: 'optional' in namespace 'std' does not name a template type 148 | [[nodiscard]] std::optional tell() override; | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:148:19: note: 'std::optional' is only available from C++17 onwards 148 | [[nodiscard]] std::optional tell() override; | ^~~ /usr/include/SFML/System/FileInputStream.hpp:156:10: error: 'optional' in namespace 'std' does not name a template type 156 | std::optional getSize() override; | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:156:5: note: 'std::optional' is only available from C++17 onwards 156 | std::optional getSize() override; | ^~~ In file included from /usr/include/SFML/System.hpp:39: /usr/include/SFML/System/MemoryInputStream.hpp:70:24: error: 'optional' in namespace 'std' does not name a template type 70 | [[nodiscard]] std::optional read(void* data, std::size_t size) override; | ^~~~~~~~ /usr/include/SFML/System/MemoryInputStream.hpp:70:19: note: 'std::optional' is only available from C++17 onwards 70 | [[nodiscard]] std::optional read(void* data, std::size_t size) override; | ^~~ /usr/include/SFML/System/MemoryInputStream.hpp:80:24: error: 'optional' in namespace 'std' does not name a template type 80 | [[nodiscard]] std::optional seek(std::size_t position) override; | ^~~~~~~~ /usr/include/SFML/System/MemoryInputStream.hpp:80:19: note: 'std::optional' is only available from C++17 onwards 80 | [[nodiscard]] std::optional seek(std::size_t position) override; | ^~~ /usr/include/SFML/System/MemoryInputStream.hpp:88:24: error: 'optional' in namespace 'std' does not name a template type 88 | [[nodiscard]] std::optional tell() override; | ^~~~~~~~ /usr/include/SFML/System/MemoryInputStream.hpp:88:19: note: 'std::optional' is only available from C++17 onwards 88 | [[nodiscard]] std::optional tell() override; | ^~~ /usr/include/SFML/System/MemoryInputStream.hpp:96:10: error: 'optional' in namespace 'std' does not name a template type 96 | std::optional getSize() override; | ^~~~~~~~ /usr/include/SFML/System/MemoryInputStream.hpp:96:5: note: 'std::optional' is only available from C++17 onwards 96 | std::optional getSize() override; | ^~~ /usr/include/SFML/System/MemoryInputStream.hpp:102:16: error: 'byte' in namespace 'std' does not name a type 102 | const std::byte* m_data{}; //!< Pointer to the data in memory | ^~~~ /usr/include/SFML/System/MemoryInputStream.hpp:102:11: note: 'std::byte' is only available from C++17 onwards 102 | const std::byte* m_data{}; //!< Pointer to the data in memory | ^~~ In file included from /usr/include/SFML/System/Utf.hpp:742, from /usr/include/SFML/System/String.hpp:32, from /usr/include/SFML/System.hpp:41: /usr/include/SFML/System/Utf.inl: In static member function 'static Out sf::Utf<8>::encode(char32_t, Out, uint8_t)': /usr/include/SFML/System/Utf.inl:137:25: error: 'byte' is not a member of 'std' 137 | std::array bytes{}; | ^~~~ /usr/include/SFML/System/Utf.inl:137:25: note: 'std::byte' is only available from C++17 onwards /usr/include/SFML/System/Utf.inl:137:25: error: 'byte' is not a member of 'std' /usr/include/SFML/System/Utf.inl:137:25: note: 'std::byte' is only available from C++17 onwards /usr/include/SFML/System/Utf.inl:137:32: error: template argument 1 is invalid 137 | std::array bytes{}; | ^ /usr/include/SFML/System/Utf.inl:142:26: error: invalid types 'int[int]' for array subscript 142 | case 4: bytes[3] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^ /usr/include/SFML/System/Utf.inl:142:49: error: 'byte' in namespace 'std' does not name a type 142 | case 4: bytes[3] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~~ /usr/include/SFML/System/Utf.inl:142:44: note: 'std::byte' is only available from C++17 onwards 142 | case 4: bytes[3] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~ /usr/include/SFML/System/Utf.inl:143:26: error: invalid types 'int[int]' for array subscript 143 | case 3: bytes[2] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^ /usr/include/SFML/System/Utf.inl:143:49: error: 'byte' in namespace 'std' does not name a type 143 | case 3: bytes[2] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~~ /usr/include/SFML/System/Utf.inl:143:44: note: 'std::byte' is only available from C++17 onwards 143 | case 3: bytes[2] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~ /usr/include/SFML/System/Utf.inl:144:26: error: invalid types 'int[int]' for array subscript 144 | case 2: bytes[1] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^ /usr/include/SFML/System/Utf.inl:144:49: error: 'byte' in namespace 'std' does not name a type 144 | case 2: bytes[1] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~~ /usr/include/SFML/System/Utf.inl:144:44: note: 'std::byte' is only available from C++17 onwards 144 | case 2: bytes[1] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~ /usr/include/SFML/System/Utf.inl:145:26: error: invalid types 'int[int]' for array subscript 145 | case 1: bytes[0] = static_cast (input | firstBytes[bytestoWrite]); | ^ /usr/include/SFML/System/Utf.inl:145:49: error: 'byte' in namespace 'std' does not name a type 145 | case 1: bytes[0] = static_cast (input | firstBytes[bytestoWrite]); | ^~~~ /usr/include/SFML/System/Utf.inl:145:44: note: 'std::byte' is only available from C++17 onwards 145 | case 1: bytes[0] = static_cast (input | firstBytes[bytestoWrite]); | ^~~ /usr/include/SFML/System/Utf.inl:150:35: error: request for member 'data' in 'bytes', which is of non-class type 'int' 150 | output = priv::copy(bytes.data(), bytes.data() + bytestoWrite, output); | ^~~~ /usr/include/SFML/System/Utf.inl:150:49: error: request for member 'data' in 'bytes', which is of non-class type 'int' 150 | output = priv::copy(bytes.data(), bytes.data() + bytestoWrite, output); | ^~~~ In file included from /usr/include/SFML/Window.hpp:32, from bh.h:31: /usr/include/SFML/Window/Context.hpp: At global scope: /usr/include/SFML/Window/Context.hpp:130:57: error: 'std::string_view' has not been declared 130 | [[nodiscard]] static bool isExtensionAvailable(std::string_view name); | ^~~~~~~~~~~ In file included from /usr/include/SFML/Window.hpp:34: /usr/include/SFML/Window/Cursor.hpp:226:31: error: 'optional' in namespace 'std' does not name a template type 226 | [[nodiscard]] static std::optional createFromPixels(const std::uint8_t* pixels, Vector2u size, Vector2u hotspot); | ^~~~~~~~ /usr/include/SFML/Window/Cursor.hpp:226:26: note: 'std::optional' is only available from C++17 onwards 226 | [[nodiscard]] static std::optional createFromPixels(const std::uint8_t* pixels, Vector2u size, Vector2u hotspot); | ^~~ /usr/include/SFML/Window/Cursor.hpp:242:31: error: 'optional' in namespace 'std' does not name a template type 242 | [[nodiscard]] static std::optional createFromSystem(Type type); | ^~~~~~~~ /usr/include/SFML/Window/Cursor.hpp:242:26: note: 'std::optional' is only available from C++17 onwards 242 | [[nodiscard]] static std::optional createFromSystem(Type type); | ^~~ In file included from /usr/include/SFML/Window.hpp:35: /usr/include/SFML/Window/Event.hpp:345:10: error: 'variant' in namespace 'std' does not name a template type 345 | std::variant*) | ^~~~~~~ /usr/include/SFML/Window/Event.hpp:374:65: note: 'std::variant' is only available from C++17 onwards 374 | [[nodiscard]] static constexpr bool isInParameterPack(const std::variant*) | ^~~ /usr/include/SFML/Window/Event.hpp:374:77: error: expected ',' or '...' before '<' token 374 | [[nodiscard]] static constexpr bool isInParameterPack(const std::variant*) | ^ /usr/include/SFML/Window/Event.hpp:380:76: error: 'm_data' was not declared in this scope 380 | static constexpr bool isEventSubtype = isInParameterPack(decltype (&m_data)(nullptr)); | ^~~~~~ /usr/include/SFML/Window/Event.hpp: In static member function 'static constexpr bool sf::Event::isInParameterPack(int)': /usr/include/SFML/Window/Event.hpp:376:22: error: 'is_same_v' is not a member of 'std'; did you mean 'is_same'? 376 | return (std::is_same_v || ...); | ^~~~~~~~~ | is_same /usr/include/SFML/Window/Event.hpp:376:33: error: expected primary-expression before ',' token 376 | return (std::is_same_v || ...); | ^ /usr/include/SFML/Window/Event.hpp:376:37: error: expected primary-expression before '>' token 376 | return (std::is_same_v || ...); | ^ /usr/include/SFML/Window/Event.hpp:376:39: error: expected primary-expression before '||' token 376 | return (std::is_same_v || ...); | ^~ /usr/include/SFML/Window/Event.hpp:376:42: error: operand of fold expression has no unexpanded parameter packs 376 | return (std::is_same_v || ...); | ^~~ In file included from /usr/include/SFML/Window/Event.hpp:385: /usr/include/SFML/Window/Event.inl: In constructor 'sf::Event::Event(const TEventSubtype&)': /usr/include/SFML/Window/Event.inl:47:9: error: 'm_data' was not declared in this scope 47 | m_data = eventSubtype; | ^~~~~~ /usr/include/SFML/Window/Event.inl: In member function 'bool sf::Event::is() const': /usr/include/SFML/Window/Event.inl:57:21: error: 'holds_alternative' is not a member of 'std' 57 | return std::holds_alternative(m_data); | ^~~~~~~~~~~~~~~~~ /usr/include/SFML/Window/Event.inl:57:21: note: 'std::holds_alternative' is only available from C++17 onwards /usr/include/SFML/Window/Event.inl:57:52: error: expected primary-expression before '>' token 57 | return std::holds_alternative(m_data); | ^ /usr/include/SFML/Window/Event.inl:57:54: error: 'm_data' was not declared in this scope 57 | return std::holds_alternative(m_data); | ^~~~~~ /usr/include/SFML/Window/Event.inl: In member function 'const TEventSubtype* sf::Event::getIf() const': /usr/include/SFML/Window/Event.inl:67:21: error: 'get_if' is not a member of 'std' 67 | return std::get_if(&m_data); | ^~~~~~ /usr/include/SFML/Window/Event.inl:67:41: error: expected primary-expression before '>' token 67 | return std::get_if(&m_data); | ^ /usr/include/SFML/Window/Event.inl:67:44: error: 'm_data' was not declared in this scope 67 | return std::get_if(&m_data); | ^~~~~~ /usr/include/SFML/Window/Event.inl: In member function 'decltype(auto) sf::Event::visit(T&&) const': /usr/include/SFML/Window/Event.inl:75:17: error: 'visit' is not a member of 'std' 75 | return std::visit(std::forward(visitor), m_data); | ^~~~~ /usr/include/SFML/Window/Event.inl:75:17: note: 'std::visit' is only available from C++17 onwards /usr/include/SFML/Window/Event.inl:75:49: error: 'm_data' was not declared in this scope 75 | return std::visit(std::forward(visitor), m_data); | ^~~~~~ In file included from /usr/include/SFML/Window/Window.hpp:32, from /usr/include/SFML/Window.hpp:42: /usr/include/SFML/Window/WindowBase.hpp: At global scope: /usr/include/SFML/Window/WindowBase.hpp:226:24: error: 'optional' in namespace 'std' does not name a template type 226 | [[nodiscard]] std::optional pollEvent(); | ^~~~~~~~ /usr/include/SFML/Window/WindowBase.hpp:226:19: note: 'std::optional' is only available from C++17 onwards 226 | [[nodiscard]] std::optional pollEvent(); | ^~~ /usr/include/SFML/Window/WindowBase.hpp:252:24: error: 'optional' in namespace 'std' does not name a template type 252 | [[nodiscard]] std::optional waitEvent(Time timeout = Time::Zero); | ^~~~~~~~ /usr/include/SFML/Window/WindowBase.hpp:252:19: note: 'std::optional' is only available from C++17 onwards 252 | [[nodiscard]] std::optional waitEvent(Time timeout = Time::Zero); | ^~~ /usr/include/SFML/Window/WindowBase.hpp:387:36: error: 'optional' in namespace 'std' does not name a template type 387 | void setMinimumSize(const std::optional& minimumSize); | ^~~~~~~~ /usr/include/SFML/Window/WindowBase.hpp:387:31: note: 'std::optional' is only available from C++17 onwards 387 | void setMinimumSize(const std::optional& minimumSize); | ^~~ /usr/include/SFML/Window/WindowBase.hpp:387:44: error: expected ',' or '...' before '<' token 387 | void setMinimumSize(const std::optional& minimumSize); | ^ /usr/include/SFML/Window/WindowBase.hpp:397:36: error: 'optional' in namespace 'std' does not name a template type 397 | void setMaximumSize(const std::optional& maximumSize); | ^~~~~~~~ /usr/include/SFML/Window/WindowBase.hpp:397:31: note: 'std::optional' is only available from C++17 onwards 397 | void setMaximumSize(const std::optional& maximumSize); | ^~~ /usr/include/SFML/Window/WindowBase.hpp:397:44: error: expected ',' or '...' before '<' token 397 | void setMaximumSize(const std::optional& maximumSize); | ^ In file included from /usr/include/SFML/Window/WindowBase.hpp:617: /usr/include/SFML/Window/WindowBase.inl:47:41: error: expected constructor, destructor, or type conversion before ';' token 47 | OverloadSet(Ts...) -> OverloadSet; | ^ /usr/include/SFML/Window/WindowBase.inl: In member function 'void sf::WindowBase::handleEvents(Ts&& ...)': /usr/include/SFML/Window/WindowBase.inl:69:23: error: missing template arguments before 'overloadSet' 69 | priv::OverloadSet overloadSet{std::forward(handlers)..., [](const priv::DelayOverloadResolution&) { /* ignore */ }}; | ^~~~~~~~~~~ /usr/include/SFML/Window/WindowBase.inl:71:32: error: qualified-id in declaration before 'event' 71 | while (const std::optional event = pollEvent()) | ^~~~~ /usr/include/SFML/Window/WindowBase.inl:72:9: error: 'event' was not declared in this scope; did you mean 'Event'? 72 | event->visit(overloadSet); | ^~~~~ | Event /usr/include/SFML/Window/WindowBase.inl:72:22: error: 'overloadSet' was not declared in this scope 72 | event->visit(overloadSet); | ^~~~~~~~~~~ In file included from /usr/include/SFML/Graphics/Color.hpp:229, from /usr/include/SFML/Graphics/Shape.hpp:32, from /usr/include/SFML/Graphics/CircleShape.hpp:32, from /usr/include/SFML/Graphics.hpp:32, from bh.h:32: /usr/include/SFML/Graphics/Color.inl: In function 'constexpr sf::Color sf::operator+(Color, Color)': /usr/include/SFML/Graphics/Color.inl:77:16: error: variable 'clampedAdd' of non-literal type 'const sf::operator+(Color, Color)::' in 'constexpr' function only available with '-std=c++2b' or '-std=gnu++2b' 77 | const auto clampedAdd = [](std::uint8_t lhs, std::uint8_t rhs) | ^~~~~~~~~~ /usr/include/SFML/Graphics/Color.inl:77:30: note: 'sf::operator+(Color, Color)::' is not literal because: 77 | const auto clampedAdd = [](std::uint8_t lhs, std::uint8_t rhs) | ^ cc1plus: note: 'sf::operator+(Color, Color)::' is a closure type, which is only literal in C++17 and later /usr/include/SFML/Graphics/Color.inl: In function 'constexpr sf::Color sf::operator-(Color, Color)': /usr/include/SFML/Graphics/Color.inl:93:16: error: variable 'clampedSub' of non-literal type 'const sf::operator-(Color, Color)::' in 'constexpr' function only available with '-std=c++2b' or '-std=gnu++2b' 93 | const auto clampedSub = [](std::uint8_t lhs, std::uint8_t rhs) | ^~~~~~~~~~ /usr/include/SFML/Graphics/Color.inl:93:30: note: 'sf::operator-(Color, Color)::' is not literal because: 93 | const auto clampedSub = [](std::uint8_t lhs, std::uint8_t rhs) | ^ cc1plus: note: 'sf::operator-(Color, Color)::' is a closure type, which is only literal in C++17 and later /usr/include/SFML/Graphics/Color.inl: In function 'constexpr sf::Color sf::operator*(Color, Color)': /usr/include/SFML/Graphics/Color.inl:109:16: error: variable 'scaledMul' of non-literal type 'const sf::operator*(Color, Color)::' in 'constexpr' function only available with '-std=c++2b' or '-std=gnu++2b' 109 | const auto scaledMul = [](std::uint8_t lhs, std::uint8_t rhs) | ^~~~~~~~~ /usr/include/SFML/Graphics/Color.inl:109:29: note: 'sf::operator*(Color, Color)::' is not literal because: 109 | const auto scaledMul = [](std::uint8_t lhs, std::uint8_t rhs) | ^ cc1plus: note: 'sf::operator*(Color, Color)::' is a closure type, which is only literal in C++17 and later In file included from /usr/include/SFML/Graphics/Shape.hpp:35: /usr/include/SFML/Graphics/Rect.hpp: At global scope: /usr/include/SFML/Graphics/Rect.hpp:98:34: error: 'optional' in namespace 'std' does not name a template type 98 | [[nodiscard]] constexpr std::optional> findIntersection(const Rect& rectangle) const; | ^~~~~~~~ /usr/include/SFML/Graphics/Rect.hpp:98:29: note: 'std::optional' is only available from C++17 onwards 98 | [[nodiscard]] constexpr std::optional> findIntersection(const Rect& rectangle) const; | ^~~ In file included from /usr/include/SFML/Graphics/Rect.hpp:151: /usr/include/SFML/Graphics/Rect.inl:71:16: error: 'optional' in namespace 'std' does not name a template type 71 | constexpr std::optional> Rect::findIntersection(const Rect& rectangle) const | ^~~~~~~~ /usr/include/SFML/Graphics/Rect.inl:71:11: note: 'std::optional' is only available from C++17 onwards 71 | constexpr std::optional> Rect::findIntersection(const Rect& rectangle) const | ^~~ In file included from /usr/include/SFML/Graphics/Transform.hpp:352, from /usr/include/SFML/Graphics/RenderStates.hpp:35, from /usr/include/SFML/Graphics/Shape.hpp:36: /usr/include/SFML/Graphics/Transform.inl: In member function 'constexpr sf::FloatRect sf::Transform::transformRect(const sf::FloatRect&) const': /usr/include/SFML/Graphics/Transform.inl:101:11: error: invalid use of template-name 'std::array' without an argument list 101 | const std::array points = {transformPoint(rectangle.position), | ^~~ /usr/include/SFML/Graphics/Transform.inl:101:11: note: class template argument deduction is only available with '-std=c++17' or '-std=gnu++17' In file included from /usr/include/c++/14/bits/stl_algobase.h:64, from /usr/include/c++/14/string:51, from bh.h:27: /usr/include/c++/14/bits/stl_pair.h:99:12: note: 'template struct std::array' declared here 99 | struct array; | ^~~~~ /usr/include/SFML/Graphics/Transform.inl:107:21: error: 'points' was not declared in this scope; did you mean 'printf'? 107 | Vector2f pmin = points[0]; | ^~~~~~ | printf In file included from /usr/include/SFML/Graphics/Font.hpp:34, from /usr/include/SFML/Graphics.hpp:36: /usr/include/SFML/Graphics/Texture.hpp: At global scope: /usr/include/SFML/Graphics/Texture.hpp:114:33: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Texture.hpp:114:49: error: expected unqualified-id before '&' token 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^ /usr/include/SFML/Graphics/Texture.hpp:114:49: error: expected ')' before '&' token 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ~ ^ | ) /usr/include/SFML/Graphics/Texture.hpp:114:49: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Texture.hpp:114:49: error: expected ';' at end of member declaration 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^ | ; /usr/include/SFML/Graphics/Texture.hpp:114:51: error: 'filename' does not name a type 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^~~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:137:24: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Texture.hpp:137:40: error: expected unqualified-id before '&' token 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^ /usr/include/SFML/Graphics/Texture.hpp:137:40: error: expected ')' before '&' token 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ~ ^ | ) /usr/include/SFML/Graphics/Texture.hpp:137:40: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Texture.hpp:137:40: error: expected ';' at end of member declaration 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^ | ; /usr/include/SFML/Graphics/Texture.hpp:137:5: error: 'sf::Texture::Texture(...)' cannot be overloaded with 'sf::Texture::Texture(...)' 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:114:14: note: previous declaration 'sf::Texture::Texture(...)' 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:137:42: error: 'filename' does not name a type 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^~~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:304:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Texture.hpp:304:64: error: expected unqualified-id before '&' token 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^ /usr/include/SFML/Graphics/Texture.hpp:304:64: error: expected ')' before '&' token 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ~ ^ | ) /usr/include/SFML/Graphics/Texture.hpp:304:64: error: expected ';' at end of member declaration 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^ | ; /usr/include/SFML/Graphics/Texture.hpp:304:66: error: 'filename' does not name a type 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^~~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:304:119: error: expected unqualified-id before ')' token 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^ /usr/include/SFML/Graphics/Font.hpp:103:30: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 103 | explicit Font(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Font.hpp:103:46: error: expected unqualified-id before '&' token 103 | explicit Font(const std::filesystem::path& filename); | ^ /usr/include/SFML/Graphics/Font.hpp:103:46: error: expected ')' before '&' token 103 | explicit Font(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Graphics/Font.hpp:103:46: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Font.hpp:103:46: error: expected ';' at end of member declaration 103 | explicit Font(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Graphics/Font.hpp:103:48: error: 'filename' does not name a type 103 | explicit Font(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/Graphics/Font.hpp:168:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Font.hpp:168:64: error: expected unqualified-id before '&' token 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^ /usr/include/SFML/Graphics/Font.hpp:168:64: error: expected ')' before '&' token 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Graphics/Font.hpp:168:64: error: expected ';' at end of member declaration 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Graphics/Font.hpp:168:66: error: 'filename' does not name a type 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^~~~~~~~ In file included from /usr/include/SFML/Graphics.hpp:38: /usr/include/SFML/Graphics/Image.hpp:103:31: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 103 | explicit Image(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Image.hpp:103:47: error: expected unqualified-id before '&' token 103 | explicit Image(const std::filesystem::path& filename); | ^ /usr/include/SFML/Graphics/Image.hpp:103:47: error: expected ')' before '&' token 103 | explicit Image(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Graphics/Image.hpp:103:47: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Image.hpp:103:47: error: expected ';' at end of member declaration 103 | explicit Image(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Graphics/Image.hpp:103:49: error: 'filename' does not name a type 103 | explicit Image(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/Graphics/Image.hpp:175:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Image.hpp:175:64: error: expected unqualified-id before '&' token 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^ /usr/include/SFML/Graphics/Image.hpp:175:64: error: expected ')' before '&' token 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Graphics/Image.hpp:175:64: error: expected ';' at end of member declaration 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Graphics/Image.hpp:175:66: error: 'filename' does not name a type 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/Graphics/Image.hpp:227:46: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Image.hpp:227:62: error: expected unqualified-id before '&' token 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^ /usr/include/SFML/Graphics/Image.hpp:227:62: error: expected ')' before '&' token 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ~ ^ | ) /usr/include/SFML/Graphics/Image.hpp:227:62: error: expected ';' at end of member declaration 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^ | ; /usr/include/SFML/Graphics/Image.hpp:227:64: error: 'filename' does not name a type 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^~~~~~~~ /usr/include/SFML/Graphics/Image.hpp:245:24: error: 'optional' in namespace 'std' does not name a template type 245 | [[nodiscard]] std::optional> saveToMemory(std::string_view format) const; | ^~~~~~~~ /usr/include/SFML/Graphics/Image.hpp:245:19: note: 'std::optional' is only available from C++17 onwards 245 | [[nodiscard]] std::optional> saveToMemory(std::string_view format) const; | ^~~ In file included from /usr/include/SFML/Graphics.hpp:46: /usr/include/SFML/Graphics/Shader.hpp:147:23: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 147 | Shader(const std::filesystem::path& filename, Type type); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:147:39: error: expected unqualified-id before '&' token 147 | Shader(const std::filesystem::path& filename, Type type); | ^ /usr/include/SFML/Graphics/Shader.hpp:147:39: error: expected ')' before '&' token 147 | Shader(const std::filesystem::path& filename, Type type); | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:147:39: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Shader.hpp:147:39: error: expected ';' at end of member declaration 147 | Shader(const std::filesystem::path& filename, Type type); | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:147:41: error: 'filename' does not name a type 147 | Shader(const std::filesystem::path& filename, Type type); | ^~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:168:23: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:168:39: error: expected unqualified-id before '&' token 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^ /usr/include/SFML/Graphics/Shader.hpp:168:39: error: expected ')' before '&' token 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:168:39: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Shader.hpp:168:39: error: expected ';' at end of member declaration 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:168:5: error: 'sf::Shader::Shader(...)' cannot be overloaded with 'sf::Shader::Shader(...)' 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^~~~~~ /usr/include/SFML/Graphics/Shader.hpp:147:5: note: previous declaration 'sf::Shader::Shader(...)' 147 | Shader(const std::filesystem::path& filename, Type type); | ^~~~~~ /usr/include/SFML/Graphics/Shader.hpp:168:41: error: 'vertexShaderFilename' does not name a type 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:190:23: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:190:39: error: expected unqualified-id before '&' token 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^ /usr/include/SFML/Graphics/Shader.hpp:190:39: error: expected ')' before '&' token 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:190:39: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Shader.hpp:190:39: error: expected ';' at end of member declaration 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:190:5: error: 'sf::Shader::Shader(...)' cannot be overloaded with 'sf::Shader::Shader(...)' 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^~~~~~ /usr/include/SFML/Graphics/Shader.hpp:147:5: note: previous declaration 'sf::Shader::Shader(...)' 147 | Shader(const std::filesystem::path& filename, Type type); | ^~~~~~ /usr/include/SFML/Graphics/Shader.hpp:190:41: error: 'vertexShaderFilename' does not name a type 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:212:28: error: expected ')' before 'shader' 212 | Shader(std::string_view shader, Type type); | ~ ^~~~~~~ | ) /usr/include/SFML/Graphics/Shader.hpp:233:28: error: expected ')' before 'vertexShader' 233 | Shader(std::string_view vertexShader, std::string_view fragmentShader); | ~ ^~~~~~~~~~~~~ | ) /usr/include/SFML/Graphics/Shader.hpp:255:28: error: expected ')' before 'vertexShader' 255 | Shader(std::string_view vertexShader, std::string_view geometryShader, std::string_view fragmentShader); | ~ ^~~~~~~~~~~~~ | ) /usr/include/SFML/Graphics/Shader.hpp:339:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:339:64: error: expected unqualified-id before '&' token 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^ /usr/include/SFML/Graphics/Shader.hpp:339:64: error: expected ')' before '&' token 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:339:64: error: expected ';' at end of member declaration 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:339:66: error: 'filename' does not name a type 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:360:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:360:64: error: expected unqualified-id before '&' token 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^ /usr/include/SFML/Graphics/Shader.hpp:360:64: error: expected ')' before '&' token 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:360:64: error: expected ';' at end of member declaration 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:360:24: error: 'bool sf::Shader::loadFromFile(...) &' cannot be overloaded with 'bool sf::Shader::loadFromFile(...) &' 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:339:24: note: previous declaration 'bool sf::Shader::loadFromFile(...) &' 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:360:66: error: 'vertexShaderFilename' does not name a type 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:383:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:383:64: error: expected unqualified-id before '&' token 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^ /usr/include/SFML/Graphics/Shader.hpp:383:64: error: expected ')' before '&' token 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:383:64: error: expected ';' at end of member declaration 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:383:24: error: 'bool sf::Shader::loadFromFile(...) &' cannot be overloaded with 'bool sf::Shader::loadFromFile(...) &' 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:339:24: note: previous declaration 'bool sf::Shader::loadFromFile(...) &' 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:383:66: error: 'vertexShaderFilename' does not name a type 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:405:44: error: 'std::string_view' has not been declared 405 | [[nodiscard]] bool loadFromMemory(std::string_view shader, Type type); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:426:44: error: 'std::string_view' has not been declared 426 | [[nodiscard]] bool loadFromMemory(std::string_view vertexShader, std::string_view fragmentShader); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:426:75: error: 'std::string_view' has not been declared 426 | [[nodiscard]] bool loadFromMemory(std::string_view vertexShader, std::string_view fragmentShader); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:448:44: error: 'std::string_view' has not been declared 448 | [[nodiscard]] bool loadFromMemory(std::string_view vertexShader, | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:449:44: error: 'std::string_view' has not been declared 449 | std::string_view geometryShader, | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:450:44: error: 'std::string_view' has not been declared 450 | std::string_view fragmentShader); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:861:37: error: 'std::string_view' has not been declared 861 | [[nodiscard]] bool compile(std::string_view vertexShaderCode, | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:862:37: error: 'std::string_view' has not been declared 862 | std::string_view geometryShaderCode, | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:863:37: error: 'std::string_view' has not been declared 863 | std::string_view fragmentShaderCode); | ^~~~~~~~~~~ In file included from font.cpp:26: winsys.h: In member function 'bool CWinsys::PollEvent(sf::Event&)': winsys.h:65:58: error: 'class sf::RenderWindow' has no member named 'pollEvent' 65 | bool PollEvent(sf::Event& event) { return window.pollEvent(event); } | ^~~~~~~~~ In file included from font.cpp:27: gui.h: At global scope: gui.h:62:22: warning: 'virtual void TWidget::Focussed()' was hidden [-Woverloaded-virtual=] 62 | virtual void Focussed() {} | ^~~~~~~~ gui.h:76:14: note: by 'void TLabel::Focussed(bool)' 76 | void Focussed(bool masterFocus); | ^~~~~~~~ font.cpp: In member function 'int CFont::LoadFont(const std::string&, const std::string&)': font.cpp:112:38: error: call of overloaded 'Font()' is ambiguous 112 | fonts.push_back(new sf::Font()); | ^ /usr/include/SFML/Graphics/Font.hpp:103:14: note: candidate: 'sf::Font::Font(...)' 103 | explicit Font(const std::filesystem::path& filename); | ^~~~ /usr/include/SFML/Graphics/Font.hpp:81:5: note: candidate: 'sf::Font::Font()' 81 | Font() = default; | ^~~~ font.cpp:113:28: error: 'class sf::Font' has no member named 'loadFromFile'; did you mean 'openFromFile'? 113 | if (!fonts.back()->loadFromFile(path)) { | ^~~~~~~~~~~~ | openFromFile font.cpp: In member function 'bool CFont::LoadFontlist()': font.cpp:129:46: error: call of overloaded 'Font()' is ambiguous 129 | fonts.push_back(new sf::Font()); // Insert an empty font, otherwise ETR will crash | ^ /usr/include/SFML/Graphics/Font.hpp:103:14: note: candidate: 'sf::Font::Font(...)' 103 | explicit Font(const std::filesystem::path& filename); | ^~~~ /usr/include/SFML/Graphics/Font.hpp:81:5: note: candidate: 'sf::Font::Font()' 81 | Font() = default; | ^~~~ font.cpp: In member function 'void CFont::DrawText(float, float, const sf::String&, std::size_t, unsigned int) const': font.cpp:198:47: error: no matching function for call to 'sf::Text::Text(const sf::String&, sf::Font&, unsigned int&)' 198 | sf::Text temp(text, *fonts[font], size); | ^ In file included from /usr/include/SFML/Graphics.hpp:50: /usr/include/SFML/Graphics/Text.hpp:87:5: note: candidate: 'sf::Text::Text(const sf::Font&, sf::String, unsigned int)' 87 | Text(const Font& font, String string = "", unsigned int characterSize = 30); | ^~~~ /usr/include/SFML/Graphics/Text.hpp:87:22: note: no known conversion for argument 1 from 'const sf::String' to 'const sf::Font&' 87 | Text(const Font& font, String string = "", unsigned int characterSize = 30); | ~~~~~~~~~~~~^~~~ /usr/include/SFML/Graphics/Text.hpp:56:25: note: candidate: 'sf::Text::Text(const sf::Text&)' 56 | class SFML_GRAPHICS_API Text : public Drawable, public Transformable | ^~~~ /usr/include/SFML/Graphics/Text.hpp:56:25: note: candidate expects 1 argument, 3 provided /usr/include/SFML/Graphics/Text.hpp:56:25: note: candidate: 'sf::Text::Text(sf::Text&&)' /usr/include/SFML/Graphics/Text.hpp:56:25: note: candidate expects 1 argument, 3 provided font.cpp:200:70: error: 'using sf::FloatRect = class sf::Rect' {aka 'class sf::Rect'} has no member named 'width' 200 | x = (Winsys.resolution.width - temp.getLocalBounds().width) / 2; | ^~~~~ font.cpp:201:25: error: no matching function for call to 'sf::Text::setPosition(float&, float&)' 201 | temp.setPosition(x, y); | ~~~~~~~~~~~~~~~~^~~~~~ In file included from /usr/include/SFML/Graphics/Shape.hpp:37: /usr/include/SFML/Graphics/Transformable.hpp:70:10: note: candidate: 'void sf::Transformable::setPosition(sf::Vector2f)' 70 | void setPosition(Vector2f position); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Transformable.hpp:70:10: note: candidate expects 1 argument, 2 provided font.cpp: In member function 'void CFont::GetTextSize(const sf::String&, float&, float&, std::size_t, unsigned int) const': font.cpp:221:47: error: no matching function for call to 'sf::Text::Text(const sf::String&, sf::Font&, unsigned int&)' 221 | sf::Text temp(text, *fonts[font], size); | ^ /usr/include/SFML/Graphics/Text.hpp:87:5: note: candidate: 'sf::Text::Text(const sf::Font&, sf::String, unsigned int)' 87 | Text(const Font& font, String string = "", unsigned int characterSize = 30); | ^~~~ /usr/include/SFML/Graphics/Text.hpp:87:22: note: no known conversion for argument 1 from 'const sf::String' to 'const sf::Font&' 87 | Text(const Font& font, String string = "", unsigned int characterSize = 30); | ~~~~~~~~~~~~^~~~ /usr/include/SFML/Graphics/Text.hpp:56:25: note: candidate: 'sf::Text::Text(const sf::Text&)' 56 | class SFML_GRAPHICS_API Text : public Drawable, public Transformable | ^~~~ /usr/include/SFML/Graphics/Text.hpp:56:25: note: candidate expects 1 argument, 3 provided /usr/include/SFML/Graphics/Text.hpp:56:25: note: candidate: 'sf::Text::Text(sf::Text&&)' /usr/include/SFML/Graphics/Text.hpp:56:25: note: candidate expects 1 argument, 3 provided font.cpp:222:36: error: 'using sf::FloatRect = class sf::Rect' {aka 'class sf::Rect'} has no member named 'width' 222 | x = temp.getGlobalBounds().width; | ^~~~~ font.cpp:223:36: error: 'using sf::FloatRect = class sf::Rect' {aka 'class sf::Rect'} has no member named 'height' 223 | y = temp.getGlobalBounds().height; | ^~~~~~ make[2]: *** [Makefile:566: font.o] Error 1 make[2]: Leaving directory '/usr/src/RPM/BUILD/etr-0.8.4/src' make[2]: Entering directory '/usr/src/RPM/BUILD/etr-0.8.4/src' x86_64-alt-linux-g++ -DHAVE_CONFIG_H -I. -I.. -DETR_DATA_DIR=\"/usr/share\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -std=c++14 -c -o audio.o audio.cpp In file included from /usr/include/SFML/Audio/InputSoundFile.hpp:32, from /usr/include/SFML/Audio.hpp:31, from audio.cpp:21: /usr/include/SFML/Audio/SoundFileReader.hpp:81:32: error: 'optional' in namespace 'std' does not name a template type 81 | [[nodiscard]] virtual std::optional open(InputStream& stream) = 0; | ^~~~~~~~ /usr/include/SFML/Audio/SoundFileReader.hpp:81:27: note: 'std::optional' is only available from C++17 onwards 81 | [[nodiscard]] virtual std::optional open(InputStream& stream) = 0; | ^~~ /usr/include/SFML/Audio/InputSoundFile.hpp:79:40: error: 'filesystem' in namespace 'std' does not name a type 79 | explicit InputSoundFile(const std::filesystem::path& filename); | ^~~~~~~~~~ /usr/include/SFML/Audio/InputSoundFile.hpp:79:56: error: expected unqualified-id before '&' token 79 | explicit InputSoundFile(const std::filesystem::path& filename); | ^ /usr/include/SFML/Audio/InputSoundFile.hpp:79:56: error: expected ')' before '&' token 79 | explicit InputSoundFile(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Audio/InputSoundFile.hpp:79:56: error: constructors may not be ref-qualified /usr/include/SFML/Audio/InputSoundFile.hpp:79:56: error: expected ';' at end of member declaration 79 | explicit InputSoundFile(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Audio/InputSoundFile.hpp:79:58: error: 'filename' does not name a type 79 | explicit InputSoundFile(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/Audio/InputSoundFile.hpp:124:48: error: 'filesystem' in namespace 'std' does not name a type 124 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^~~~~~~~~~ /usr/include/SFML/Audio/InputSoundFile.hpp:124:64: error: expected unqualified-id before '&' token 124 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^ /usr/include/SFML/Audio/InputSoundFile.hpp:124:64: error: expected ')' before '&' token 124 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Audio/InputSoundFile.hpp:124:64: error: expected ';' at end of member declaration 124 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Audio/InputSoundFile.hpp:124:66: error: 'filename' does not name a type 124 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^~~~~~~~ In file included from /usr/include/SFML/Audio/Music.hpp:32, from /usr/include/SFML/Audio.hpp:33: /usr/include/SFML/Audio/SoundStream.hpp:286:18: error: 'optional' in namespace 'std' does not name a template type 286 | virtual std::optional onLoop(); | ^~~~~~~~ /usr/include/SFML/Audio/SoundStream.hpp:286:13: note: 'std::optional' is only available from C++17 onwards 286 | virtual std::optional onLoop(); | ^~~ /usr/include/SFML/Audio/Music.hpp:96:31: error: 'filesystem' in namespace 'std' does not name a type 96 | explicit Music(const std::filesystem::path& filename); | ^~~~~~~~~~ /usr/include/SFML/Audio/Music.hpp:96:47: error: expected unqualified-id before '&' token 96 | explicit Music(const std::filesystem::path& filename); | ^ /usr/include/SFML/Audio/Music.hpp:96:47: error: expected ')' before '&' token 96 | explicit Music(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Audio/Music.hpp:96:47: error: constructors may not be ref-qualified /usr/include/SFML/Audio/Music.hpp:96:47: error: expected ';' at end of member declaration 96 | explicit Music(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Audio/Music.hpp:96:49: error: 'filename' does not name a type 96 | explicit Music(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/Audio/Music.hpp:179:48: error: 'filesystem' in namespace 'std' does not name a type 179 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^~~~~~~~~~ /usr/include/SFML/Audio/Music.hpp:179:64: error: expected unqualified-id before '&' token 179 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^ /usr/include/SFML/Audio/Music.hpp:179:64: error: expected ')' before '&' token 179 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Audio/Music.hpp:179:64: error: expected ';' at end of member declaration 179 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Audio/Music.hpp:179:66: error: 'filename' does not name a type 179 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/Audio/Music.hpp:304:10: error: 'optional' in namespace 'std' does not name a template type 304 | std::optional onLoop() override; | ^~~~~~~~ /usr/include/SFML/Audio/Music.hpp:304:5: note: 'std::optional' is only available from C++17 onwards 304 | std::optional onLoop() override; | ^~~ In file included from /usr/include/SFML/Audio/OutputSoundFile.hpp:33, from /usr/include/SFML/Audio.hpp:34: /usr/include/SFML/Audio/SoundFileWriter.hpp:66:48: error: 'filesystem' in namespace 'std' does not name a type 66 | [[nodiscard]] virtual bool open(const std::filesystem::path& filename, | ^~~~~~~~~~ /usr/include/SFML/Audio/SoundFileWriter.hpp:66:64: error: expected unqualified-id before '&' token 66 | [[nodiscard]] virtual bool open(const std::filesystem::path& filename, | ^ /usr/include/SFML/Audio/SoundFileWriter.hpp:66:64: error: expected ')' before '&' token 66 | [[nodiscard]] virtual bool open(const std::filesystem::path& filename, | ~ ^ | ) /usr/include/SFML/Audio/SoundFileWriter.hpp:66:64: error: expected ';' at end of member declaration 66 | [[nodiscard]] virtual bool open(const std::filesystem::path& filename, | ^ | ; /usr/include/SFML/Audio/SoundFileWriter.hpp:66:70: error: 'filename' does not name a type 66 | [[nodiscard]] virtual bool open(const std::filesystem::path& filename, | ^~~~~~~~ /usr/include/SFML/Audio/OutputSoundFile.hpp:73:32: error: 'filesystem' in namespace 'std' does not name a type 73 | OutputSoundFile(const std::filesystem::path& filename, | ^~~~~~~~~~ /usr/include/SFML/Audio/OutputSoundFile.hpp:73:48: error: expected unqualified-id before '&' token 73 | OutputSoundFile(const std::filesystem::path& filename, | ^ /usr/include/SFML/Audio/OutputSoundFile.hpp:73:48: error: expected ')' before '&' token 73 | OutputSoundFile(const std::filesystem::path& filename, | ~ ^ | ) /usr/include/SFML/Audio/OutputSoundFile.hpp:73:48: error: constructors may not be ref-qualified /usr/include/SFML/Audio/OutputSoundFile.hpp:73:48: error: expected ';' at end of member declaration 73 | OutputSoundFile(const std::filesystem::path& filename, | ^ | ; /usr/include/SFML/Audio/OutputSoundFile.hpp:73:54: error: 'filename' does not name a type 73 | OutputSoundFile(const std::filesystem::path& filename, | ^~~~~~~~ /usr/include/SFML/Audio/OutputSoundFile.hpp:91:48: error: 'filesystem' in namespace 'std' does not name a type 91 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename, | ^~~~~~~~~~ /usr/include/SFML/Audio/OutputSoundFile.hpp:91:64: error: expected unqualified-id before '&' token 91 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename, | ^ /usr/include/SFML/Audio/OutputSoundFile.hpp:91:64: error: expected ')' before '&' token 91 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename, | ~ ^ | ) /usr/include/SFML/Audio/OutputSoundFile.hpp:91:64: error: expected ';' at end of member declaration 91 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename, | ^ | ; /usr/include/SFML/Audio/OutputSoundFile.hpp:91:70: error: 'filename' does not name a type 91 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename, | ^~~~~~~~ In file included from /usr/include/SFML/Audio.hpp:35: /usr/include/SFML/Audio/PlaybackDevice.hpp:80:35: error: 'optional' in namespace 'std' does not name a template type 80 | [[nodiscard]] SFML_AUDIO_API std::optional getDefaultDevice(); | ^~~~~~~~ /usr/include/SFML/Audio/PlaybackDevice.hpp:80:30: note: 'std::optional' is only available from C++17 onwards 80 | [[nodiscard]] SFML_AUDIO_API std::optional getDefaultDevice(); | ^~~ /usr/include/SFML/Audio/PlaybackDevice.hpp:108:35: error: 'optional' in namespace 'std' does not name a template type 108 | [[nodiscard]] SFML_AUDIO_API std::optional getDevice(); | ^~~~~~~~ /usr/include/SFML/Audio/PlaybackDevice.hpp:108:30: note: 'std::optional' is only available from C++17 onwards 108 | [[nodiscard]] SFML_AUDIO_API std::optional getDevice(); | ^~~ In file included from /usr/include/SFML/Audio.hpp:37: /usr/include/SFML/Audio/SoundBuffer.hpp:87:37: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 87 | explicit SoundBuffer(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Audio/SoundBuffer.hpp:87:53: error: expected unqualified-id before '&' token 87 | explicit SoundBuffer(const std::filesystem::path& filename); | ^ /usr/include/SFML/Audio/SoundBuffer.hpp:87:53: error: expected ')' before '&' token 87 | explicit SoundBuffer(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Audio/SoundBuffer.hpp:87:53: error: constructors may not be ref-qualified /usr/include/SFML/Audio/SoundBuffer.hpp:87:53: error: expected ';' at end of member declaration 87 | explicit SoundBuffer(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Audio/SoundBuffer.hpp:87:55: error: 'filename' does not name a type 87 | explicit SoundBuffer(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/Audio/SoundBuffer.hpp:161:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 161 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Audio/SoundBuffer.hpp:161:64: error: expected unqualified-id before '&' token 161 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^ /usr/include/SFML/Audio/SoundBuffer.hpp:161:64: error: expected ')' before '&' token 161 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Audio/SoundBuffer.hpp:161:64: error: expected ';' at end of member declaration 161 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Audio/SoundBuffer.hpp:161:66: error: 'filename' does not name a type 161 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/Audio/SoundBuffer.hpp:227:46: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^~~~~~~~~~ | system /usr/include/SFML/Audio/SoundBuffer.hpp:227:62: error: expected unqualified-id before '&' token 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^ /usr/include/SFML/Audio/SoundBuffer.hpp:227:62: error: expected ')' before '&' token 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ~ ^ | ) /usr/include/SFML/Audio/SoundBuffer.hpp:227:62: error: expected ';' at end of member declaration 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^ | ; /usr/include/SFML/Audio/SoundBuffer.hpp:227:64: error: 'filename' does not name a type 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^~~~~~~~ In file included from /usr/include/SFML/Audio.hpp:39: /usr/include/SFML/Audio/SoundFileFactory.hpp:112:95: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 112 | [[nodiscard]] static std::unique_ptr createReaderFromFilename(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Audio/SoundFileFactory.hpp:112:111: error: expected unqualified-id before '&' token 112 | [[nodiscard]] static std::unique_ptr createReaderFromFilename(const std::filesystem::path& filename); | ^ /usr/include/SFML/Audio/SoundFileFactory.hpp:112:111: error: expected ')' before '&' token 112 | [[nodiscard]] static std::unique_ptr createReaderFromFilename(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Audio/SoundFileFactory.hpp:112:111: error: static member function 'static std::unique_ptr sf::SoundFileFactory::createReaderFromFilename(...)' cannot have ref-qualifier /usr/include/SFML/Audio/SoundFileFactory.hpp:112:111: error: expected ';' at end of member declaration 112 | [[nodiscard]] static std::unique_ptr createReaderFromFilename(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Audio/SoundFileFactory.hpp:112:113: error: 'filename' does not name a type 112 | [[nodiscard]] static std::unique_ptr createReaderFromFilename(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/Audio/SoundFileFactory.hpp:147:95: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 147 | [[nodiscard]] static std::unique_ptr createWriterFromFilename(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Audio/SoundFileFactory.hpp:147:111: error: expected unqualified-id before '&' token 147 | [[nodiscard]] static std::unique_ptr createWriterFromFilename(const std::filesystem::path& filename); | ^ /usr/include/SFML/Audio/SoundFileFactory.hpp:147:111: error: expected ')' before '&' token 147 | [[nodiscard]] static std::unique_ptr createWriterFromFilename(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Audio/SoundFileFactory.hpp:147:111: error: static member function 'static std::unique_ptr sf::SoundFileFactory::createWriterFromFilename(...)' cannot have ref-qualifier /usr/include/SFML/Audio/SoundFileFactory.hpp:147:111: error: expected ';' at end of member declaration 147 | [[nodiscard]] static std::unique_ptr createWriterFromFilename(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Audio/SoundFileFactory.hpp:147:113: error: 'filename' does not name a type 147 | [[nodiscard]] static std::unique_ptr createWriterFromFilename(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/Audio/SoundFileFactory.hpp:157:50: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 157 | using WriterCheckFnPtr = bool (*)(const std::filesystem::path&); | ^~~~~~~~~~ | system /usr/include/SFML/Audio/SoundFileFactory.hpp:157:66: error: expected unqualified-id before '&' token 157 | using WriterCheckFnPtr = bool (*)(const std::filesystem::path&); | ^ /usr/include/SFML/Audio/SoundFileFactory.hpp:157:66: error: expected ')' before '&' token 157 | using WriterCheckFnPtr = bool (*)(const std::filesystem::path&); | ~ ^ | ) /usr/include/SFML/Audio/SoundFileFactory.hpp:157:66: error: invalid qualifiers on non-member function type /usr/include/SFML/Audio/SoundFileFactory.hpp:157:67: error: expected ';' before ')' token 157 | using WriterCheckFnPtr = bool (*)(const std::filesystem::path&); | ^ | ; /usr/include/SFML/Audio/SoundFileFactory.hpp:160:79: error: 'WriterCheckFnPtr' was not declared in this scope; did you mean 'ReaderCheckFnPtr'? 160 | using WriterFactoryMap = std::unordered_map, WriterCheckFnPtr>; | ^~~~~~~~~~~~~~~~ | ReaderCheckFnPtr /usr/include/SFML/Audio/SoundFileFactory.hpp:160:95: error: template argument 2 is invalid 160 | using WriterFactoryMap = std::unordered_map, WriterCheckFnPtr>; | ^ /usr/include/SFML/Audio/SoundFileFactory.hpp:160:95: error: template argument 5 is invalid /usr/include/SFML/Audio/SoundFileFactory.hpp:166:26: error: 'WriterFactoryMap' does not name a type; did you mean 'ReaderFactoryMap'? 166 | [[nodiscard]] static WriterFactoryMap& getWriterFactoryMap(); | ^~~~~~~~~~~~~~~~ | ReaderFactoryMap In file included from /usr/include/SFML/Audio/SoundFileFactory.hpp:171: /usr/include/SFML/Audio/SoundFileFactory.inl: In static member function 'static void sf::SoundFileFactory::registerWriter()': /usr/include/SFML/Audio/SoundFileFactory.inl:77:5: error: there are no arguments to 'getWriterFactoryMap' that depend on a template parameter, so a declaration of 'getWriterFactoryMap' must be available [-fpermissive] 77 | getWriterFactoryMap()[&priv::createWriter] = &T::check; | ^~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Audio/SoundFileFactory.inl:77:5: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated) /usr/include/SFML/Audio/SoundFileFactory.inl: In static member function 'static void sf::SoundFileFactory::unregisterWriter()': /usr/include/SFML/Audio/SoundFileFactory.inl:85:5: error: there are no arguments to 'getWriterFactoryMap' that depend on a template parameter, so a declaration of 'getWriterFactoryMap' must be available [-fpermissive] 85 | getWriterFactoryMap().erase(&priv::createWriter); | ^~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Audio/SoundFileFactory.inl: In static member function 'static bool sf::SoundFileFactory::isWriterRegistered()': /usr/include/SFML/Audio/SoundFileFactory.inl:93:12: error: there are no arguments to 'getWriterFactoryMap' that depend on a template parameter, so a declaration of 'getWriterFactoryMap' must be available [-fpermissive] 93 | return getWriterFactoryMap().count(&priv::createWriter) == 1; | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/SFML/System.hpp:34, from /usr/include/SFML/Audio.hpp:46: /usr/include/SFML/System/Clock.hpp: At global scope: /usr/include/SFML/System/Clock.hpp:78:20: error: 'ratio_less_equal_v' is not a member of 'std'; did you mean 'ratio_less_equal'? 78 | static_assert(std::ratio_less_equal_v, | ^~~~~~~~~~~~~~~~~~ | ratio_less_equal /usr/include/SFML/System/Clock.hpp:78:56: error: expected primary-expression before ',' token 78 | static_assert(std::ratio_less_equal_v, | ^ /usr/include/SFML/System/Clock.hpp:78:68: error: expected primary-expression before '>' token 78 | static_assert(std::ratio_less_equal_v, | ^ /usr/include/SFML/System/Clock.hpp:78:69: error: expected primary-expression before ',' token 78 | static_assert(std::ratio_less_equal_v, | ^ /usr/include/SFML/System/Clock.hpp:78:69: error: expected ')' before ',' token 78 | static_assert(std::ratio_less_equal_v, | ~ ^ | ) In file included from /usr/include/SFML/System/FileInputStream.hpp:34, from /usr/include/SFML/System.hpp:37: /usr/include/SFML/System/InputStream.hpp:66:32: error: 'optional' in namespace 'std' does not name a template type 66 | [[nodiscard]] virtual std::optional read(void* data, std::size_t size) = 0; | ^~~~~~~~ /usr/include/SFML/System/InputStream.hpp:66:27: note: 'std::optional' is only available from C++17 onwards 66 | [[nodiscard]] virtual std::optional read(void* data, std::size_t size) = 0; | ^~~ /usr/include/SFML/System/InputStream.hpp:76:32: error: 'optional' in namespace 'std' does not name a template type 76 | [[nodiscard]] virtual std::optional seek(std::size_t position) = 0; | ^~~~~~~~ /usr/include/SFML/System/InputStream.hpp:76:27: note: 'std::optional' is only available from C++17 onwards 76 | [[nodiscard]] virtual std::optional seek(std::size_t position) = 0; | ^~~ /usr/include/SFML/System/InputStream.hpp:84:32: error: 'optional' in namespace 'std' does not name a template type 84 | [[nodiscard]] virtual std::optional tell() = 0; | ^~~~~~~~ /usr/include/SFML/System/InputStream.hpp:84:27: note: 'std::optional' is only available from C++17 onwards 84 | [[nodiscard]] virtual std::optional tell() = 0; | ^~~ /usr/include/SFML/System/InputStream.hpp:92:18: error: 'optional' in namespace 'std' does not name a template type 92 | virtual std::optional getSize() = 0; | ^~~~~~~~ /usr/include/SFML/System/InputStream.hpp:92:13: note: 'std::optional' is only available from C++17 onwards 92 | virtual std::optional getSize() = 0; | ^~~ /usr/include/SFML/System/FileInputStream.hpp:106:41: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 106 | explicit FileInputStream(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/System/FileInputStream.hpp:106:57: error: expected unqualified-id before '&' token 106 | explicit FileInputStream(const std::filesystem::path& filename); | ^ /usr/include/SFML/System/FileInputStream.hpp:106:57: error: expected ')' before '&' token 106 | explicit FileInputStream(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/System/FileInputStream.hpp:106:57: error: constructors may not be ref-qualified /usr/include/SFML/System/FileInputStream.hpp:106:57: error: expected ';' at end of member declaration 106 | explicit FileInputStream(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/System/FileInputStream.hpp:106:59: error: 'filename' does not name a type 106 | explicit FileInputStream(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:116:40: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/System/FileInputStream.hpp:116:56: error: expected unqualified-id before '&' token 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ^ /usr/include/SFML/System/FileInputStream.hpp:116:56: error: expected ')' before '&' token 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/System/FileInputStream.hpp:116:56: error: expected ';' at end of member declaration 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/System/FileInputStream.hpp:116:58: error: 'filename' does not name a type 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:130:24: error: 'optional' in namespace 'std' does not name a template type 130 | [[nodiscard]] std::optional read(void* data, std::size_t size) override; | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:130:19: note: 'std::optional' is only available from C++17 onwards 130 | [[nodiscard]] std::optional read(void* data, std::size_t size) override; | ^~~ /usr/include/SFML/System/FileInputStream.hpp:140:24: error: 'optional' in namespace 'std' does not name a template type 140 | [[nodiscard]] std::optional seek(std::size_t position) override; | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:140:19: note: 'std::optional' is only available from C++17 onwards 140 | [[nodiscard]] std::optional seek(std::size_t position) override; | ^~~ /usr/include/SFML/System/FileInputStream.hpp:148:24: error: 'optional' in namespace 'std' does not name a template type 148 | [[nodiscard]] std::optional tell() override; | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:148:19: note: 'std::optional' is only available from C++17 onwards 148 | [[nodiscard]] std::optional tell() override; | ^~~ /usr/include/SFML/System/FileInputStream.hpp:156:10: error: 'optional' in namespace 'std' does not name a template type 156 | std::optional getSize() override; | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:156:5: note: 'std::optional' is only available from C++17 onwards 156 | std::optional getSize() override; | ^~~ In file included from /usr/include/SFML/System.hpp:39: /usr/include/SFML/System/MemoryInputStream.hpp:70:24: error: 'optional' in namespace 'std' does not name a template type 70 | [[nodiscard]] std::optional read(void* data, std::size_t size) override; | ^~~~~~~~ /usr/include/SFML/System/MemoryInputStream.hpp:70:19: note: 'std::optional' is only available from C++17 onwards 70 | [[nodiscard]] std::optional read(void* data, std::size_t size) override; | ^~~ /usr/include/SFML/System/MemoryInputStream.hpp:80:24: error: 'optional' in namespace 'std' does not name a template type 80 | [[nodiscard]] std::optional seek(std::size_t position) override; | ^~~~~~~~ /usr/include/SFML/System/MemoryInputStream.hpp:80:19: note: 'std::optional' is only available from C++17 onwards 80 | [[nodiscard]] std::optional seek(std::size_t position) override; | ^~~ /usr/include/SFML/System/MemoryInputStream.hpp:88:24: error: 'optional' in namespace 'std' does not name a template type 88 | [[nodiscard]] std::optional tell() override; | ^~~~~~~~ /usr/include/SFML/System/MemoryInputStream.hpp:88:19: note: 'std::optional' is only available from C++17 onwards 88 | [[nodiscard]] std::optional tell() override; | ^~~ /usr/include/SFML/System/MemoryInputStream.hpp:96:10: error: 'optional' in namespace 'std' does not name a template type 96 | std::optional getSize() override; | ^~~~~~~~ /usr/include/SFML/System/MemoryInputStream.hpp:96:5: note: 'std::optional' is only available from C++17 onwards 96 | std::optional getSize() override; | ^~~ /usr/include/SFML/System/MemoryInputStream.hpp:102:16: error: 'byte' in namespace 'std' does not name a type 102 | const std::byte* m_data{}; //!< Pointer to the data in memory | ^~~~ /usr/include/SFML/System/MemoryInputStream.hpp:102:11: note: 'std::byte' is only available from C++17 onwards 102 | const std::byte* m_data{}; //!< Pointer to the data in memory | ^~~ In file included from /usr/include/SFML/System/Utf.hpp:742, from /usr/include/SFML/System/String.hpp:32, from /usr/include/SFML/System.hpp:41: /usr/include/SFML/System/Utf.inl: In static member function 'static Out sf::Utf<8>::encode(char32_t, Out, uint8_t)': /usr/include/SFML/System/Utf.inl:137:25: error: 'byte' is not a member of 'std' 137 | std::array bytes{}; | ^~~~ /usr/include/SFML/System/Utf.inl:137:25: note: 'std::byte' is only available from C++17 onwards /usr/include/SFML/System/Utf.inl:137:25: error: 'byte' is not a member of 'std' /usr/include/SFML/System/Utf.inl:137:25: note: 'std::byte' is only available from C++17 onwards /usr/include/SFML/System/Utf.inl:137:32: error: template argument 1 is invalid 137 | std::array bytes{}; | ^ /usr/include/SFML/System/Utf.inl:142:26: error: invalid types 'int[int]' for array subscript 142 | case 4: bytes[3] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^ /usr/include/SFML/System/Utf.inl:142:49: error: 'byte' in namespace 'std' does not name a type 142 | case 4: bytes[3] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~~ /usr/include/SFML/System/Utf.inl:142:44: note: 'std::byte' is only available from C++17 onwards 142 | case 4: bytes[3] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~ /usr/include/SFML/System/Utf.inl:143:26: error: invalid types 'int[int]' for array subscript 143 | case 3: bytes[2] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^ /usr/include/SFML/System/Utf.inl:143:49: error: 'byte' in namespace 'std' does not name a type 143 | case 3: bytes[2] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~~ /usr/include/SFML/System/Utf.inl:143:44: note: 'std::byte' is only available from C++17 onwards 143 | case 3: bytes[2] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~ /usr/include/SFML/System/Utf.inl:144:26: error: invalid types 'int[int]' for array subscript 144 | case 2: bytes[1] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^ /usr/include/SFML/System/Utf.inl:144:49: error: 'byte' in namespace 'std' does not name a type 144 | case 2: bytes[1] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~~ /usr/include/SFML/System/Utf.inl:144:44: note: 'std::byte' is only available from C++17 onwards 144 | case 2: bytes[1] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~ /usr/include/SFML/System/Utf.inl:145:26: error: invalid types 'int[int]' for array subscript 145 | case 1: bytes[0] = static_cast (input | firstBytes[bytestoWrite]); | ^ /usr/include/SFML/System/Utf.inl:145:49: error: 'byte' in namespace 'std' does not name a type 145 | case 1: bytes[0] = static_cast (input | firstBytes[bytestoWrite]); | ^~~~ /usr/include/SFML/System/Utf.inl:145:44: note: 'std::byte' is only available from C++17 onwards 145 | case 1: bytes[0] = static_cast (input | firstBytes[bytestoWrite]); | ^~~ /usr/include/SFML/System/Utf.inl:150:35: error: request for member 'data' in 'bytes', which is of non-class type 'int' 150 | output = priv::copy(bytes.data(), bytes.data() + bytestoWrite, output); | ^~~~ /usr/include/SFML/System/Utf.inl:150:49: error: request for member 'data' in 'bytes', which is of non-class type 'int' 150 | output = priv::copy(bytes.data(), bytes.data() + bytestoWrite, output); | ^~~~ In file included from /usr/include/SFML/Window.hpp:32, from bh.h:31, from audio.h:20, from audio.cpp:23: /usr/include/SFML/Window/Context.hpp: At global scope: /usr/include/SFML/Window/Context.hpp:130:57: error: 'std::string_view' has not been declared 130 | [[nodiscard]] static bool isExtensionAvailable(std::string_view name); | ^~~~~~~~~~~ In file included from /usr/include/SFML/Window.hpp:34: /usr/include/SFML/Window/Cursor.hpp:226:31: error: 'optional' in namespace 'std' does not name a template type 226 | [[nodiscard]] static std::optional createFromPixels(const std::uint8_t* pixels, Vector2u size, Vector2u hotspot); | ^~~~~~~~ /usr/include/SFML/Window/Cursor.hpp:226:26: note: 'std::optional' is only available from C++17 onwards 226 | [[nodiscard]] static std::optional createFromPixels(const std::uint8_t* pixels, Vector2u size, Vector2u hotspot); | ^~~ /usr/include/SFML/Window/Cursor.hpp:242:31: error: 'optional' in namespace 'std' does not name a template type 242 | [[nodiscard]] static std::optional createFromSystem(Type type); | ^~~~~~~~ /usr/include/SFML/Window/Cursor.hpp:242:26: note: 'std::optional' is only available from C++17 onwards 242 | [[nodiscard]] static std::optional createFromSystem(Type type); | ^~~ In file included from /usr/include/SFML/Window.hpp:35: /usr/include/SFML/Window/Event.hpp:345:10: error: 'variant' in namespace 'std' does not name a template type 345 | std::variant*) | ^~~~~~~ /usr/include/SFML/Window/Event.hpp:374:65: note: 'std::variant' is only available from C++17 onwards 374 | [[nodiscard]] static constexpr bool isInParameterPack(const std::variant*) | ^~~ /usr/include/SFML/Window/Event.hpp:374:77: error: expected ',' or '...' before '<' token 374 | [[nodiscard]] static constexpr bool isInParameterPack(const std::variant*) | ^ /usr/include/SFML/Window/Event.hpp:380:76: error: 'm_data' was not declared in this scope 380 | static constexpr bool isEventSubtype = isInParameterPack(decltype (&m_data)(nullptr)); | ^~~~~~ /usr/include/SFML/Window/Event.hpp: In static member function 'static constexpr bool sf::Event::isInParameterPack(int)': /usr/include/SFML/Window/Event.hpp:376:22: error: 'is_same_v' is not a member of 'std'; did you mean 'is_same'? 376 | return (std::is_same_v || ...); | ^~~~~~~~~ | is_same /usr/include/SFML/Window/Event.hpp:376:33: error: expected primary-expression before ',' token 376 | return (std::is_same_v || ...); | ^ /usr/include/SFML/Window/Event.hpp:376:37: error: expected primary-expression before '>' token 376 | return (std::is_same_v || ...); | ^ /usr/include/SFML/Window/Event.hpp:376:39: error: expected primary-expression before '||' token 376 | return (std::is_same_v || ...); | ^~ /usr/include/SFML/Window/Event.hpp:376:42: error: operand of fold expression has no unexpanded parameter packs 376 | return (std::is_same_v || ...); | ^~~ In file included from /usr/include/SFML/Window/Event.hpp:385: /usr/include/SFML/Window/Event.inl: In constructor 'sf::Event::Event(const TEventSubtype&)': /usr/include/SFML/Window/Event.inl:47:9: error: 'm_data' was not declared in this scope 47 | m_data = eventSubtype; | ^~~~~~ /usr/include/SFML/Window/Event.inl: In member function 'bool sf::Event::is() const': /usr/include/SFML/Window/Event.inl:57:21: error: 'holds_alternative' is not a member of 'std' 57 | return std::holds_alternative(m_data); | ^~~~~~~~~~~~~~~~~ /usr/include/SFML/Window/Event.inl:57:21: note: 'std::holds_alternative' is only available from C++17 onwards /usr/include/SFML/Window/Event.inl:57:52: error: expected primary-expression before '>' token 57 | return std::holds_alternative(m_data); | ^ /usr/include/SFML/Window/Event.inl:57:54: error: 'm_data' was not declared in this scope 57 | return std::holds_alternative(m_data); | ^~~~~~ /usr/include/SFML/Window/Event.inl: In member function 'const TEventSubtype* sf::Event::getIf() const': /usr/include/SFML/Window/Event.inl:67:21: error: 'get_if' is not a member of 'std' 67 | return std::get_if(&m_data); | ^~~~~~ /usr/include/SFML/Window/Event.inl:67:41: error: expected primary-expression before '>' token 67 | return std::get_if(&m_data); | ^ /usr/include/SFML/Window/Event.inl:67:44: error: 'm_data' was not declared in this scope 67 | return std::get_if(&m_data); | ^~~~~~ /usr/include/SFML/Window/Event.inl: In member function 'decltype(auto) sf::Event::visit(T&&) const': /usr/include/SFML/Window/Event.inl:75:17: error: 'visit' is not a member of 'std' 75 | return std::visit(std::forward(visitor), m_data); | ^~~~~ /usr/include/SFML/Window/Event.inl:75:17: note: 'std::visit' is only available from C++17 onwards /usr/include/SFML/Window/Event.inl:75:49: error: 'm_data' was not declared in this scope 75 | return std::visit(std::forward(visitor), m_data); | ^~~~~~ In file included from /usr/include/SFML/Window/Window.hpp:32, from /usr/include/SFML/Window.hpp:42: /usr/include/SFML/Window/WindowBase.hpp: At global scope: /usr/include/SFML/Window/WindowBase.hpp:226:24: error: 'optional' in namespace 'std' does not name a template type 226 | [[nodiscard]] std::optional pollEvent(); | ^~~~~~~~ /usr/include/SFML/Window/WindowBase.hpp:226:19: note: 'std::optional' is only available from C++17 onwards 226 | [[nodiscard]] std::optional pollEvent(); | ^~~ /usr/include/SFML/Window/WindowBase.hpp:252:24: error: 'optional' in namespace 'std' does not name a template type 252 | [[nodiscard]] std::optional waitEvent(Time timeout = Time::Zero); | ^~~~~~~~ /usr/include/SFML/Window/WindowBase.hpp:252:19: note: 'std::optional' is only available from C++17 onwards 252 | [[nodiscard]] std::optional waitEvent(Time timeout = Time::Zero); | ^~~ /usr/include/SFML/Window/WindowBase.hpp:387:36: error: 'optional' in namespace 'std' does not name a template type 387 | void setMinimumSize(const std::optional& minimumSize); | ^~~~~~~~ /usr/include/SFML/Window/WindowBase.hpp:387:31: note: 'std::optional' is only available from C++17 onwards 387 | void setMinimumSize(const std::optional& minimumSize); | ^~~ /usr/include/SFML/Window/WindowBase.hpp:387:44: error: expected ',' or '...' before '<' token 387 | void setMinimumSize(const std::optional& minimumSize); | ^ /usr/include/SFML/Window/WindowBase.hpp:397:36: error: 'optional' in namespace 'std' does not name a template type 397 | void setMaximumSize(const std::optional& maximumSize); | ^~~~~~~~ /usr/include/SFML/Window/WindowBase.hpp:397:31: note: 'std::optional' is only available from C++17 onwards 397 | void setMaximumSize(const std::optional& maximumSize); | ^~~ /usr/include/SFML/Window/WindowBase.hpp:397:44: error: expected ',' or '...' before '<' token 397 | void setMaximumSize(const std::optional& maximumSize); | ^ In file included from /usr/include/SFML/Window/WindowBase.hpp:617: /usr/include/SFML/Window/WindowBase.inl:47:41: error: expected constructor, destructor, or type conversion before ';' token 47 | OverloadSet(Ts...) -> OverloadSet; | ^ /usr/include/SFML/Window/WindowBase.inl: In member function 'void sf::WindowBase::handleEvents(Ts&& ...)': /usr/include/SFML/Window/WindowBase.inl:69:23: error: missing template arguments before 'overloadSet' 69 | priv::OverloadSet overloadSet{std::forward(handlers)..., [](const priv::DelayOverloadResolution&) { /* ignore */ }}; | ^~~~~~~~~~~ /usr/include/SFML/Window/WindowBase.inl:71:32: error: qualified-id in declaration before 'event' 71 | while (const std::optional event = pollEvent()) | ^~~~~ /usr/include/SFML/Window/WindowBase.inl:72:9: error: 'event' was not declared in this scope; did you mean 'Event'? 72 | event->visit(overloadSet); | ^~~~~ | Event /usr/include/SFML/Window/WindowBase.inl:72:22: error: 'overloadSet' was not declared in this scope 72 | event->visit(overloadSet); | ^~~~~~~~~~~ In file included from /usr/include/SFML/Graphics/Color.hpp:229, from /usr/include/SFML/Graphics/Shape.hpp:32, from /usr/include/SFML/Graphics/CircleShape.hpp:32, from /usr/include/SFML/Graphics.hpp:32, from bh.h:32: /usr/include/SFML/Graphics/Color.inl: In function 'constexpr sf::Color sf::operator+(Color, Color)': /usr/include/SFML/Graphics/Color.inl:77:16: error: variable 'clampedAdd' of non-literal type 'const sf::operator+(Color, Color)::' in 'constexpr' function only available with '-std=c++2b' or '-std=gnu++2b' 77 | const auto clampedAdd = [](std::uint8_t lhs, std::uint8_t rhs) | ^~~~~~~~~~ /usr/include/SFML/Graphics/Color.inl:77:30: note: 'sf::operator+(Color, Color)::' is not literal because: 77 | const auto clampedAdd = [](std::uint8_t lhs, std::uint8_t rhs) | ^ cc1plus: note: 'sf::operator+(Color, Color)::' is a closure type, which is only literal in C++17 and later /usr/include/SFML/Graphics/Color.inl: In function 'constexpr sf::Color sf::operator-(Color, Color)': /usr/include/SFML/Graphics/Color.inl:93:16: error: variable 'clampedSub' of non-literal type 'const sf::operator-(Color, Color)::' in 'constexpr' function only available with '-std=c++2b' or '-std=gnu++2b' 93 | const auto clampedSub = [](std::uint8_t lhs, std::uint8_t rhs) | ^~~~~~~~~~ /usr/include/SFML/Graphics/Color.inl:93:30: note: 'sf::operator-(Color, Color)::' is not literal because: 93 | const auto clampedSub = [](std::uint8_t lhs, std::uint8_t rhs) | ^ cc1plus: note: 'sf::operator-(Color, Color)::' is a closure type, which is only literal in C++17 and later /usr/include/SFML/Graphics/Color.inl: In function 'constexpr sf::Color sf::operator*(Color, Color)': /usr/include/SFML/Graphics/Color.inl:109:16: error: variable 'scaledMul' of non-literal type 'const sf::operator*(Color, Color)::' in 'constexpr' function only available with '-std=c++2b' or '-std=gnu++2b' 109 | const auto scaledMul = [](std::uint8_t lhs, std::uint8_t rhs) | ^~~~~~~~~ /usr/include/SFML/Graphics/Color.inl:109:29: note: 'sf::operator*(Color, Color)::' is not literal because: 109 | const auto scaledMul = [](std::uint8_t lhs, std::uint8_t rhs) | ^ cc1plus: note: 'sf::operator*(Color, Color)::' is a closure type, which is only literal in C++17 and later In file included from /usr/include/SFML/Graphics/Shape.hpp:35: /usr/include/SFML/Graphics/Rect.hpp: At global scope: /usr/include/SFML/Graphics/Rect.hpp:98:34: error: 'optional' in namespace 'std' does not name a template type 98 | [[nodiscard]] constexpr std::optional> findIntersection(const Rect& rectangle) const; | ^~~~~~~~ /usr/include/SFML/Graphics/Rect.hpp:98:29: note: 'std::optional' is only available from C++17 onwards 98 | [[nodiscard]] constexpr std::optional> findIntersection(const Rect& rectangle) const; | ^~~ In file included from /usr/include/SFML/Graphics/Rect.hpp:151: /usr/include/SFML/Graphics/Rect.inl:71:16: error: 'optional' in namespace 'std' does not name a template type 71 | constexpr std::optional> Rect::findIntersection(const Rect& rectangle) const | ^~~~~~~~ /usr/include/SFML/Graphics/Rect.inl:71:11: note: 'std::optional' is only available from C++17 onwards 71 | constexpr std::optional> Rect::findIntersection(const Rect& rectangle) const | ^~~ In file included from /usr/include/SFML/Graphics/Transform.hpp:352, from /usr/include/SFML/Graphics/RenderStates.hpp:35, from /usr/include/SFML/Graphics/Shape.hpp:36: /usr/include/SFML/Graphics/Transform.inl: In member function 'constexpr sf::FloatRect sf::Transform::transformRect(const sf::FloatRect&) const': /usr/include/SFML/Graphics/Transform.inl:101:11: error: invalid use of template-name 'std::array' without an argument list 101 | const std::array points = {transformPoint(rectangle.position), | ^~~ /usr/include/SFML/Graphics/Transform.inl:101:11: note: class template argument deduction is only available with '-std=c++17' or '-std=gnu++17' In file included from /usr/include/c++/14/bits/stl_algobase.h:64, from /usr/include/c++/14/vector:62, from /usr/include/SFML/Audio/SoundFileReader.hpp:35: /usr/include/c++/14/bits/stl_pair.h:99:12: note: 'template struct std::array' declared here 99 | struct array; | ^~~~~ /usr/include/SFML/Graphics/Transform.inl:107:21: error: 'points' was not declared in this scope; did you mean 'printf'? 107 | Vector2f pmin = points[0]; | ^~~~~~ | printf In file included from /usr/include/SFML/Graphics/Font.hpp:34, from /usr/include/SFML/Graphics.hpp:36: /usr/include/SFML/Graphics/Texture.hpp: At global scope: /usr/include/SFML/Graphics/Texture.hpp:114:33: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Texture.hpp:114:49: error: expected unqualified-id before '&' token 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^ /usr/include/SFML/Graphics/Texture.hpp:114:49: error: expected ')' before '&' token 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ~ ^ | ) /usr/include/SFML/Graphics/Texture.hpp:114:49: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Texture.hpp:114:49: error: expected ';' at end of member declaration 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^ | ; /usr/include/SFML/Graphics/Texture.hpp:114:51: error: 'filename' does not name a type 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^~~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:137:24: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Texture.hpp:137:40: error: expected unqualified-id before '&' token 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^ /usr/include/SFML/Graphics/Texture.hpp:137:40: error: expected ')' before '&' token 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ~ ^ | ) /usr/include/SFML/Graphics/Texture.hpp:137:40: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Texture.hpp:137:40: error: expected ';' at end of member declaration 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^ | ; /usr/include/SFML/Graphics/Texture.hpp:137:5: error: 'sf::Texture::Texture(...)' cannot be overloaded with 'sf::Texture::Texture(...)' 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:114:14: note: previous declaration 'sf::Texture::Texture(...)' 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:137:42: error: 'filename' does not name a type 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^~~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:304:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Texture.hpp:304:64: error: expected unqualified-id before '&' token 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^ /usr/include/SFML/Graphics/Texture.hpp:304:64: error: expected ')' before '&' token 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ~ ^ | ) /usr/include/SFML/Graphics/Texture.hpp:304:64: error: expected ';' at end of member declaration 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^ | ; /usr/include/SFML/Graphics/Texture.hpp:304:66: error: 'filename' does not name a type 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^~~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:304:119: error: expected unqualified-id before ')' token 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^ /usr/include/SFML/Graphics/Font.hpp:103:30: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 103 | explicit Font(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Font.hpp:103:46: error: expected unqualified-id before '&' token 103 | explicit Font(const std::filesystem::path& filename); | ^ /usr/include/SFML/Graphics/Font.hpp:103:46: error: expected ')' before '&' token 103 | explicit Font(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Graphics/Font.hpp:103:46: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Font.hpp:103:46: error: expected ';' at end of member declaration 103 | explicit Font(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Graphics/Font.hpp:103:48: error: 'filename' does not name a type 103 | explicit Font(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/Graphics/Font.hpp:168:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Font.hpp:168:64: error: expected unqualified-id before '&' token 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^ /usr/include/SFML/Graphics/Font.hpp:168:64: error: expected ')' before '&' token 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Graphics/Font.hpp:168:64: error: expected ';' at end of member declaration 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Graphics/Font.hpp:168:66: error: 'filename' does not name a type 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^~~~~~~~ In file included from /usr/include/SFML/Graphics.hpp:38: /usr/include/SFML/Graphics/Image.hpp:103:31: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 103 | explicit Image(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Image.hpp:103:47: error: expected unqualified-id before '&' token 103 | explicit Image(const std::filesystem::path& filename); | ^ /usr/include/SFML/Graphics/Image.hpp:103:47: error: expected ')' before '&' token 103 | explicit Image(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Graphics/Image.hpp:103:47: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Image.hpp:103:47: error: expected ';' at end of member declaration 103 | explicit Image(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Graphics/Image.hpp:103:49: error: 'filename' does not name a type 103 | explicit Image(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/Graphics/Image.hpp:175:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Image.hpp:175:64: error: expected unqualified-id before '&' token 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^ /usr/include/SFML/Graphics/Image.hpp:175:64: error: expected ')' before '&' token 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Graphics/Image.hpp:175:64: error: expected ';' at end of member declaration 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Graphics/Image.hpp:175:66: error: 'filename' does not name a type 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/Graphics/Image.hpp:227:46: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Image.hpp:227:62: error: expected unqualified-id before '&' token 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^ /usr/include/SFML/Graphics/Image.hpp:227:62: error: expected ')' before '&' token 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ~ ^ | ) /usr/include/SFML/Graphics/Image.hpp:227:62: error: expected ';' at end of member declaration 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^ | ; /usr/include/SFML/Graphics/Image.hpp:227:64: error: 'filename' does not name a type 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^~~~~~~~ /usr/include/SFML/Graphics/Image.hpp:245:24: error: 'optional' in namespace 'std' does not name a template type 245 | [[nodiscard]] std::optional> saveToMemory(std::string_view format) const; | ^~~~~~~~ /usr/include/SFML/Graphics/Image.hpp:245:19: note: 'std::optional' is only available from C++17 onwards 245 | [[nodiscard]] std::optional> saveToMemory(std::string_view format) const; | ^~~ In file included from /usr/include/SFML/Graphics.hpp:46: /usr/include/SFML/Graphics/Shader.hpp:147:23: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 147 | Shader(const std::filesystem::path& filename, Type type); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:147:39: error: expected unqualified-id before '&' token 147 | Shader(const std::filesystem::path& filename, Type type); | ^ /usr/include/SFML/Graphics/Shader.hpp:147:39: error: expected ')' before '&' token 147 | Shader(const std::filesystem::path& filename, Type type); | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:147:39: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Shader.hpp:147:39: error: expected ';' at end of member declaration 147 | Shader(const std::filesystem::path& filename, Type type); | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:147:41: error: 'filename' does not name a type 147 | Shader(const std::filesystem::path& filename, Type type); | ^~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:168:23: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:168:39: error: expected unqualified-id before '&' token 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^ /usr/include/SFML/Graphics/Shader.hpp:168:39: error: expected ')' before '&' token 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:168:39: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Shader.hpp:168:39: error: expected ';' at end of member declaration 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:168:5: error: 'sf::Shader::Shader(...)' cannot be overloaded with 'sf::Shader::Shader(...)' 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^~~~~~ /usr/include/SFML/Graphics/Shader.hpp:147:5: note: previous declaration 'sf::Shader::Shader(...)' 147 | Shader(const std::filesystem::path& filename, Type type); | ^~~~~~ /usr/include/SFML/Graphics/Shader.hpp:168:41: error: 'vertexShaderFilename' does not name a type 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:190:23: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:190:39: error: expected unqualified-id before '&' token 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^ /usr/include/SFML/Graphics/Shader.hpp:190:39: error: expected ')' before '&' token 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:190:39: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Shader.hpp:190:39: error: expected ';' at end of member declaration 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:190:5: error: 'sf::Shader::Shader(...)' cannot be overloaded with 'sf::Shader::Shader(...)' 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^~~~~~ /usr/include/SFML/Graphics/Shader.hpp:147:5: note: previous declaration 'sf::Shader::Shader(...)' 147 | Shader(const std::filesystem::path& filename, Type type); | ^~~~~~ /usr/include/SFML/Graphics/Shader.hpp:190:41: error: 'vertexShaderFilename' does not name a type 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:212:28: error: expected ')' before 'shader' 212 | Shader(std::string_view shader, Type type); | ~ ^~~~~~~ | ) /usr/include/SFML/Graphics/Shader.hpp:233:28: error: expected ')' before 'vertexShader' 233 | Shader(std::string_view vertexShader, std::string_view fragmentShader); | ~ ^~~~~~~~~~~~~ | ) /usr/include/SFML/Graphics/Shader.hpp:255:28: error: expected ')' before 'vertexShader' 255 | Shader(std::string_view vertexShader, std::string_view geometryShader, std::string_view fragmentShader); | ~ ^~~~~~~~~~~~~ | ) /usr/include/SFML/Graphics/Shader.hpp:339:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:339:64: error: expected unqualified-id before '&' token 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^ /usr/include/SFML/Graphics/Shader.hpp:339:64: error: expected ')' before '&' token 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:339:64: error: expected ';' at end of member declaration 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:339:66: error: 'filename' does not name a type 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:360:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:360:64: error: expected unqualified-id before '&' token 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^ /usr/include/SFML/Graphics/Shader.hpp:360:64: error: expected ')' before '&' token 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:360:64: error: expected ';' at end of member declaration 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:360:24: error: 'bool sf::Shader::loadFromFile(...) &' cannot be overloaded with 'bool sf::Shader::loadFromFile(...) &' 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:339:24: note: previous declaration 'bool sf::Shader::loadFromFile(...) &' 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:360:66: error: 'vertexShaderFilename' does not name a type 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:383:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:383:64: error: expected unqualified-id before '&' token 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^ /usr/include/SFML/Graphics/Shader.hpp:383:64: error: expected ')' before '&' token 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:383:64: error: expected ';' at end of member declaration 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:383:24: error: 'bool sf::Shader::loadFromFile(...) &' cannot be overloaded with 'bool sf::Shader::loadFromFile(...) &' 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:339:24: note: previous declaration 'bool sf::Shader::loadFromFile(...) &' 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:383:66: error: 'vertexShaderFilename' does not name a type 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:405:44: error: 'std::string_view' has not been declared 405 | [[nodiscard]] bool loadFromMemory(std::string_view shader, Type type); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:426:44: error: 'std::string_view' has not been declared 426 | [[nodiscard]] bool loadFromMemory(std::string_view vertexShader, std::string_view fragmentShader); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:426:75: error: 'std::string_view' has not been declared 426 | [[nodiscard]] bool loadFromMemory(std::string_view vertexShader, std::string_view fragmentShader); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:448:44: error: 'std::string_view' has not been declared 448 | [[nodiscard]] bool loadFromMemory(std::string_view vertexShader, | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:449:44: error: 'std::string_view' has not been declared 449 | std::string_view geometryShader, | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:450:44: error: 'std::string_view' has not been declared 450 | std::string_view fragmentShader); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:861:37: error: 'std::string_view' has not been declared 861 | [[nodiscard]] bool compile(std::string_view vertexShaderCode, | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:862:37: error: 'std::string_view' has not been declared 862 | std::string_view geometryShaderCode, | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:863:37: error: 'std::string_view' has not been declared 863 | std::string_view fragmentShaderCode); | ^~~~~~~~~~~ audio.cpp: In constructor 'TSound::TSound(int)': audio.cpp:34:37: error: call of overloaded 'SoundBuffer()' is ambiguous 34 | explicit TSound(int volume) { | ^ /usr/include/SFML/Audio/SoundBuffer.hpp:87:14: note: candidate: 'sf::SoundBuffer::SoundBuffer(...)' 87 | explicit SoundBuffer(const std::filesystem::path& filename); | ^~~~~~~~~~~ /usr/include/SFML/Audio/SoundBuffer.hpp:64:5: note: candidate: 'sf::SoundBuffer::SoundBuffer()' 64 | SoundBuffer() = default; | ^~~~~~~~~~~ audio.cpp:34:37: error: no matching function for call to 'sf::Sound::Sound()' 34 | explicit TSound(int volume) { | ^ In file included from /usr/include/SFML/Audio.hpp:36: /usr/include/SFML/Audio/Sound.hpp:70:5: note: candidate: 'sf::Sound::Sound(const sf::Sound&)' 70 | Sound(const Sound& copy); | ^~~~~ /usr/include/SFML/Audio/Sound.hpp:70:5: note: candidate expects 1 argument, 0 provided /usr/include/SFML/Audio/Sound.hpp:56:14: note: candidate: 'sf::Sound::Sound(const sf::SoundBuffer&)' 56 | explicit Sound(const SoundBuffer& buffer); | ^~~~~ /usr/include/SFML/Audio/Sound.hpp:56:14: note: candidate expects 1 argument, 0 provided audio.cpp: In member function 'void TSound::Play(bool)': audio.cpp:42:54: error: 'Playing' is not a member of 'sf::Sound' 42 | if (player.getStatus() == sf::Sound::Playing) return; | ^~~~~~~ audio.cpp:43:24: error: 'class sf::Sound' has no member named 'setLoop'; did you mean 'stop'? 43 | player.setLoop(loop); | ^~~~~~~ | stop audio.cpp: In member function 'void CSound::Halt(std::size_t)': audio.cpp:133:37: error: 'class sf::Sound' has no member named 'getLoop' 133 | if (sounds[soundid]->player.getLoop()) | ^~~~~~~ audio.cpp: In member function 'bool CMusic::LoadPiece(const std::string&, const std::string&)': audio.cpp:160:38: error: call of overloaded 'Music()' is ambiguous 160 | sf::Music* m = new sf::Music(); | ^ /usr/include/SFML/Audio/Music.hpp:96:14: note: candidate: 'sf::Music::Music(...)' 96 | explicit Music(const std::filesystem::path& filename); | ^~~~~ /usr/include/SFML/Audio/Music.hpp:75:5: note: candidate: 'sf::Music::Music()' 75 | Music(); | ^~~~~ audio.cpp: In member function 'bool CMusic::Play(sf::Music*, bool, int)': audio.cpp:248:24: error: 'class sf::Music' has no member named 'setLoop'; did you mean 'stop'? 248 | music->setLoop(loop); | ^~~~~~~ | stop make[2]: *** [Makefile:566: audio.o] Error 1 make[2]: Leaving directory '/usr/src/RPM/BUILD/etr-0.8.4/src' make[2]: Entering directory '/usr/src/RPM/BUILD/etr-0.8.4/src' x86_64-alt-linux-g++ -DHAVE_CONFIG_H -I. -I.. -DETR_DATA_DIR=\"/usr/share\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -std=c++14 -c -o credits.o credits.cpp In file included from /usr/include/SFML/System.hpp:34, from bh.h:30, from credits.h:20, from credits.cpp:21: /usr/include/SFML/System/Clock.hpp:78:20: error: 'ratio_less_equal_v' is not a member of 'std'; did you mean 'ratio_less_equal'? 78 | static_assert(std::ratio_less_equal_v, | ^~~~~~~~~~~~~~~~~~ | ratio_less_equal /usr/include/SFML/System/Clock.hpp:78:56: error: expected primary-expression before ',' token 78 | static_assert(std::ratio_less_equal_v, | ^ /usr/include/SFML/System/Clock.hpp:78:68: error: expected primary-expression before '>' token 78 | static_assert(std::ratio_less_equal_v, | ^ /usr/include/SFML/System/Clock.hpp:78:69: error: expected primary-expression before ',' token 78 | static_assert(std::ratio_less_equal_v, | ^ /usr/include/SFML/System/Clock.hpp:78:69: error: expected ')' before ',' token 78 | static_assert(std::ratio_less_equal_v, | ~ ^ | ) In file included from /usr/include/SFML/System/FileInputStream.hpp:34, from /usr/include/SFML/System.hpp:37: /usr/include/SFML/System/InputStream.hpp:66:32: error: 'optional' in namespace 'std' does not name a template type 66 | [[nodiscard]] virtual std::optional read(void* data, std::size_t size) = 0; | ^~~~~~~~ /usr/include/SFML/System/InputStream.hpp:66:27: note: 'std::optional' is only available from C++17 onwards 66 | [[nodiscard]] virtual std::optional read(void* data, std::size_t size) = 0; | ^~~ /usr/include/SFML/System/InputStream.hpp:76:32: error: 'optional' in namespace 'std' does not name a template type 76 | [[nodiscard]] virtual std::optional seek(std::size_t position) = 0; | ^~~~~~~~ /usr/include/SFML/System/InputStream.hpp:76:27: note: 'std::optional' is only available from C++17 onwards 76 | [[nodiscard]] virtual std::optional seek(std::size_t position) = 0; | ^~~ /usr/include/SFML/System/InputStream.hpp:84:32: error: 'optional' in namespace 'std' does not name a template type 84 | [[nodiscard]] virtual std::optional tell() = 0; | ^~~~~~~~ /usr/include/SFML/System/InputStream.hpp:84:27: note: 'std::optional' is only available from C++17 onwards 84 | [[nodiscard]] virtual std::optional tell() = 0; | ^~~ /usr/include/SFML/System/InputStream.hpp:92:18: error: 'optional' in namespace 'std' does not name a template type 92 | virtual std::optional getSize() = 0; | ^~~~~~~~ /usr/include/SFML/System/InputStream.hpp:92:13: note: 'std::optional' is only available from C++17 onwards 92 | virtual std::optional getSize() = 0; | ^~~ /usr/include/SFML/System/FileInputStream.hpp:106:41: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 106 | explicit FileInputStream(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/System/FileInputStream.hpp:106:57: error: expected unqualified-id before '&' token 106 | explicit FileInputStream(const std::filesystem::path& filename); | ^ /usr/include/SFML/System/FileInputStream.hpp:106:57: error: expected ')' before '&' token 106 | explicit FileInputStream(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/System/FileInputStream.hpp:106:57: error: constructors may not be ref-qualified /usr/include/SFML/System/FileInputStream.hpp:106:57: error: expected ';' at end of member declaration 106 | explicit FileInputStream(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/System/FileInputStream.hpp:106:59: error: 'filename' does not name a type 106 | explicit FileInputStream(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:116:40: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/System/FileInputStream.hpp:116:56: error: expected unqualified-id before '&' token 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ^ /usr/include/SFML/System/FileInputStream.hpp:116:56: error: expected ')' before '&' token 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/System/FileInputStream.hpp:116:56: error: expected ';' at end of member declaration 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/System/FileInputStream.hpp:116:58: error: 'filename' does not name a type 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:130:24: error: 'optional' in namespace 'std' does not name a template type 130 | [[nodiscard]] std::optional read(void* data, std::size_t size) override; | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:130:19: note: 'std::optional' is only available from C++17 onwards 130 | [[nodiscard]] std::optional read(void* data, std::size_t size) override; | ^~~ /usr/include/SFML/System/FileInputStream.hpp:140:24: error: 'optional' in namespace 'std' does not name a template type 140 | [[nodiscard]] std::optional seek(std::size_t position) override; | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:140:19: note: 'std::optional' is only available from C++17 onwards 140 | [[nodiscard]] std::optional seek(std::size_t position) override; | ^~~ /usr/include/SFML/System/FileInputStream.hpp:148:24: error: 'optional' in namespace 'std' does not name a template type 148 | [[nodiscard]] std::optional tell() override; | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:148:19: note: 'std::optional' is only available from C++17 onwards 148 | [[nodiscard]] std::optional tell() override; | ^~~ /usr/include/SFML/System/FileInputStream.hpp:156:10: error: 'optional' in namespace 'std' does not name a template type 156 | std::optional getSize() override; | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:156:5: note: 'std::optional' is only available from C++17 onwards 156 | std::optional getSize() override; | ^~~ In file included from /usr/include/SFML/System.hpp:39: /usr/include/SFML/System/MemoryInputStream.hpp:70:24: error: 'optional' in namespace 'std' does not name a template type 70 | [[nodiscard]] std::optional read(void* data, std::size_t size) override; | ^~~~~~~~ /usr/include/SFML/System/MemoryInputStream.hpp:70:19: note: 'std::optional' is only available from C++17 onwards 70 | [[nodiscard]] std::optional read(void* data, std::size_t size) override; | ^~~ /usr/include/SFML/System/MemoryInputStream.hpp:80:24: error: 'optional' in namespace 'std' does not name a template type 80 | [[nodiscard]] std::optional seek(std::size_t position) override; | ^~~~~~~~ /usr/include/SFML/System/MemoryInputStream.hpp:80:19: note: 'std::optional' is only available from C++17 onwards 80 | [[nodiscard]] std::optional seek(std::size_t position) override; | ^~~ /usr/include/SFML/System/MemoryInputStream.hpp:88:24: error: 'optional' in namespace 'std' does not name a template type 88 | [[nodiscard]] std::optional tell() override; | ^~~~~~~~ /usr/include/SFML/System/MemoryInputStream.hpp:88:19: note: 'std::optional' is only available from C++17 onwards 88 | [[nodiscard]] std::optional tell() override; | ^~~ /usr/include/SFML/System/MemoryInputStream.hpp:96:10: error: 'optional' in namespace 'std' does not name a template type 96 | std::optional getSize() override; | ^~~~~~~~ /usr/include/SFML/System/MemoryInputStream.hpp:96:5: note: 'std::optional' is only available from C++17 onwards 96 | std::optional getSize() override; | ^~~ /usr/include/SFML/System/MemoryInputStream.hpp:102:16: error: 'byte' in namespace 'std' does not name a type 102 | const std::byte* m_data{}; //!< Pointer to the data in memory | ^~~~ /usr/include/SFML/System/MemoryInputStream.hpp:102:11: note: 'std::byte' is only available from C++17 onwards 102 | const std::byte* m_data{}; //!< Pointer to the data in memory | ^~~ In file included from /usr/include/SFML/System/Utf.hpp:742, from /usr/include/SFML/System/String.hpp:32, from /usr/include/SFML/System.hpp:41: /usr/include/SFML/System/Utf.inl: In static member function 'static Out sf::Utf<8>::encode(char32_t, Out, uint8_t)': /usr/include/SFML/System/Utf.inl:137:25: error: 'byte' is not a member of 'std' 137 | std::array bytes{}; | ^~~~ /usr/include/SFML/System/Utf.inl:137:25: note: 'std::byte' is only available from C++17 onwards /usr/include/SFML/System/Utf.inl:137:25: error: 'byte' is not a member of 'std' /usr/include/SFML/System/Utf.inl:137:25: note: 'std::byte' is only available from C++17 onwards /usr/include/SFML/System/Utf.inl:137:32: error: template argument 1 is invalid 137 | std::array bytes{}; | ^ /usr/include/SFML/System/Utf.inl:142:26: error: invalid types 'int[int]' for array subscript 142 | case 4: bytes[3] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^ /usr/include/SFML/System/Utf.inl:142:49: error: 'byte' in namespace 'std' does not name a type 142 | case 4: bytes[3] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~~ /usr/include/SFML/System/Utf.inl:142:44: note: 'std::byte' is only available from C++17 onwards 142 | case 4: bytes[3] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~ /usr/include/SFML/System/Utf.inl:143:26: error: invalid types 'int[int]' for array subscript 143 | case 3: bytes[2] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^ /usr/include/SFML/System/Utf.inl:143:49: error: 'byte' in namespace 'std' does not name a type 143 | case 3: bytes[2] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~~ /usr/include/SFML/System/Utf.inl:143:44: note: 'std::byte' is only available from C++17 onwards 143 | case 3: bytes[2] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~ /usr/include/SFML/System/Utf.inl:144:26: error: invalid types 'int[int]' for array subscript 144 | case 2: bytes[1] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^ /usr/include/SFML/System/Utf.inl:144:49: error: 'byte' in namespace 'std' does not name a type 144 | case 2: bytes[1] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~~ /usr/include/SFML/System/Utf.inl:144:44: note: 'std::byte' is only available from C++17 onwards 144 | case 2: bytes[1] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~ /usr/include/SFML/System/Utf.inl:145:26: error: invalid types 'int[int]' for array subscript 145 | case 1: bytes[0] = static_cast (input | firstBytes[bytestoWrite]); | ^ /usr/include/SFML/System/Utf.inl:145:49: error: 'byte' in namespace 'std' does not name a type 145 | case 1: bytes[0] = static_cast (input | firstBytes[bytestoWrite]); | ^~~~ /usr/include/SFML/System/Utf.inl:145:44: note: 'std::byte' is only available from C++17 onwards 145 | case 1: bytes[0] = static_cast (input | firstBytes[bytestoWrite]); | ^~~ /usr/include/SFML/System/Utf.inl:150:35: error: request for member 'data' in 'bytes', which is of non-class type 'int' 150 | output = priv::copy(bytes.data(), bytes.data() + bytestoWrite, output); | ^~~~ /usr/include/SFML/System/Utf.inl:150:49: error: request for member 'data' in 'bytes', which is of non-class type 'int' 150 | output = priv::copy(bytes.data(), bytes.data() + bytestoWrite, output); | ^~~~ In file included from /usr/include/SFML/Window.hpp:32, from bh.h:31: /usr/include/SFML/Window/Context.hpp: At global scope: /usr/include/SFML/Window/Context.hpp:130:57: error: 'std::string_view' has not been declared 130 | [[nodiscard]] static bool isExtensionAvailable(std::string_view name); | ^~~~~~~~~~~ In file included from /usr/include/SFML/Window.hpp:34: /usr/include/SFML/Window/Cursor.hpp:226:31: error: 'optional' in namespace 'std' does not name a template type 226 | [[nodiscard]] static std::optional createFromPixels(const std::uint8_t* pixels, Vector2u size, Vector2u hotspot); | ^~~~~~~~ /usr/include/SFML/Window/Cursor.hpp:226:26: note: 'std::optional' is only available from C++17 onwards 226 | [[nodiscard]] static std::optional createFromPixels(const std::uint8_t* pixels, Vector2u size, Vector2u hotspot); | ^~~ /usr/include/SFML/Window/Cursor.hpp:242:31: error: 'optional' in namespace 'std' does not name a template type 242 | [[nodiscard]] static std::optional createFromSystem(Type type); | ^~~~~~~~ /usr/include/SFML/Window/Cursor.hpp:242:26: note: 'std::optional' is only available from C++17 onwards 242 | [[nodiscard]] static std::optional createFromSystem(Type type); | ^~~ In file included from /usr/include/SFML/Window.hpp:35: /usr/include/SFML/Window/Event.hpp:345:10: error: 'variant' in namespace 'std' does not name a template type 345 | std::variant*) | ^~~~~~~ /usr/include/SFML/Window/Event.hpp:374:65: note: 'std::variant' is only available from C++17 onwards 374 | [[nodiscard]] static constexpr bool isInParameterPack(const std::variant*) | ^~~ /usr/include/SFML/Window/Event.hpp:374:77: error: expected ',' or '...' before '<' token 374 | [[nodiscard]] static constexpr bool isInParameterPack(const std::variant*) | ^ /usr/include/SFML/Window/Event.hpp:380:76: error: 'm_data' was not declared in this scope 380 | static constexpr bool isEventSubtype = isInParameterPack(decltype (&m_data)(nullptr)); | ^~~~~~ /usr/include/SFML/Window/Event.hpp: In static member function 'static constexpr bool sf::Event::isInParameterPack(int)': /usr/include/SFML/Window/Event.hpp:376:22: error: 'is_same_v' is not a member of 'std'; did you mean 'is_same'? 376 | return (std::is_same_v || ...); | ^~~~~~~~~ | is_same /usr/include/SFML/Window/Event.hpp:376:33: error: expected primary-expression before ',' token 376 | return (std::is_same_v || ...); | ^ /usr/include/SFML/Window/Event.hpp:376:37: error: expected primary-expression before '>' token 376 | return (std::is_same_v || ...); | ^ /usr/include/SFML/Window/Event.hpp:376:39: error: expected primary-expression before '||' token 376 | return (std::is_same_v || ...); | ^~ /usr/include/SFML/Window/Event.hpp:376:42: error: operand of fold expression has no unexpanded parameter packs 376 | return (std::is_same_v || ...); | ^~~ In file included from /usr/include/SFML/Window/Event.hpp:385: /usr/include/SFML/Window/Event.inl: In constructor 'sf::Event::Event(const TEventSubtype&)': /usr/include/SFML/Window/Event.inl:47:9: error: 'm_data' was not declared in this scope 47 | m_data = eventSubtype; | ^~~~~~ /usr/include/SFML/Window/Event.inl: In member function 'bool sf::Event::is() const': /usr/include/SFML/Window/Event.inl:57:21: error: 'holds_alternative' is not a member of 'std' 57 | return std::holds_alternative(m_data); | ^~~~~~~~~~~~~~~~~ /usr/include/SFML/Window/Event.inl:57:21: note: 'std::holds_alternative' is only available from C++17 onwards /usr/include/SFML/Window/Event.inl:57:52: error: expected primary-expression before '>' token 57 | return std::holds_alternative(m_data); | ^ /usr/include/SFML/Window/Event.inl:57:54: error: 'm_data' was not declared in this scope 57 | return std::holds_alternative(m_data); | ^~~~~~ /usr/include/SFML/Window/Event.inl: In member function 'const TEventSubtype* sf::Event::getIf() const': /usr/include/SFML/Window/Event.inl:67:21: error: 'get_if' is not a member of 'std' 67 | return std::get_if(&m_data); | ^~~~~~ /usr/include/SFML/Window/Event.inl:67:41: error: expected primary-expression before '>' token 67 | return std::get_if(&m_data); | ^ /usr/include/SFML/Window/Event.inl:67:44: error: 'm_data' was not declared in this scope 67 | return std::get_if(&m_data); | ^~~~~~ /usr/include/SFML/Window/Event.inl: In member function 'decltype(auto) sf::Event::visit(T&&) const': /usr/include/SFML/Window/Event.inl:75:17: error: 'visit' is not a member of 'std' 75 | return std::visit(std::forward(visitor), m_data); | ^~~~~ /usr/include/SFML/Window/Event.inl:75:17: note: 'std::visit' is only available from C++17 onwards /usr/include/SFML/Window/Event.inl:75:49: error: 'm_data' was not declared in this scope 75 | return std::visit(std::forward(visitor), m_data); | ^~~~~~ In file included from /usr/include/SFML/Window/Window.hpp:32, from /usr/include/SFML/Window.hpp:42: /usr/include/SFML/Window/WindowBase.hpp: At global scope: /usr/include/SFML/Window/WindowBase.hpp:226:24: error: 'optional' in namespace 'std' does not name a template type 226 | [[nodiscard]] std::optional pollEvent(); | ^~~~~~~~ /usr/include/SFML/Window/WindowBase.hpp:226:19: note: 'std::optional' is only available from C++17 onwards 226 | [[nodiscard]] std::optional pollEvent(); | ^~~ /usr/include/SFML/Window/WindowBase.hpp:252:24: error: 'optional' in namespace 'std' does not name a template type 252 | [[nodiscard]] std::optional waitEvent(Time timeout = Time::Zero); | ^~~~~~~~ /usr/include/SFML/Window/WindowBase.hpp:252:19: note: 'std::optional' is only available from C++17 onwards 252 | [[nodiscard]] std::optional waitEvent(Time timeout = Time::Zero); | ^~~ /usr/include/SFML/Window/WindowBase.hpp:387:36: error: 'optional' in namespace 'std' does not name a template type 387 | void setMinimumSize(const std::optional& minimumSize); | ^~~~~~~~ /usr/include/SFML/Window/WindowBase.hpp:387:31: note: 'std::optional' is only available from C++17 onwards 387 | void setMinimumSize(const std::optional& minimumSize); | ^~~ /usr/include/SFML/Window/WindowBase.hpp:387:44: error: expected ',' or '...' before '<' token 387 | void setMinimumSize(const std::optional& minimumSize); | ^ /usr/include/SFML/Window/WindowBase.hpp:397:36: error: 'optional' in namespace 'std' does not name a template type 397 | void setMaximumSize(const std::optional& maximumSize); | ^~~~~~~~ /usr/include/SFML/Window/WindowBase.hpp:397:31: note: 'std::optional' is only available from C++17 onwards 397 | void setMaximumSize(const std::optional& maximumSize); | ^~~ /usr/include/SFML/Window/WindowBase.hpp:397:44: error: expected ',' or '...' before '<' token 397 | void setMaximumSize(const std::optional& maximumSize); | ^ In file included from /usr/include/SFML/Window/WindowBase.hpp:617: /usr/include/SFML/Window/WindowBase.inl:47:41: error: expected constructor, destructor, or type conversion before ';' token 47 | OverloadSet(Ts...) -> OverloadSet; | ^ /usr/include/SFML/Window/WindowBase.inl: In member function 'void sf::WindowBase::handleEvents(Ts&& ...)': /usr/include/SFML/Window/WindowBase.inl:69:23: error: missing template arguments before 'overloadSet' 69 | priv::OverloadSet overloadSet{std::forward(handlers)..., [](const priv::DelayOverloadResolution&) { /* ignore */ }}; | ^~~~~~~~~~~ /usr/include/SFML/Window/WindowBase.inl:71:32: error: qualified-id in declaration before 'event' 71 | while (const std::optional event = pollEvent()) | ^~~~~ /usr/include/SFML/Window/WindowBase.inl:72:9: error: 'event' was not declared in this scope; did you mean 'Event'? 72 | event->visit(overloadSet); | ^~~~~ | Event /usr/include/SFML/Window/WindowBase.inl:72:22: error: 'overloadSet' was not declared in this scope 72 | event->visit(overloadSet); | ^~~~~~~~~~~ In file included from /usr/include/SFML/Graphics/Color.hpp:229, from /usr/include/SFML/Graphics/Shape.hpp:32, from /usr/include/SFML/Graphics/CircleShape.hpp:32, from /usr/include/SFML/Graphics.hpp:32, from bh.h:32: /usr/include/SFML/Graphics/Color.inl: In function 'constexpr sf::Color sf::operator+(Color, Color)': /usr/include/SFML/Graphics/Color.inl:77:16: error: variable 'clampedAdd' of non-literal type 'const sf::operator+(Color, Color)::' in 'constexpr' function only available with '-std=c++2b' or '-std=gnu++2b' 77 | const auto clampedAdd = [](std::uint8_t lhs, std::uint8_t rhs) | ^~~~~~~~~~ /usr/include/SFML/Graphics/Color.inl:77:30: note: 'sf::operator+(Color, Color)::' is not literal because: 77 | const auto clampedAdd = [](std::uint8_t lhs, std::uint8_t rhs) | ^ cc1plus: note: 'sf::operator+(Color, Color)::' is a closure type, which is only literal in C++17 and later /usr/include/SFML/Graphics/Color.inl: In function 'constexpr sf::Color sf::operator-(Color, Color)': /usr/include/SFML/Graphics/Color.inl:93:16: error: variable 'clampedSub' of non-literal type 'const sf::operator-(Color, Color)::' in 'constexpr' function only available with '-std=c++2b' or '-std=gnu++2b' 93 | const auto clampedSub = [](std::uint8_t lhs, std::uint8_t rhs) | ^~~~~~~~~~ /usr/include/SFML/Graphics/Color.inl:93:30: note: 'sf::operator-(Color, Color)::' is not literal because: 93 | const auto clampedSub = [](std::uint8_t lhs, std::uint8_t rhs) | ^ cc1plus: note: 'sf::operator-(Color, Color)::' is a closure type, which is only literal in C++17 and later /usr/include/SFML/Graphics/Color.inl: In function 'constexpr sf::Color sf::operator*(Color, Color)': /usr/include/SFML/Graphics/Color.inl:109:16: error: variable 'scaledMul' of non-literal type 'const sf::operator*(Color, Color)::' in 'constexpr' function only available with '-std=c++2b' or '-std=gnu++2b' 109 | const auto scaledMul = [](std::uint8_t lhs, std::uint8_t rhs) | ^~~~~~~~~ /usr/include/SFML/Graphics/Color.inl:109:29: note: 'sf::operator*(Color, Color)::' is not literal because: 109 | const auto scaledMul = [](std::uint8_t lhs, std::uint8_t rhs) | ^ cc1plus: note: 'sf::operator*(Color, Color)::' is a closure type, which is only literal in C++17 and later In file included from /usr/include/SFML/Graphics/Shape.hpp:35: /usr/include/SFML/Graphics/Rect.hpp: At global scope: /usr/include/SFML/Graphics/Rect.hpp:98:34: error: 'optional' in namespace 'std' does not name a template type 98 | [[nodiscard]] constexpr std::optional> findIntersection(const Rect& rectangle) const; | ^~~~~~~~ /usr/include/SFML/Graphics/Rect.hpp:98:29: note: 'std::optional' is only available from C++17 onwards 98 | [[nodiscard]] constexpr std::optional> findIntersection(const Rect& rectangle) const; | ^~~ In file included from /usr/include/SFML/Graphics/Rect.hpp:151: /usr/include/SFML/Graphics/Rect.inl:71:16: error: 'optional' in namespace 'std' does not name a template type 71 | constexpr std::optional> Rect::findIntersection(const Rect& rectangle) const | ^~~~~~~~ /usr/include/SFML/Graphics/Rect.inl:71:11: note: 'std::optional' is only available from C++17 onwards 71 | constexpr std::optional> Rect::findIntersection(const Rect& rectangle) const | ^~~ In file included from /usr/include/SFML/Graphics/Transform.hpp:352, from /usr/include/SFML/Graphics/RenderStates.hpp:35, from /usr/include/SFML/Graphics/Shape.hpp:36: /usr/include/SFML/Graphics/Transform.inl: In member function 'constexpr sf::FloatRect sf::Transform::transformRect(const sf::FloatRect&) const': /usr/include/SFML/Graphics/Transform.inl:101:11: error: invalid use of template-name 'std::array' without an argument list 101 | const std::array points = {transformPoint(rectangle.position), | ^~~ /usr/include/SFML/Graphics/Transform.inl:101:11: note: class template argument deduction is only available with '-std=c++17' or '-std=gnu++17' In file included from /usr/include/c++/14/bits/stl_algobase.h:64, from /usr/include/c++/14/string:51, from bh.h:27: /usr/include/c++/14/bits/stl_pair.h:99:12: note: 'template struct std::array' declared here 99 | struct array; | ^~~~~ /usr/include/SFML/Graphics/Transform.inl:107:21: error: 'points' was not declared in this scope; did you mean 'printf'? 107 | Vector2f pmin = points[0]; | ^~~~~~ | printf In file included from /usr/include/SFML/Graphics/Font.hpp:34, from /usr/include/SFML/Graphics.hpp:36: /usr/include/SFML/Graphics/Texture.hpp: At global scope: /usr/include/SFML/Graphics/Texture.hpp:114:33: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Texture.hpp:114:49: error: expected unqualified-id before '&' token 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^ /usr/include/SFML/Graphics/Texture.hpp:114:49: error: expected ')' before '&' token 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ~ ^ | ) /usr/include/SFML/Graphics/Texture.hpp:114:49: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Texture.hpp:114:49: error: expected ';' at end of member declaration 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^ | ; /usr/include/SFML/Graphics/Texture.hpp:114:51: error: 'filename' does not name a type 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^~~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:137:24: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Texture.hpp:137:40: error: expected unqualified-id before '&' token 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^ /usr/include/SFML/Graphics/Texture.hpp:137:40: error: expected ')' before '&' token 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ~ ^ | ) /usr/include/SFML/Graphics/Texture.hpp:137:40: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Texture.hpp:137:40: error: expected ';' at end of member declaration 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^ | ; /usr/include/SFML/Graphics/Texture.hpp:137:5: error: 'sf::Texture::Texture(...)' cannot be overloaded with 'sf::Texture::Texture(...)' 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:114:14: note: previous declaration 'sf::Texture::Texture(...)' 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:137:42: error: 'filename' does not name a type 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^~~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:304:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Texture.hpp:304:64: error: expected unqualified-id before '&' token 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^ /usr/include/SFML/Graphics/Texture.hpp:304:64: error: expected ')' before '&' token 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ~ ^ | ) /usr/include/SFML/Graphics/Texture.hpp:304:64: error: expected ';' at end of member declaration 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^ | ; /usr/include/SFML/Graphics/Texture.hpp:304:66: error: 'filename' does not name a type 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^~~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:304:119: error: expected unqualified-id before ')' token 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^ /usr/include/SFML/Graphics/Font.hpp:103:30: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 103 | explicit Font(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Font.hpp:103:46: error: expected unqualified-id before '&' token 103 | explicit Font(const std::filesystem::path& filename); | ^ /usr/include/SFML/Graphics/Font.hpp:103:46: error: expected ')' before '&' token 103 | explicit Font(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Graphics/Font.hpp:103:46: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Font.hpp:103:46: error: expected ';' at end of member declaration 103 | explicit Font(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Graphics/Font.hpp:103:48: error: 'filename' does not name a type 103 | explicit Font(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/Graphics/Font.hpp:168:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Font.hpp:168:64: error: expected unqualified-id before '&' token 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^ /usr/include/SFML/Graphics/Font.hpp:168:64: error: expected ')' before '&' token 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Graphics/Font.hpp:168:64: error: expected ';' at end of member declaration 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Graphics/Font.hpp:168:66: error: 'filename' does not name a type 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^~~~~~~~ In file included from /usr/include/SFML/Graphics.hpp:38: /usr/include/SFML/Graphics/Image.hpp:103:31: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 103 | explicit Image(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Image.hpp:103:47: error: expected unqualified-id before '&' token 103 | explicit Image(const std::filesystem::path& filename); | ^ /usr/include/SFML/Graphics/Image.hpp:103:47: error: expected ')' before '&' token 103 | explicit Image(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Graphics/Image.hpp:103:47: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Image.hpp:103:47: error: expected ';' at end of member declaration 103 | explicit Image(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Graphics/Image.hpp:103:49: error: 'filename' does not name a type 103 | explicit Image(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/Graphics/Image.hpp:175:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Image.hpp:175:64: error: expected unqualified-id before '&' token 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^ /usr/include/SFML/Graphics/Image.hpp:175:64: error: expected ')' before '&' token 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Graphics/Image.hpp:175:64: error: expected ';' at end of member declaration 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Graphics/Image.hpp:175:66: error: 'filename' does not name a type 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/Graphics/Image.hpp:227:46: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Image.hpp:227:62: error: expected unqualified-id before '&' token 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^ /usr/include/SFML/Graphics/Image.hpp:227:62: error: expected ')' before '&' token 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ~ ^ | ) /usr/include/SFML/Graphics/Image.hpp:227:62: error: expected ';' at end of member declaration 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^ | ; /usr/include/SFML/Graphics/Image.hpp:227:64: error: 'filename' does not name a type 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^~~~~~~~ /usr/include/SFML/Graphics/Image.hpp:245:24: error: 'optional' in namespace 'std' does not name a template type 245 | [[nodiscard]] std::optional> saveToMemory(std::string_view format) const; | ^~~~~~~~ /usr/include/SFML/Graphics/Image.hpp:245:19: note: 'std::optional' is only available from C++17 onwards 245 | [[nodiscard]] std::optional> saveToMemory(std::string_view format) const; | ^~~ In file included from /usr/include/SFML/Graphics.hpp:46: /usr/include/SFML/Graphics/Shader.hpp:147:23: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 147 | Shader(const std::filesystem::path& filename, Type type); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:147:39: error: expected unqualified-id before '&' token 147 | Shader(const std::filesystem::path& filename, Type type); | ^ /usr/include/SFML/Graphics/Shader.hpp:147:39: error: expected ')' before '&' token 147 | Shader(const std::filesystem::path& filename, Type type); | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:147:39: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Shader.hpp:147:39: error: expected ';' at end of member declaration 147 | Shader(const std::filesystem::path& filename, Type type); | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:147:41: error: 'filename' does not name a type 147 | Shader(const std::filesystem::path& filename, Type type); | ^~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:168:23: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:168:39: error: expected unqualified-id before '&' token 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^ /usr/include/SFML/Graphics/Shader.hpp:168:39: error: expected ')' before '&' token 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:168:39: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Shader.hpp:168:39: error: expected ';' at end of member declaration 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:168:5: error: 'sf::Shader::Shader(...)' cannot be overloaded with 'sf::Shader::Shader(...)' 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^~~~~~ /usr/include/SFML/Graphics/Shader.hpp:147:5: note: previous declaration 'sf::Shader::Shader(...)' 147 | Shader(const std::filesystem::path& filename, Type type); | ^~~~~~ /usr/include/SFML/Graphics/Shader.hpp:168:41: error: 'vertexShaderFilename' does not name a type 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:190:23: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:190:39: error: expected unqualified-id before '&' token 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^ /usr/include/SFML/Graphics/Shader.hpp:190:39: error: expected ')' before '&' token 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:190:39: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Shader.hpp:190:39: error: expected ';' at end of member declaration 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:190:5: error: 'sf::Shader::Shader(...)' cannot be overloaded with 'sf::Shader::Shader(...)' 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^~~~~~ /usr/include/SFML/Graphics/Shader.hpp:147:5: note: previous declaration 'sf::Shader::Shader(...)' 147 | Shader(const std::filesystem::path& filename, Type type); | ^~~~~~ /usr/include/SFML/Graphics/Shader.hpp:190:41: error: 'vertexShaderFilename' does not name a type 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:212:28: error: expected ')' before 'shader' 212 | Shader(std::string_view shader, Type type); | ~ ^~~~~~~ | ) /usr/include/SFML/Graphics/Shader.hpp:233:28: error: expected ')' before 'vertexShader' 233 | Shader(std::string_view vertexShader, std::string_view fragmentShader); | ~ ^~~~~~~~~~~~~ | ) /usr/include/SFML/Graphics/Shader.hpp:255:28: error: expected ')' before 'vertexShader' 255 | Shader(std::string_view vertexShader, std::string_view geometryShader, std::string_view fragmentShader); | ~ ^~~~~~~~~~~~~ | ) /usr/include/SFML/Graphics/Shader.hpp:339:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:339:64: error: expected unqualified-id before '&' token 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^ /usr/include/SFML/Graphics/Shader.hpp:339:64: error: expected ')' before '&' token 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:339:64: error: expected ';' at end of member declaration 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:339:66: error: 'filename' does not name a type 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:360:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:360:64: error: expected unqualified-id before '&' token 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^ /usr/include/SFML/Graphics/Shader.hpp:360:64: error: expected ')' before '&' token 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:360:64: error: expected ';' at end of member declaration 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:360:24: error: 'bool sf::Shader::loadFromFile(...) &' cannot be overloaded with 'bool sf::Shader::loadFromFile(...) &' 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:339:24: note: previous declaration 'bool sf::Shader::loadFromFile(...) &' 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:360:66: error: 'vertexShaderFilename' does not name a type 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:383:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:383:64: error: expected unqualified-id before '&' token 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^ /usr/include/SFML/Graphics/Shader.hpp:383:64: error: expected ')' before '&' token 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:383:64: error: expected ';' at end of member declaration 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:383:24: error: 'bool sf::Shader::loadFromFile(...) &' cannot be overloaded with 'bool sf::Shader::loadFromFile(...) &' 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:339:24: note: previous declaration 'bool sf::Shader::loadFromFile(...) &' 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:383:66: error: 'vertexShaderFilename' does not name a type 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:405:44: error: 'std::string_view' has not been declared 405 | [[nodiscard]] bool loadFromMemory(std::string_view shader, Type type); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:426:44: error: 'std::string_view' has not been declared 426 | [[nodiscard]] bool loadFromMemory(std::string_view vertexShader, std::string_view fragmentShader); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:426:75: error: 'std::string_view' has not been declared 426 | [[nodiscard]] bool loadFromMemory(std::string_view vertexShader, std::string_view fragmentShader); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:448:44: error: 'std::string_view' has not been declared 448 | [[nodiscard]] bool loadFromMemory(std::string_view vertexShader, | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:449:44: error: 'std::string_view' has not been declared 449 | std::string_view geometryShader, | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:450:44: error: 'std::string_view' has not been declared 450 | std::string_view fragmentShader); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:861:37: error: 'std::string_view' has not been declared 861 | [[nodiscard]] bool compile(std::string_view vertexShaderCode, | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:862:37: error: 'std::string_view' has not been declared 862 | std::string_view geometryShaderCode, | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:863:37: error: 'std::string_view' has not been declared 863 | std::string_view fragmentShaderCode); | ^~~~~~~~~~~ In file included from credits.cpp:27: gui.h:62:22: warning: 'virtual void TWidget::Focussed()' was hidden [-Woverloaded-virtual=] 62 | virtual void Focussed() {} | ^~~~~~~~ gui.h:76:14: note: by 'void TLabel::Focussed(bool)' 76 | void Focussed(bool masterFocus); | ^~~~~~~~ In file included from credits.cpp:29: winsys.h: In member function 'bool CWinsys::PollEvent(sf::Event&)': winsys.h:65:58: error: 'class sf::RenderWindow' has no member named 'pollEvent' 65 | bool PollEvent(sf::Event& event) { return window.pollEvent(event); } | ^~~~~~~~~ credits.cpp: At global scope: credits.cpp:42:25: error: 'Quads' is not a member of 'sf' 42 | sf::VertexArray arr(sf::Quads, 12); | ^~~~~ credits.cpp: In member function 'void CCredits::DrawCreditsText(float)': credits.cpp:75:18: error: no matching function for call to 'sf::Text::Text()' 75 | sf::Text text; | ^~~~ In file included from /usr/include/SFML/Graphics.hpp:50: /usr/include/SFML/Graphics/Text.hpp:87:5: note: candidate: 'sf::Text::Text(const sf::Font&, sf::String, unsigned int)' 87 | Text(const Font& font, String string = "", unsigned int characterSize = 30); | ^~~~ /usr/include/SFML/Graphics/Text.hpp:87:5: note: candidate expects 3 arguments, 0 provided /usr/include/SFML/Graphics/Text.hpp:56:25: note: candidate: 'sf::Text::Text(const sf::Text&)' 56 | class SFML_GRAPHICS_API Text : public Drawable, public Transformable | ^~~~ /usr/include/SFML/Graphics/Text.hpp:56:25: note: candidate expects 1 argument, 0 provided /usr/include/SFML/Graphics/Text.hpp:56:25: note: candidate: 'sf::Text::Text(sf::Text&&)' /usr/include/SFML/Graphics/Text.hpp:56:25: note: candidate expects 1 argument, 0 provided credits.cpp:92:83: error: 'using sf::FloatRect = class sf::Rect' {aka 'class sf::Rect'} has no member named 'width' 92 | text.setPosition((Winsys.resolution.width - text.getLocalBounds().width) / 2, offs); | ^~~~~ credits.cpp: In member function 'virtual void CCredits::Keyb(sf::Keyboard::Key, bool, int, int)': credits.cpp:105:36: error: 'M' is not a member of 'sf::Keyboard' 105 | case sf::Keyboard::M: | ^ credits.cpp:105:36: note: suggested alternatives: In file included from /usr/include/SFML/Window/Event.hpp:31: /usr/include/SFML/Window/Keyboard.hpp:187:5: note: 'sf::Keyboard::Scan::M' 187 | M, //!< Keyboard m and M key | ^ /usr/include/SFML/Window/Keyboard.hpp:187:5: note: 'sf::Keyboard::Scan::M' /usr/include/SFML/Window/Keyboard.hpp:66:5: note: 'sf::Keyboard::Key::M' 66 | M, //!< The M key | ^ credits.cpp:108:36: error: 'U' is not a member of 'sf::Keyboard' 108 | case sf::Keyboard::U: | ^ credits.cpp:108:36: note: suggested alternatives: In file included from /usr/include/SFML/Window/Event.hpp:30: /usr/include/SFML/Window/Joystick.hpp:60:5: note: 'sf::Joystick::Axis::U' 60 | U, //!< The U axis | ^ /usr/include/SFML/Window/Keyboard.hpp:195:5: note: 'sf::Keyboard::Scan::U' 195 | U, //!< Keyboard u and U key | ^ /usr/include/SFML/Window/Keyboard.hpp:195:5: note: 'sf::Keyboard::Scan::U' /usr/include/SFML/Window/Keyboard.hpp:74:5: note: 'sf::Keyboard::Key::U' 74 | U, //!< The U key | ^ credits.cpp: In member function 'virtual void CCredits::Enter()': credits.cpp:131:13: error: 'class sf::RenderTexture' has no member named 'create' 131 | RT->create(Winsys.resolution.width, Winsys.resolution.height - TOP_Y - BOTT_Y + 2 * FADE); | ^~~~~~ credits.cpp:135:89: error: no matching function for call to 'sf::Vertex::Vertex(sf::Vector2f, const sf::Color&, sf::Vector2f)' 135 | arr[0] = sf::Vertex(sf::Vector2f(0, TOP_Y - FADE), colTBackr, sf::Vector2f(0, 0)); | ^ In file included from /usr/include/SFML/Graphics/VertexArray.hpp:36, from /usr/include/SFML/Graphics/Shape.hpp:38: /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate: 'constexpr sf::Vertex::Vertex()' 43 | struct Vertex | ^~~~~~ /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate expects 0 arguments, 3 provided /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate: 'constexpr sf::Vertex::Vertex(const sf::Vertex&)' /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate expects 1 argument, 3 provided /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate: 'constexpr sf::Vertex::Vertex(sf::Vertex&&)' /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate expects 1 argument, 3 provided credits.cpp:136:84: error: no matching function for call to 'sf::Vertex::Vertex(sf::Vector2f, const sf::Color&, sf::Vector2f)' 136 | arr[1] = sf::Vertex(sf::Vector2f(0, TOP_Y), colWhite, sf::Vector2f(0, FADE)); | ^ /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate: 'constexpr sf::Vertex::Vertex()' 43 | struct Vertex | ^~~~~~ /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate expects 0 arguments, 3 provided /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate: 'constexpr sf::Vertex::Vertex(const sf::Vertex&)' /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate expects 1 argument, 3 provided /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate: 'constexpr sf::Vertex::Vertex(sf::Vertex&&)' /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate expects 1 argument, 3 provided credits.cpp:137:84: error: no matching function for call to 'sf::Vertex::Vertex(sf::Vector2f, const sf::Color&, sf::Vector2f)' 137 | arr[2] = sf::Vertex(sf::Vector2f(w, TOP_Y), colWhite, sf::Vector2f(w, FADE)); | ^ /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate: 'constexpr sf::Vertex::Vertex()' 43 | struct Vertex | ^~~~~~ /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate expects 0 arguments, 3 provided /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate: 'constexpr sf::Vertex::Vertex(const sf::Vertex&)' /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate expects 1 argument, 3 provided /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate: 'constexpr sf::Vertex::Vertex(sf::Vertex&&)' /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate expects 1 argument, 3 provided credits.cpp:138:89: error: no matching function for call to 'sf::Vertex::Vertex(sf::Vector2f, const sf::Color&, sf::Vector2f)' 138 | arr[3] = sf::Vertex(sf::Vector2f(w, TOP_Y - FADE), colTBackr, sf::Vector2f(w, 0)); | ^ /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate: 'constexpr sf::Vertex::Vertex()' 43 | struct Vertex | ^~~~~~ /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate expects 0 arguments, 3 provided /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate: 'constexpr sf::Vertex::Vertex(const sf::Vertex&)' /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate expects 1 argument, 3 provided /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate: 'constexpr sf::Vertex::Vertex(sf::Vertex&&)' /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate expects 1 argument, 3 provided credits.cpp:140:84: error: no matching function for call to 'sf::Vertex::Vertex(sf::Vector2f, const sf::Color&, sf::Vector2f)' 140 | arr[4] = sf::Vertex(sf::Vector2f(0, TOP_Y), colWhite, sf::Vector2f(0, FADE)); | ^ /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate: 'constexpr sf::Vertex::Vertex()' 43 | struct Vertex | ^~~~~~ /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate expects 0 arguments, 3 provided /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate: 'constexpr sf::Vertex::Vertex(const sf::Vertex&)' /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate expects 1 argument, 3 provided /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate: 'constexpr sf::Vertex::Vertex(sf::Vertex&&)' /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate expects 1 argument, 3 provided credits.cpp:141:107: error: no matching function for call to 'sf::Vertex::Vertex(sf::Vector2f, const sf::Color&, sf::Vector2f)' 141 | arr[5] = sf::Vertex(sf::Vector2f(0, h - BOTT_Y), colWhite, sf::Vector2f(0, RT->getSize().y - FADE)); | ^ /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate: 'constexpr sf::Vertex::Vertex()' 43 | struct Vertex | ^~~~~~ /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate expects 0 arguments, 3 provided /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate: 'constexpr sf::Vertex::Vertex(const sf::Vertex&)' /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate expects 1 argument, 3 provided /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate: 'constexpr sf::Vertex::Vertex(sf::Vertex&&)' /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate expects 1 argument, 3 provided credits.cpp:142:107: error: no matching function for call to 'sf::Vertex::Vertex(sf::Vector2f, const sf::Color&, sf::Vector2f)' 142 | arr[6] = sf::Vertex(sf::Vector2f(w, h - BOTT_Y), colWhite, sf::Vector2f(w, RT->getSize().y - FADE)); | ^ /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate: 'constexpr sf::Vertex::Vertex()' 43 | struct Vertex | ^~~~~~ /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate expects 0 arguments, 3 provided /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate: 'constexpr sf::Vertex::Vertex(const sf::Vertex&)' /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate expects 1 argument, 3 provided /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate: 'constexpr sf::Vertex::Vertex(sf::Vertex&&)' /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate expects 1 argument, 3 provided credits.cpp:143:84: error: no matching function for call to 'sf::Vertex::Vertex(sf::Vector2f, const sf::Color&, sf::Vector2f)' 143 | arr[7] = sf::Vertex(sf::Vector2f(w, TOP_Y), colWhite, sf::Vector2f(w, FADE)); | ^ /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate: 'constexpr sf::Vertex::Vertex()' 43 | struct Vertex | ^~~~~~ /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate expects 0 arguments, 3 provided /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate: 'constexpr sf::Vertex::Vertex(const sf::Vertex&)' /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate expects 1 argument, 3 provided /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate: 'constexpr sf::Vertex::Vertex(sf::Vertex&&)' /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate expects 1 argument, 3 provided credits.cpp:145:107: error: no matching function for call to 'sf::Vertex::Vertex(sf::Vector2f, const sf::Color&, sf::Vector2f)' 145 | arr[8] = sf::Vertex(sf::Vector2f(0, h - BOTT_Y), colWhite, sf::Vector2f(0, RT->getSize().y - FADE)); | ^ /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate: 'constexpr sf::Vertex::Vertex()' 43 | struct Vertex | ^~~~~~ /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate expects 0 arguments, 3 provided /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate: 'constexpr sf::Vertex::Vertex(const sf::Vertex&)' /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate expects 1 argument, 3 provided /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate: 'constexpr sf::Vertex::Vertex(sf::Vertex&&)' /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate expects 1 argument, 3 provided credits.cpp:146:108: error: no matching function for call to 'sf::Vertex::Vertex(sf::Vector2f, const sf::Color&, sf::Vector2f)' 146 | arr[9] = sf::Vertex(sf::Vector2f(0, h - BOTT_Y + FADE), colTBackr, sf::Vector2f(0, RT->getSize().y)); | ^ /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate: 'constexpr sf::Vertex::Vertex()' 43 | struct Vertex | ^~~~~~ /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate expects 0 arguments, 3 provided /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate: 'constexpr sf::Vertex::Vertex(const sf::Vertex&)' /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate expects 1 argument, 3 provided /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate: 'constexpr sf::Vertex::Vertex(sf::Vertex&&)' /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate expects 1 argument, 3 provided credits.cpp:147:109: error: no matching function for call to 'sf::Vertex::Vertex(sf::Vector2f, const sf::Color&, sf::Vector2f)' 147 | arr[10] = sf::Vertex(sf::Vector2f(w, h - BOTT_Y + FADE), colTBackr, sf::Vector2f(w, RT->getSize().y)); | ^ /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate: 'constexpr sf::Vertex::Vertex()' 43 | struct Vertex | ^~~~~~ /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate expects 0 arguments, 3 provided /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate: 'constexpr sf::Vertex::Vertex(const sf::Vertex&)' /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate expects 1 argument, 3 provided /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate: 'constexpr sf::Vertex::Vertex(sf::Vertex&&)' /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate expects 1 argument, 3 provided credits.cpp:148:108: error: no matching function for call to 'sf::Vertex::Vertex(sf::Vector2f, const sf::Color&, sf::Vector2f)' 148 | arr[11] = sf::Vertex(sf::Vector2f(w, h - BOTT_Y), colWhite, sf::Vector2f(w, RT->getSize().y - FADE)); | ^ /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate: 'constexpr sf::Vertex::Vertex()' 43 | struct Vertex | ^~~~~~ /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate expects 0 arguments, 3 provided /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate: 'constexpr sf::Vertex::Vertex(const sf::Vertex&)' /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate expects 1 argument, 3 provided /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate: 'constexpr sf::Vertex::Vertex(sf::Vertex&&)' /usr/include/SFML/Graphics/Vertex.hpp:43:8: note: candidate expects 1 argument, 3 provided make[2]: *** [Makefile:566: credits.o] Error 1 make[2]: Leaving directory '/usr/src/RPM/BUILD/etr-0.8.4/src' make[2]: Entering directory '/usr/src/RPM/BUILD/etr-0.8.4/src' x86_64-alt-linux-g++ -DHAVE_CONFIG_H -I. -I.. -DETR_DATA_DIR=\"/usr/share\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -std=c++14 -c -o event.o event.cpp In file included from /usr/include/SFML/System.hpp:34, from bh.h:30, from event.h:21, from event.cpp:22: /usr/include/SFML/System/Clock.hpp:78:20: error: 'ratio_less_equal_v' is not a member of 'std'; did you mean 'ratio_less_equal'? 78 | static_assert(std::ratio_less_equal_v, | ^~~~~~~~~~~~~~~~~~ | ratio_less_equal /usr/include/SFML/System/Clock.hpp:78:56: error: expected primary-expression before ',' token 78 | static_assert(std::ratio_less_equal_v, | ^ /usr/include/SFML/System/Clock.hpp:78:68: error: expected primary-expression before '>' token 78 | static_assert(std::ratio_less_equal_v, | ^ /usr/include/SFML/System/Clock.hpp:78:69: error: expected primary-expression before ',' token 78 | static_assert(std::ratio_less_equal_v, | ^ /usr/include/SFML/System/Clock.hpp:78:69: error: expected ')' before ',' token 78 | static_assert(std::ratio_less_equal_v, | ~ ^ | ) In file included from /usr/include/SFML/System/FileInputStream.hpp:34, from /usr/include/SFML/System.hpp:37: /usr/include/SFML/System/InputStream.hpp:66:32: error: 'optional' in namespace 'std' does not name a template type 66 | [[nodiscard]] virtual std::optional read(void* data, std::size_t size) = 0; | ^~~~~~~~ /usr/include/SFML/System/InputStream.hpp:66:27: note: 'std::optional' is only available from C++17 onwards 66 | [[nodiscard]] virtual std::optional read(void* data, std::size_t size) = 0; | ^~~ /usr/include/SFML/System/InputStream.hpp:76:32: error: 'optional' in namespace 'std' does not name a template type 76 | [[nodiscard]] virtual std::optional seek(std::size_t position) = 0; | ^~~~~~~~ /usr/include/SFML/System/InputStream.hpp:76:27: note: 'std::optional' is only available from C++17 onwards 76 | [[nodiscard]] virtual std::optional seek(std::size_t position) = 0; | ^~~ /usr/include/SFML/System/InputStream.hpp:84:32: error: 'optional' in namespace 'std' does not name a template type 84 | [[nodiscard]] virtual std::optional tell() = 0; | ^~~~~~~~ /usr/include/SFML/System/InputStream.hpp:84:27: note: 'std::optional' is only available from C++17 onwards 84 | [[nodiscard]] virtual std::optional tell() = 0; | ^~~ /usr/include/SFML/System/InputStream.hpp:92:18: error: 'optional' in namespace 'std' does not name a template type 92 | virtual std::optional getSize() = 0; | ^~~~~~~~ /usr/include/SFML/System/InputStream.hpp:92:13: note: 'std::optional' is only available from C++17 onwards 92 | virtual std::optional getSize() = 0; | ^~~ /usr/include/SFML/System/FileInputStream.hpp:106:41: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 106 | explicit FileInputStream(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/System/FileInputStream.hpp:106:57: error: expected unqualified-id before '&' token 106 | explicit FileInputStream(const std::filesystem::path& filename); | ^ /usr/include/SFML/System/FileInputStream.hpp:106:57: error: expected ')' before '&' token 106 | explicit FileInputStream(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/System/FileInputStream.hpp:106:57: error: constructors may not be ref-qualified /usr/include/SFML/System/FileInputStream.hpp:106:57: error: expected ';' at end of member declaration 106 | explicit FileInputStream(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/System/FileInputStream.hpp:106:59: error: 'filename' does not name a type 106 | explicit FileInputStream(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:116:40: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/System/FileInputStream.hpp:116:56: error: expected unqualified-id before '&' token 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ^ /usr/include/SFML/System/FileInputStream.hpp:116:56: error: expected ')' before '&' token 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/System/FileInputStream.hpp:116:56: error: expected ';' at end of member declaration 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/System/FileInputStream.hpp:116:58: error: 'filename' does not name a type 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:130:24: error: 'optional' in namespace 'std' does not name a template type 130 | [[nodiscard]] std::optional read(void* data, std::size_t size) override; | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:130:19: note: 'std::optional' is only available from C++17 onwards 130 | [[nodiscard]] std::optional read(void* data, std::size_t size) override; | ^~~ /usr/include/SFML/System/FileInputStream.hpp:140:24: error: 'optional' in namespace 'std' does not name a template type 140 | [[nodiscard]] std::optional seek(std::size_t position) override; | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:140:19: note: 'std::optional' is only available from C++17 onwards 140 | [[nodiscard]] std::optional seek(std::size_t position) override; | ^~~ /usr/include/SFML/System/FileInputStream.hpp:148:24: error: 'optional' in namespace 'std' does not name a template type 148 | [[nodiscard]] std::optional tell() override; | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:148:19: note: 'std::optional' is only available from C++17 onwards 148 | [[nodiscard]] std::optional tell() override; | ^~~ /usr/include/SFML/System/FileInputStream.hpp:156:10: error: 'optional' in namespace 'std' does not name a template type 156 | std::optional getSize() override; | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:156:5: note: 'std::optional' is only available from C++17 onwards 156 | std::optional getSize() override; | ^~~ In file included from /usr/include/SFML/System.hpp:39: /usr/include/SFML/System/MemoryInputStream.hpp:70:24: error: 'optional' in namespace 'std' does not name a template type 70 | [[nodiscard]] std::optional read(void* data, std::size_t size) override; | ^~~~~~~~ /usr/include/SFML/System/MemoryInputStream.hpp:70:19: note: 'std::optional' is only available from C++17 onwards 70 | [[nodiscard]] std::optional read(void* data, std::size_t size) override; | ^~~ /usr/include/SFML/System/MemoryInputStream.hpp:80:24: error: 'optional' in namespace 'std' does not name a template type 80 | [[nodiscard]] std::optional seek(std::size_t position) override; | ^~~~~~~~ /usr/include/SFML/System/MemoryInputStream.hpp:80:19: note: 'std::optional' is only available from C++17 onwards 80 | [[nodiscard]] std::optional seek(std::size_t position) override; | ^~~ /usr/include/SFML/System/MemoryInputStream.hpp:88:24: error: 'optional' in namespace 'std' does not name a template type 88 | [[nodiscard]] std::optional tell() override; | ^~~~~~~~ /usr/include/SFML/System/MemoryInputStream.hpp:88:19: note: 'std::optional' is only available from C++17 onwards 88 | [[nodiscard]] std::optional tell() override; | ^~~ /usr/include/SFML/System/MemoryInputStream.hpp:96:10: error: 'optional' in namespace 'std' does not name a template type 96 | std::optional getSize() override; | ^~~~~~~~ /usr/include/SFML/System/MemoryInputStream.hpp:96:5: note: 'std::optional' is only available from C++17 onwards 96 | std::optional getSize() override; | ^~~ /usr/include/SFML/System/MemoryInputStream.hpp:102:16: error: 'byte' in namespace 'std' does not name a type 102 | const std::byte* m_data{}; //!< Pointer to the data in memory | ^~~~ /usr/include/SFML/System/MemoryInputStream.hpp:102:11: note: 'std::byte' is only available from C++17 onwards 102 | const std::byte* m_data{}; //!< Pointer to the data in memory | ^~~ In file included from /usr/include/SFML/System/Utf.hpp:742, from /usr/include/SFML/System/String.hpp:32, from /usr/include/SFML/System.hpp:41: /usr/include/SFML/System/Utf.inl: In static member function 'static Out sf::Utf<8>::encode(char32_t, Out, uint8_t)': /usr/include/SFML/System/Utf.inl:137:25: error: 'byte' is not a member of 'std' 137 | std::array bytes{}; | ^~~~ /usr/include/SFML/System/Utf.inl:137:25: note: 'std::byte' is only available from C++17 onwards /usr/include/SFML/System/Utf.inl:137:25: error: 'byte' is not a member of 'std' /usr/include/SFML/System/Utf.inl:137:25: note: 'std::byte' is only available from C++17 onwards /usr/include/SFML/System/Utf.inl:137:32: error: template argument 1 is invalid 137 | std::array bytes{}; | ^ /usr/include/SFML/System/Utf.inl:142:26: error: invalid types 'int[int]' for array subscript 142 | case 4: bytes[3] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^ /usr/include/SFML/System/Utf.inl:142:49: error: 'byte' in namespace 'std' does not name a type 142 | case 4: bytes[3] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~~ /usr/include/SFML/System/Utf.inl:142:44: note: 'std::byte' is only available from C++17 onwards 142 | case 4: bytes[3] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~ /usr/include/SFML/System/Utf.inl:143:26: error: invalid types 'int[int]' for array subscript 143 | case 3: bytes[2] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^ /usr/include/SFML/System/Utf.inl:143:49: error: 'byte' in namespace 'std' does not name a type 143 | case 3: bytes[2] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~~ /usr/include/SFML/System/Utf.inl:143:44: note: 'std::byte' is only available from C++17 onwards 143 | case 3: bytes[2] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~ /usr/include/SFML/System/Utf.inl:144:26: error: invalid types 'int[int]' for array subscript 144 | case 2: bytes[1] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^ /usr/include/SFML/System/Utf.inl:144:49: error: 'byte' in namespace 'std' does not name a type 144 | case 2: bytes[1] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~~ /usr/include/SFML/System/Utf.inl:144:44: note: 'std::byte' is only available from C++17 onwards 144 | case 2: bytes[1] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~ /usr/include/SFML/System/Utf.inl:145:26: error: invalid types 'int[int]' for array subscript 145 | case 1: bytes[0] = static_cast (input | firstBytes[bytestoWrite]); | ^ /usr/include/SFML/System/Utf.inl:145:49: error: 'byte' in namespace 'std' does not name a type 145 | case 1: bytes[0] = static_cast (input | firstBytes[bytestoWrite]); | ^~~~ /usr/include/SFML/System/Utf.inl:145:44: note: 'std::byte' is only available from C++17 onwards 145 | case 1: bytes[0] = static_cast (input | firstBytes[bytestoWrite]); | ^~~ /usr/include/SFML/System/Utf.inl:150:35: error: request for member 'data' in 'bytes', which is of non-class type 'int' 150 | output = priv::copy(bytes.data(), bytes.data() + bytestoWrite, output); | ^~~~ /usr/include/SFML/System/Utf.inl:150:49: error: request for member 'data' in 'bytes', which is of non-class type 'int' 150 | output = priv::copy(bytes.data(), bytes.data() + bytestoWrite, output); | ^~~~ In file included from /usr/include/SFML/Window.hpp:32, from bh.h:31: /usr/include/SFML/Window/Context.hpp: At global scope: /usr/include/SFML/Window/Context.hpp:130:57: error: 'std::string_view' has not been declared 130 | [[nodiscard]] static bool isExtensionAvailable(std::string_view name); | ^~~~~~~~~~~ In file included from /usr/include/SFML/Window.hpp:34: /usr/include/SFML/Window/Cursor.hpp:226:31: error: 'optional' in namespace 'std' does not name a template type 226 | [[nodiscard]] static std::optional createFromPixels(const std::uint8_t* pixels, Vector2u size, Vector2u hotspot); | ^~~~~~~~ /usr/include/SFML/Window/Cursor.hpp:226:26: note: 'std::optional' is only available from C++17 onwards 226 | [[nodiscard]] static std::optional createFromPixels(const std::uint8_t* pixels, Vector2u size, Vector2u hotspot); | ^~~ /usr/include/SFML/Window/Cursor.hpp:242:31: error: 'optional' in namespace 'std' does not name a template type 242 | [[nodiscard]] static std::optional createFromSystem(Type type); | ^~~~~~~~ /usr/include/SFML/Window/Cursor.hpp:242:26: note: 'std::optional' is only available from C++17 onwards 242 | [[nodiscard]] static std::optional createFromSystem(Type type); | ^~~ In file included from /usr/include/SFML/Window.hpp:35: /usr/include/SFML/Window/Event.hpp:345:10: error: 'variant' in namespace 'std' does not name a template type 345 | std::variant*) | ^~~~~~~ /usr/include/SFML/Window/Event.hpp:374:65: note: 'std::variant' is only available from C++17 onwards 374 | [[nodiscard]] static constexpr bool isInParameterPack(const std::variant*) | ^~~ /usr/include/SFML/Window/Event.hpp:374:77: error: expected ',' or '...' before '<' token 374 | [[nodiscard]] static constexpr bool isInParameterPack(const std::variant*) | ^ /usr/include/SFML/Window/Event.hpp:380:76: error: 'm_data' was not declared in this scope 380 | static constexpr bool isEventSubtype = isInParameterPack(decltype (&m_data)(nullptr)); | ^~~~~~ /usr/include/SFML/Window/Event.hpp: In static member function 'static constexpr bool sf::Event::isInParameterPack(int)': /usr/include/SFML/Window/Event.hpp:376:22: error: 'is_same_v' is not a member of 'std'; did you mean 'is_same'? 376 | return (std::is_same_v || ...); | ^~~~~~~~~ | is_same /usr/include/SFML/Window/Event.hpp:376:33: error: expected primary-expression before ',' token 376 | return (std::is_same_v || ...); | ^ /usr/include/SFML/Window/Event.hpp:376:37: error: expected primary-expression before '>' token 376 | return (std::is_same_v || ...); | ^ /usr/include/SFML/Window/Event.hpp:376:39: error: expected primary-expression before '||' token 376 | return (std::is_same_v || ...); | ^~ /usr/include/SFML/Window/Event.hpp:376:42: error: operand of fold expression has no unexpanded parameter packs 376 | return (std::is_same_v || ...); | ^~~ In file included from /usr/include/SFML/Window/Event.hpp:385: /usr/include/SFML/Window/Event.inl: In constructor 'sf::Event::Event(const TEventSubtype&)': /usr/include/SFML/Window/Event.inl:47:9: error: 'm_data' was not declared in this scope 47 | m_data = eventSubtype; | ^~~~~~ /usr/include/SFML/Window/Event.inl: In member function 'bool sf::Event::is() const': /usr/include/SFML/Window/Event.inl:57:21: error: 'holds_alternative' is not a member of 'std' 57 | return std::holds_alternative(m_data); | ^~~~~~~~~~~~~~~~~ /usr/include/SFML/Window/Event.inl:57:21: note: 'std::holds_alternative' is only available from C++17 onwards /usr/include/SFML/Window/Event.inl:57:52: error: expected primary-expression before '>' token 57 | return std::holds_alternative(m_data); | ^ /usr/include/SFML/Window/Event.inl:57:54: error: 'm_data' was not declared in this scope 57 | return std::holds_alternative(m_data); | ^~~~~~ /usr/include/SFML/Window/Event.inl: In member function 'const TEventSubtype* sf::Event::getIf() const': /usr/include/SFML/Window/Event.inl:67:21: error: 'get_if' is not a member of 'std' 67 | return std::get_if(&m_data); | ^~~~~~ /usr/include/SFML/Window/Event.inl:67:41: error: expected primary-expression before '>' token 67 | return std::get_if(&m_data); | ^ /usr/include/SFML/Window/Event.inl:67:44: error: 'm_data' was not declared in this scope 67 | return std::get_if(&m_data); | ^~~~~~ /usr/include/SFML/Window/Event.inl: In member function 'decltype(auto) sf::Event::visit(T&&) const': /usr/include/SFML/Window/Event.inl:75:17: error: 'visit' is not a member of 'std' 75 | return std::visit(std::forward(visitor), m_data); | ^~~~~ /usr/include/SFML/Window/Event.inl:75:17: note: 'std::visit' is only available from C++17 onwards /usr/include/SFML/Window/Event.inl:75:49: error: 'm_data' was not declared in this scope 75 | return std::visit(std::forward(visitor), m_data); | ^~~~~~ In file included from /usr/include/SFML/Window/Window.hpp:32, from /usr/include/SFML/Window.hpp:42: /usr/include/SFML/Window/WindowBase.hpp: At global scope: /usr/include/SFML/Window/WindowBase.hpp:226:24: error: 'optional' in namespace 'std' does not name a template type 226 | [[nodiscard]] std::optional pollEvent(); | ^~~~~~~~ /usr/include/SFML/Window/WindowBase.hpp:226:19: note: 'std::optional' is only available from C++17 onwards 226 | [[nodiscard]] std::optional pollEvent(); | ^~~ /usr/include/SFML/Window/WindowBase.hpp:252:24: error: 'optional' in namespace 'std' does not name a template type 252 | [[nodiscard]] std::optional waitEvent(Time timeout = Time::Zero); | ^~~~~~~~ /usr/include/SFML/Window/WindowBase.hpp:252:19: note: 'std::optional' is only available from C++17 onwards 252 | [[nodiscard]] std::optional waitEvent(Time timeout = Time::Zero); | ^~~ /usr/include/SFML/Window/WindowBase.hpp:387:36: error: 'optional' in namespace 'std' does not name a template type 387 | void setMinimumSize(const std::optional& minimumSize); | ^~~~~~~~ /usr/include/SFML/Window/WindowBase.hpp:387:31: note: 'std::optional' is only available from C++17 onwards 387 | void setMinimumSize(const std::optional& minimumSize); | ^~~ /usr/include/SFML/Window/WindowBase.hpp:387:44: error: expected ',' or '...' before '<' token 387 | void setMinimumSize(const std::optional& minimumSize); | ^ /usr/include/SFML/Window/WindowBase.hpp:397:36: error: 'optional' in namespace 'std' does not name a template type 397 | void setMaximumSize(const std::optional& maximumSize); | ^~~~~~~~ /usr/include/SFML/Window/WindowBase.hpp:397:31: note: 'std::optional' is only available from C++17 onwards 397 | void setMaximumSize(const std::optional& maximumSize); | ^~~ /usr/include/SFML/Window/WindowBase.hpp:397:44: error: expected ',' or '...' before '<' token 397 | void setMaximumSize(const std::optional& maximumSize); | ^ In file included from /usr/include/SFML/Window/WindowBase.hpp:617: /usr/include/SFML/Window/WindowBase.inl:47:41: error: expected constructor, destructor, or type conversion before ';' token 47 | OverloadSet(Ts...) -> OverloadSet; | ^ /usr/include/SFML/Window/WindowBase.inl: In member function 'void sf::WindowBase::handleEvents(Ts&& ...)': /usr/include/SFML/Window/WindowBase.inl:69:23: error: missing template arguments before 'overloadSet' 69 | priv::OverloadSet overloadSet{std::forward(handlers)..., [](const priv::DelayOverloadResolution&) { /* ignore */ }}; | ^~~~~~~~~~~ /usr/include/SFML/Window/WindowBase.inl:71:32: error: qualified-id in declaration before 'event' 71 | while (const std::optional event = pollEvent()) | ^~~~~ /usr/include/SFML/Window/WindowBase.inl:72:9: error: 'event' was not declared in this scope; did you mean 'Event'? 72 | event->visit(overloadSet); | ^~~~~ | Event /usr/include/SFML/Window/WindowBase.inl:72:22: error: 'overloadSet' was not declared in this scope 72 | event->visit(overloadSet); | ^~~~~~~~~~~ In file included from /usr/include/SFML/Graphics/Color.hpp:229, from /usr/include/SFML/Graphics/Shape.hpp:32, from /usr/include/SFML/Graphics/CircleShape.hpp:32, from /usr/include/SFML/Graphics.hpp:32, from bh.h:32: /usr/include/SFML/Graphics/Color.inl: In function 'constexpr sf::Color sf::operator+(Color, Color)': /usr/include/SFML/Graphics/Color.inl:77:16: error: variable 'clampedAdd' of non-literal type 'const sf::operator+(Color, Color)::' in 'constexpr' function only available with '-std=c++2b' or '-std=gnu++2b' 77 | const auto clampedAdd = [](std::uint8_t lhs, std::uint8_t rhs) | ^~~~~~~~~~ /usr/include/SFML/Graphics/Color.inl:77:30: note: 'sf::operator+(Color, Color)::' is not literal because: 77 | const auto clampedAdd = [](std::uint8_t lhs, std::uint8_t rhs) | ^ cc1plus: note: 'sf::operator+(Color, Color)::' is a closure type, which is only literal in C++17 and later /usr/include/SFML/Graphics/Color.inl: In function 'constexpr sf::Color sf::operator-(Color, Color)': /usr/include/SFML/Graphics/Color.inl:93:16: error: variable 'clampedSub' of non-literal type 'const sf::operator-(Color, Color)::' in 'constexpr' function only available with '-std=c++2b' or '-std=gnu++2b' 93 | const auto clampedSub = [](std::uint8_t lhs, std::uint8_t rhs) | ^~~~~~~~~~ /usr/include/SFML/Graphics/Color.inl:93:30: note: 'sf::operator-(Color, Color)::' is not literal because: 93 | const auto clampedSub = [](std::uint8_t lhs, std::uint8_t rhs) | ^ cc1plus: note: 'sf::operator-(Color, Color)::' is a closure type, which is only literal in C++17 and later /usr/include/SFML/Graphics/Color.inl: In function 'constexpr sf::Color sf::operator*(Color, Color)': /usr/include/SFML/Graphics/Color.inl:109:16: error: variable 'scaledMul' of non-literal type 'const sf::operator*(Color, Color)::' in 'constexpr' function only available with '-std=c++2b' or '-std=gnu++2b' 109 | const auto scaledMul = [](std::uint8_t lhs, std::uint8_t rhs) | ^~~~~~~~~ /usr/include/SFML/Graphics/Color.inl:109:29: note: 'sf::operator*(Color, Color)::' is not literal because: 109 | const auto scaledMul = [](std::uint8_t lhs, std::uint8_t rhs) | ^ cc1plus: note: 'sf::operator*(Color, Color)::' is a closure type, which is only literal in C++17 and later In file included from /usr/include/SFML/Graphics/Shape.hpp:35: /usr/include/SFML/Graphics/Rect.hpp: At global scope: /usr/include/SFML/Graphics/Rect.hpp:98:34: error: 'optional' in namespace 'std' does not name a template type 98 | [[nodiscard]] constexpr std::optional> findIntersection(const Rect& rectangle) const; | ^~~~~~~~ /usr/include/SFML/Graphics/Rect.hpp:98:29: note: 'std::optional' is only available from C++17 onwards 98 | [[nodiscard]] constexpr std::optional> findIntersection(const Rect& rectangle) const; | ^~~ In file included from /usr/include/SFML/Graphics/Rect.hpp:151: /usr/include/SFML/Graphics/Rect.inl:71:16: error: 'optional' in namespace 'std' does not name a template type 71 | constexpr std::optional> Rect::findIntersection(const Rect& rectangle) const | ^~~~~~~~ /usr/include/SFML/Graphics/Rect.inl:71:11: note: 'std::optional' is only available from C++17 onwards 71 | constexpr std::optional> Rect::findIntersection(const Rect& rectangle) const | ^~~ In file included from /usr/include/SFML/Graphics/Transform.hpp:352, from /usr/include/SFML/Graphics/RenderStates.hpp:35, from /usr/include/SFML/Graphics/Shape.hpp:36: /usr/include/SFML/Graphics/Transform.inl: In member function 'constexpr sf::FloatRect sf::Transform::transformRect(const sf::FloatRect&) const': /usr/include/SFML/Graphics/Transform.inl:101:11: error: invalid use of template-name 'std::array' without an argument list 101 | const std::array points = {transformPoint(rectangle.position), | ^~~ /usr/include/SFML/Graphics/Transform.inl:101:11: note: class template argument deduction is only available with '-std=c++17' or '-std=gnu++17' In file included from /usr/include/c++/14/bits/stl_algobase.h:64, from /usr/include/c++/14/string:51, from bh.h:27: /usr/include/c++/14/bits/stl_pair.h:99:12: note: 'template struct std::array' declared here 99 | struct array; | ^~~~~ /usr/include/SFML/Graphics/Transform.inl:107:21: error: 'points' was not declared in this scope; did you mean 'printf'? 107 | Vector2f pmin = points[0]; | ^~~~~~ | printf In file included from /usr/include/SFML/Graphics/Font.hpp:34, from /usr/include/SFML/Graphics.hpp:36: /usr/include/SFML/Graphics/Texture.hpp: At global scope: /usr/include/SFML/Graphics/Texture.hpp:114:33: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Texture.hpp:114:49: error: expected unqualified-id before '&' token 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^ /usr/include/SFML/Graphics/Texture.hpp:114:49: error: expected ')' before '&' token 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ~ ^ | ) /usr/include/SFML/Graphics/Texture.hpp:114:49: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Texture.hpp:114:49: error: expected ';' at end of member declaration 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^ | ; /usr/include/SFML/Graphics/Texture.hpp:114:51: error: 'filename' does not name a type 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^~~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:137:24: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Texture.hpp:137:40: error: expected unqualified-id before '&' token 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^ /usr/include/SFML/Graphics/Texture.hpp:137:40: error: expected ')' before '&' token 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ~ ^ | ) /usr/include/SFML/Graphics/Texture.hpp:137:40: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Texture.hpp:137:40: error: expected ';' at end of member declaration 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^ | ; /usr/include/SFML/Graphics/Texture.hpp:137:5: error: 'sf::Texture::Texture(...)' cannot be overloaded with 'sf::Texture::Texture(...)' 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:114:14: note: previous declaration 'sf::Texture::Texture(...)' 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:137:42: error: 'filename' does not name a type 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^~~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:304:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Texture.hpp:304:64: error: expected unqualified-id before '&' token 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^ /usr/include/SFML/Graphics/Texture.hpp:304:64: error: expected ')' before '&' token 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ~ ^ | ) /usr/include/SFML/Graphics/Texture.hpp:304:64: error: expected ';' at end of member declaration 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^ | ; /usr/include/SFML/Graphics/Texture.hpp:304:66: error: 'filename' does not name a type 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^~~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:304:119: error: expected unqualified-id before ')' token 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^ /usr/include/SFML/Graphics/Font.hpp:103:30: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 103 | explicit Font(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Font.hpp:103:46: error: expected unqualified-id before '&' token 103 | explicit Font(const std::filesystem::path& filename); | ^ /usr/include/SFML/Graphics/Font.hpp:103:46: error: expected ')' before '&' token 103 | explicit Font(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Graphics/Font.hpp:103:46: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Font.hpp:103:46: error: expected ';' at end of member declaration 103 | explicit Font(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Graphics/Font.hpp:103:48: error: 'filename' does not name a type 103 | explicit Font(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/Graphics/Font.hpp:168:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Font.hpp:168:64: error: expected unqualified-id before '&' token 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^ /usr/include/SFML/Graphics/Font.hpp:168:64: error: expected ')' before '&' token 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Graphics/Font.hpp:168:64: error: expected ';' at end of member declaration 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Graphics/Font.hpp:168:66: error: 'filename' does not name a type 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^~~~~~~~ In file included from /usr/include/SFML/Graphics.hpp:38: /usr/include/SFML/Graphics/Image.hpp:103:31: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 103 | explicit Image(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Image.hpp:103:47: error: expected unqualified-id before '&' token 103 | explicit Image(const std::filesystem::path& filename); | ^ /usr/include/SFML/Graphics/Image.hpp:103:47: error: expected ')' before '&' token 103 | explicit Image(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Graphics/Image.hpp:103:47: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Image.hpp:103:47: error: expected ';' at end of member declaration 103 | explicit Image(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Graphics/Image.hpp:103:49: error: 'filename' does not name a type 103 | explicit Image(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/Graphics/Image.hpp:175:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Image.hpp:175:64: error: expected unqualified-id before '&' token 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^ /usr/include/SFML/Graphics/Image.hpp:175:64: error: expected ')' before '&' token 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Graphics/Image.hpp:175:64: error: expected ';' at end of member declaration 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Graphics/Image.hpp:175:66: error: 'filename' does not name a type 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/Graphics/Image.hpp:227:46: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Image.hpp:227:62: error: expected unqualified-id before '&' token 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^ /usr/include/SFML/Graphics/Image.hpp:227:62: error: expected ')' before '&' token 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ~ ^ | ) /usr/include/SFML/Graphics/Image.hpp:227:62: error: expected ';' at end of member declaration 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^ | ; /usr/include/SFML/Graphics/Image.hpp:227:64: error: 'filename' does not name a type 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^~~~~~~~ /usr/include/SFML/Graphics/Image.hpp:245:24: error: 'optional' in namespace 'std' does not name a template type 245 | [[nodiscard]] std::optional> saveToMemory(std::string_view format) const; | ^~~~~~~~ /usr/include/SFML/Graphics/Image.hpp:245:19: note: 'std::optional' is only available from C++17 onwards 245 | [[nodiscard]] std::optional> saveToMemory(std::string_view format) const; | ^~~ In file included from /usr/include/SFML/Graphics.hpp:46: /usr/include/SFML/Graphics/Shader.hpp:147:23: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 147 | Shader(const std::filesystem::path& filename, Type type); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:147:39: error: expected unqualified-id before '&' token 147 | Shader(const std::filesystem::path& filename, Type type); | ^ /usr/include/SFML/Graphics/Shader.hpp:147:39: error: expected ')' before '&' token 147 | Shader(const std::filesystem::path& filename, Type type); | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:147:39: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Shader.hpp:147:39: error: expected ';' at end of member declaration 147 | Shader(const std::filesystem::path& filename, Type type); | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:147:41: error: 'filename' does not name a type 147 | Shader(const std::filesystem::path& filename, Type type); | ^~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:168:23: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:168:39: error: expected unqualified-id before '&' token 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^ /usr/include/SFML/Graphics/Shader.hpp:168:39: error: expected ')' before '&' token 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:168:39: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Shader.hpp:168:39: error: expected ';' at end of member declaration 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:168:5: error: 'sf::Shader::Shader(...)' cannot be overloaded with 'sf::Shader::Shader(...)' 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^~~~~~ /usr/include/SFML/Graphics/Shader.hpp:147:5: note: previous declaration 'sf::Shader::Shader(...)' 147 | Shader(const std::filesystem::path& filename, Type type); | ^~~~~~ /usr/include/SFML/Graphics/Shader.hpp:168:41: error: 'vertexShaderFilename' does not name a type 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:190:23: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:190:39: error: expected unqualified-id before '&' token 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^ /usr/include/SFML/Graphics/Shader.hpp:190:39: error: expected ')' before '&' token 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:190:39: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Shader.hpp:190:39: error: expected ';' at end of member declaration 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:190:5: error: 'sf::Shader::Shader(...)' cannot be overloaded with 'sf::Shader::Shader(...)' 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^~~~~~ /usr/include/SFML/Graphics/Shader.hpp:147:5: note: previous declaration 'sf::Shader::Shader(...)' 147 | Shader(const std::filesystem::path& filename, Type type); | ^~~~~~ /usr/include/SFML/Graphics/Shader.hpp:190:41: error: 'vertexShaderFilename' does not name a type 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:212:28: error: expected ')' before 'shader' 212 | Shader(std::string_view shader, Type type); | ~ ^~~~~~~ | ) /usr/include/SFML/Graphics/Shader.hpp:233:28: error: expected ')' before 'vertexShader' 233 | Shader(std::string_view vertexShader, std::string_view fragmentShader); | ~ ^~~~~~~~~~~~~ | ) /usr/include/SFML/Graphics/Shader.hpp:255:28: error: expected ')' before 'vertexShader' 255 | Shader(std::string_view vertexShader, std::string_view geometryShader, std::string_view fragmentShader); | ~ ^~~~~~~~~~~~~ | ) /usr/include/SFML/Graphics/Shader.hpp:339:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:339:64: error: expected unqualified-id before '&' token 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^ /usr/include/SFML/Graphics/Shader.hpp:339:64: error: expected ')' before '&' token 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:339:64: error: expected ';' at end of member declaration 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:339:66: error: 'filename' does not name a type 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:360:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:360:64: error: expected unqualified-id before '&' token 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^ /usr/include/SFML/Graphics/Shader.hpp:360:64: error: expected ')' before '&' token 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:360:64: error: expected ';' at end of member declaration 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:360:24: error: 'bool sf::Shader::loadFromFile(...) &' cannot be overloaded with 'bool sf::Shader::loadFromFile(...) &' 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:339:24: note: previous declaration 'bool sf::Shader::loadFromFile(...) &' 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:360:66: error: 'vertexShaderFilename' does not name a type 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:383:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:383:64: error: expected unqualified-id before '&' token 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^ /usr/include/SFML/Graphics/Shader.hpp:383:64: error: expected ')' before '&' token 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:383:64: error: expected ';' at end of member declaration 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:383:24: error: 'bool sf::Shader::loadFromFile(...) &' cannot be overloaded with 'bool sf::Shader::loadFromFile(...) &' 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:339:24: note: previous declaration 'bool sf::Shader::loadFromFile(...) &' 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:383:66: error: 'vertexShaderFilename' does not name a type 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:405:44: error: 'std::string_view' has not been declared 405 | [[nodiscard]] bool loadFromMemory(std::string_view shader, Type type); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:426:44: error: 'std::string_view' has not been declared 426 | [[nodiscard]] bool loadFromMemory(std::string_view vertexShader, std::string_view fragmentShader); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:426:75: error: 'std::string_view' has not been declared 426 | [[nodiscard]] bool loadFromMemory(std::string_view vertexShader, std::string_view fragmentShader); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:448:44: error: 'std::string_view' has not been declared 448 | [[nodiscard]] bool loadFromMemory(std::string_view vertexShader, | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:449:44: error: 'std::string_view' has not been declared 449 | std::string_view geometryShader, | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:450:44: error: 'std::string_view' has not been declared 450 | std::string_view fragmentShader); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:861:37: error: 'std::string_view' has not been declared 861 | [[nodiscard]] bool compile(std::string_view vertexShaderCode, | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:862:37: error: 'std::string_view' has not been declared 862 | std::string_view geometryShaderCode, | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:863:37: error: 'std::string_view' has not been declared 863 | std::string_view fragmentShaderCode); | ^~~~~~~~~~~ In file included from event.cpp:27: gui.h:62:22: warning: 'virtual void TWidget::Focussed()' was hidden [-Woverloaded-virtual=] 62 | virtual void Focussed() {} | ^~~~~~~~ gui.h:76:14: note: by 'void TLabel::Focussed(bool)' 76 | void Focussed(bool masterFocus); | ^~~~~~~~ In file included from event.cpp:37: winsys.h: In member function 'bool CWinsys::PollEvent(sf::Event&)': winsys.h:65:58: error: 'class sf::RenderWindow' has no member named 'pollEvent' 65 | bool PollEvent(sf::Event& event) { return window.pollEvent(event); } | ^~~~~~~~~ event.cpp: In member function 'virtual void CEvent::Keyb(sf::Keyboard::Key, bool, int, int)': event.cpp:70:36: error: 'Return' is not a member of 'sf::Keyboard' 70 | case sf::Keyboard::Return: | ^~~~~~ event.cpp:74:36: error: 'Escape' is not a member of 'sf::Keyboard' 74 | case sf::Keyboard::Escape: | ^~~~~~ event.cpp:74:36: note: suggested alternatives: In file included from /usr/include/SFML/Window/Event.hpp:31: /usr/include/SFML/Window/Keyboard.hpp:212:5: note: 'sf::Keyboard::Scan::Escape' 212 | Escape, //!< Keyboard Escape key | ^~~~~~ /usr/include/SFML/Window/Keyboard.hpp:212:5: note: 'sf::Keyboard::Scan::Escape' /usr/include/SFML/Window/Keyboard.hpp:90:5: note: 'sf::Keyboard::Key::Escape' 90 | Escape, //!< The Escape key | ^~~~~~ event.cpp:77:36: error: 'U' is not a member of 'sf::Keyboard' 77 | case sf::Keyboard::U: | ^ event.cpp:77:36: note: suggested alternatives: In file included from /usr/include/SFML/Window/Event.hpp:30: /usr/include/SFML/Window/Joystick.hpp:60:5: note: 'sf::Joystick::Axis::U' 60 | U, //!< The U axis | ^ /usr/include/SFML/Window/Keyboard.hpp:195:5: note: 'sf::Keyboard::Scan::U' 195 | U, //!< Keyboard u and U key | ^ /usr/include/SFML/Window/Keyboard.hpp:195:5: note: 'sf::Keyboard::Scan::U' /usr/include/SFML/Window/Keyboard.hpp:74:5: note: 'sf::Keyboard::Key::U' 74 | U, //!< The U key | ^ make[2]: *** [Makefile:566: event.o] Error 1 make[2]: Leaving directory '/usr/src/RPM/BUILD/etr-0.8.4/src' make[2]: Entering directory '/usr/src/RPM/BUILD/etr-0.8.4/src' x86_64-alt-linux-g++ -DHAVE_CONFIG_H -I. -I.. -DETR_DATA_DIR=\"/usr/share\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -std=c++14 -c -o game_config.o game_config.cpp In file included from /usr/include/SFML/System.hpp:34, from bh.h:30, from game_config.h:20, from game_config.cpp:42: /usr/include/SFML/System/Clock.hpp:78:20: error: 'ratio_less_equal_v' is not a member of 'std'; did you mean 'ratio_less_equal'? 78 | static_assert(std::ratio_less_equal_v, | ^~~~~~~~~~~~~~~~~~ | ratio_less_equal /usr/include/SFML/System/Clock.hpp:78:56: error: expected primary-expression before ',' token 78 | static_assert(std::ratio_less_equal_v, | ^ /usr/include/SFML/System/Clock.hpp:78:68: error: expected primary-expression before '>' token 78 | static_assert(std::ratio_less_equal_v, | ^ /usr/include/SFML/System/Clock.hpp:78:69: error: expected primary-expression before ',' token 78 | static_assert(std::ratio_less_equal_v, | ^ /usr/include/SFML/System/Clock.hpp:78:69: error: expected ')' before ',' token 78 | static_assert(std::ratio_less_equal_v, | ~ ^ | ) In file included from /usr/include/SFML/System/FileInputStream.hpp:34, from /usr/include/SFML/System.hpp:37: /usr/include/SFML/System/InputStream.hpp:66:32: error: 'optional' in namespace 'std' does not name a template type 66 | [[nodiscard]] virtual std::optional read(void* data, std::size_t size) = 0; | ^~~~~~~~ /usr/include/SFML/System/InputStream.hpp:66:27: note: 'std::optional' is only available from C++17 onwards 66 | [[nodiscard]] virtual std::optional read(void* data, std::size_t size) = 0; | ^~~ /usr/include/SFML/System/InputStream.hpp:76:32: error: 'optional' in namespace 'std' does not name a template type 76 | [[nodiscard]] virtual std::optional seek(std::size_t position) = 0; | ^~~~~~~~ /usr/include/SFML/System/InputStream.hpp:76:27: note: 'std::optional' is only available from C++17 onwards 76 | [[nodiscard]] virtual std::optional seek(std::size_t position) = 0; | ^~~ /usr/include/SFML/System/InputStream.hpp:84:32: error: 'optional' in namespace 'std' does not name a template type 84 | [[nodiscard]] virtual std::optional tell() = 0; | ^~~~~~~~ /usr/include/SFML/System/InputStream.hpp:84:27: note: 'std::optional' is only available from C++17 onwards 84 | [[nodiscard]] virtual std::optional tell() = 0; | ^~~ /usr/include/SFML/System/InputStream.hpp:92:18: error: 'optional' in namespace 'std' does not name a template type 92 | virtual std::optional getSize() = 0; | ^~~~~~~~ /usr/include/SFML/System/InputStream.hpp:92:13: note: 'std::optional' is only available from C++17 onwards 92 | virtual std::optional getSize() = 0; | ^~~ /usr/include/SFML/System/FileInputStream.hpp:106:41: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 106 | explicit FileInputStream(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/System/FileInputStream.hpp:106:57: error: expected unqualified-id before '&' token 106 | explicit FileInputStream(const std::filesystem::path& filename); | ^ /usr/include/SFML/System/FileInputStream.hpp:106:57: error: expected ')' before '&' token 106 | explicit FileInputStream(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/System/FileInputStream.hpp:106:57: error: constructors may not be ref-qualified /usr/include/SFML/System/FileInputStream.hpp:106:57: error: expected ';' at end of member declaration 106 | explicit FileInputStream(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/System/FileInputStream.hpp:106:59: error: 'filename' does not name a type 106 | explicit FileInputStream(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:116:40: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/System/FileInputStream.hpp:116:56: error: expected unqualified-id before '&' token 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ^ /usr/include/SFML/System/FileInputStream.hpp:116:56: error: expected ')' before '&' token 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/System/FileInputStream.hpp:116:56: error: expected ';' at end of member declaration 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/System/FileInputStream.hpp:116:58: error: 'filename' does not name a type 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:130:24: error: 'optional' in namespace 'std' does not name a template type 130 | [[nodiscard]] std::optional read(void* data, std::size_t size) override; | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:130:19: note: 'std::optional' is only available from C++17 onwards 130 | [[nodiscard]] std::optional read(void* data, std::size_t size) override; | ^~~ /usr/include/SFML/System/FileInputStream.hpp:140:24: error: 'optional' in namespace 'std' does not name a template type 140 | [[nodiscard]] std::optional seek(std::size_t position) override; | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:140:19: note: 'std::optional' is only available from C++17 onwards 140 | [[nodiscard]] std::optional seek(std::size_t position) override; | ^~~ /usr/include/SFML/System/FileInputStream.hpp:148:24: error: 'optional' in namespace 'std' does not name a template type 148 | [[nodiscard]] std::optional tell() override; | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:148:19: note: 'std::optional' is only available from C++17 onwards 148 | [[nodiscard]] std::optional tell() override; | ^~~ /usr/include/SFML/System/FileInputStream.hpp:156:10: error: 'optional' in namespace 'std' does not name a template type 156 | std::optional getSize() override; | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:156:5: note: 'std::optional' is only available from C++17 onwards 156 | std::optional getSize() override; | ^~~ In file included from /usr/include/SFML/System.hpp:39: /usr/include/SFML/System/MemoryInputStream.hpp:70:24: error: 'optional' in namespace 'std' does not name a template type 70 | [[nodiscard]] std::optional read(void* data, std::size_t size) override; | ^~~~~~~~ /usr/include/SFML/System/MemoryInputStream.hpp:70:19: note: 'std::optional' is only available from C++17 onwards 70 | [[nodiscard]] std::optional read(void* data, std::size_t size) override; | ^~~ /usr/include/SFML/System/MemoryInputStream.hpp:80:24: error: 'optional' in namespace 'std' does not name a template type 80 | [[nodiscard]] std::optional seek(std::size_t position) override; | ^~~~~~~~ /usr/include/SFML/System/MemoryInputStream.hpp:80:19: note: 'std::optional' is only available from C++17 onwards 80 | [[nodiscard]] std::optional seek(std::size_t position) override; | ^~~ /usr/include/SFML/System/MemoryInputStream.hpp:88:24: error: 'optional' in namespace 'std' does not name a template type 88 | [[nodiscard]] std::optional tell() override; | ^~~~~~~~ /usr/include/SFML/System/MemoryInputStream.hpp:88:19: note: 'std::optional' is only available from C++17 onwards 88 | [[nodiscard]] std::optional tell() override; | ^~~ /usr/include/SFML/System/MemoryInputStream.hpp:96:10: error: 'optional' in namespace 'std' does not name a template type 96 | std::optional getSize() override; | ^~~~~~~~ /usr/include/SFML/System/MemoryInputStream.hpp:96:5: note: 'std::optional' is only available from C++17 onwards 96 | std::optional getSize() override; | ^~~ /usr/include/SFML/System/MemoryInputStream.hpp:102:16: error: 'byte' in namespace 'std' does not name a type 102 | const std::byte* m_data{}; //!< Pointer to the data in memory | ^~~~ /usr/include/SFML/System/MemoryInputStream.hpp:102:11: note: 'std::byte' is only available from C++17 onwards 102 | const std::byte* m_data{}; //!< Pointer to the data in memory | ^~~ In file included from /usr/include/SFML/System/Utf.hpp:742, from /usr/include/SFML/System/String.hpp:32, from /usr/include/SFML/System.hpp:41: /usr/include/SFML/System/Utf.inl: In static member function 'static Out sf::Utf<8>::encode(char32_t, Out, uint8_t)': /usr/include/SFML/System/Utf.inl:137:25: error: 'byte' is not a member of 'std' 137 | std::array bytes{}; | ^~~~ /usr/include/SFML/System/Utf.inl:137:25: note: 'std::byte' is only available from C++17 onwards /usr/include/SFML/System/Utf.inl:137:25: error: 'byte' is not a member of 'std' /usr/include/SFML/System/Utf.inl:137:25: note: 'std::byte' is only available from C++17 onwards /usr/include/SFML/System/Utf.inl:137:32: error: template argument 1 is invalid 137 | std::array bytes{}; | ^ /usr/include/SFML/System/Utf.inl:142:26: error: invalid types 'int[int]' for array subscript 142 | case 4: bytes[3] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^ /usr/include/SFML/System/Utf.inl:142:49: error: 'byte' in namespace 'std' does not name a type 142 | case 4: bytes[3] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~~ /usr/include/SFML/System/Utf.inl:142:44: note: 'std::byte' is only available from C++17 onwards 142 | case 4: bytes[3] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~ /usr/include/SFML/System/Utf.inl:143:26: error: invalid types 'int[int]' for array subscript 143 | case 3: bytes[2] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^ /usr/include/SFML/System/Utf.inl:143:49: error: 'byte' in namespace 'std' does not name a type 143 | case 3: bytes[2] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~~ /usr/include/SFML/System/Utf.inl:143:44: note: 'std::byte' is only available from C++17 onwards 143 | case 3: bytes[2] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~ /usr/include/SFML/System/Utf.inl:144:26: error: invalid types 'int[int]' for array subscript 144 | case 2: bytes[1] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^ /usr/include/SFML/System/Utf.inl:144:49: error: 'byte' in namespace 'std' does not name a type 144 | case 2: bytes[1] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~~ /usr/include/SFML/System/Utf.inl:144:44: note: 'std::byte' is only available from C++17 onwards 144 | case 2: bytes[1] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~ /usr/include/SFML/System/Utf.inl:145:26: error: invalid types 'int[int]' for array subscript 145 | case 1: bytes[0] = static_cast (input | firstBytes[bytestoWrite]); | ^ /usr/include/SFML/System/Utf.inl:145:49: error: 'byte' in namespace 'std' does not name a type 145 | case 1: bytes[0] = static_cast (input | firstBytes[bytestoWrite]); | ^~~~ /usr/include/SFML/System/Utf.inl:145:44: note: 'std::byte' is only available from C++17 onwards 145 | case 1: bytes[0] = static_cast (input | firstBytes[bytestoWrite]); | ^~~ /usr/include/SFML/System/Utf.inl:150:35: error: request for member 'data' in 'bytes', which is of non-class type 'int' 150 | output = priv::copy(bytes.data(), bytes.data() + bytestoWrite, output); | ^~~~ /usr/include/SFML/System/Utf.inl:150:49: error: request for member 'data' in 'bytes', which is of non-class type 'int' 150 | output = priv::copy(bytes.data(), bytes.data() + bytestoWrite, output); | ^~~~ In file included from /usr/include/SFML/Window.hpp:32, from bh.h:31: /usr/include/SFML/Window/Context.hpp: At global scope: /usr/include/SFML/Window/Context.hpp:130:57: error: 'std::string_view' has not been declared 130 | [[nodiscard]] static bool isExtensionAvailable(std::string_view name); | ^~~~~~~~~~~ In file included from /usr/include/SFML/Window.hpp:34: /usr/include/SFML/Window/Cursor.hpp:226:31: error: 'optional' in namespace 'std' does not name a template type 226 | [[nodiscard]] static std::optional createFromPixels(const std::uint8_t* pixels, Vector2u size, Vector2u hotspot); | ^~~~~~~~ /usr/include/SFML/Window/Cursor.hpp:226:26: note: 'std::optional' is only available from C++17 onwards 226 | [[nodiscard]] static std::optional createFromPixels(const std::uint8_t* pixels, Vector2u size, Vector2u hotspot); | ^~~ /usr/include/SFML/Window/Cursor.hpp:242:31: error: 'optional' in namespace 'std' does not name a template type 242 | [[nodiscard]] static std::optional createFromSystem(Type type); | ^~~~~~~~ /usr/include/SFML/Window/Cursor.hpp:242:26: note: 'std::optional' is only available from C++17 onwards 242 | [[nodiscard]] static std::optional createFromSystem(Type type); | ^~~ In file included from /usr/include/SFML/Window.hpp:35: /usr/include/SFML/Window/Event.hpp:345:10: error: 'variant' in namespace 'std' does not name a template type 345 | std::variant*) | ^~~~~~~ /usr/include/SFML/Window/Event.hpp:374:65: note: 'std::variant' is only available from C++17 onwards 374 | [[nodiscard]] static constexpr bool isInParameterPack(const std::variant*) | ^~~ /usr/include/SFML/Window/Event.hpp:374:77: error: expected ',' or '...' before '<' token 374 | [[nodiscard]] static constexpr bool isInParameterPack(const std::variant*) | ^ /usr/include/SFML/Window/Event.hpp:380:76: error: 'm_data' was not declared in this scope 380 | static constexpr bool isEventSubtype = isInParameterPack(decltype (&m_data)(nullptr)); | ^~~~~~ /usr/include/SFML/Window/Event.hpp: In static member function 'static constexpr bool sf::Event::isInParameterPack(int)': /usr/include/SFML/Window/Event.hpp:376:22: error: 'is_same_v' is not a member of 'std'; did you mean 'is_same'? 376 | return (std::is_same_v || ...); | ^~~~~~~~~ | is_same /usr/include/SFML/Window/Event.hpp:376:33: error: expected primary-expression before ',' token 376 | return (std::is_same_v || ...); | ^ /usr/include/SFML/Window/Event.hpp:376:37: error: expected primary-expression before '>' token 376 | return (std::is_same_v || ...); | ^ /usr/include/SFML/Window/Event.hpp:376:39: error: expected primary-expression before '||' token 376 | return (std::is_same_v || ...); | ^~ /usr/include/SFML/Window/Event.hpp:376:42: error: operand of fold expression has no unexpanded parameter packs 376 | return (std::is_same_v || ...); | ^~~ In file included from /usr/include/SFML/Window/Event.hpp:385: /usr/include/SFML/Window/Event.inl: In constructor 'sf::Event::Event(const TEventSubtype&)': /usr/include/SFML/Window/Event.inl:47:9: error: 'm_data' was not declared in this scope 47 | m_data = eventSubtype; | ^~~~~~ /usr/include/SFML/Window/Event.inl: In member function 'bool sf::Event::is() const': /usr/include/SFML/Window/Event.inl:57:21: error: 'holds_alternative' is not a member of 'std' 57 | return std::holds_alternative(m_data); | ^~~~~~~~~~~~~~~~~ /usr/include/SFML/Window/Event.inl:57:21: note: 'std::holds_alternative' is only available from C++17 onwards /usr/include/SFML/Window/Event.inl:57:52: error: expected primary-expression before '>' token 57 | return std::holds_alternative(m_data); | ^ /usr/include/SFML/Window/Event.inl:57:54: error: 'm_data' was not declared in this scope 57 | return std::holds_alternative(m_data); | ^~~~~~ /usr/include/SFML/Window/Event.inl: In member function 'const TEventSubtype* sf::Event::getIf() const': /usr/include/SFML/Window/Event.inl:67:21: error: 'get_if' is not a member of 'std' 67 | return std::get_if(&m_data); | ^~~~~~ /usr/include/SFML/Window/Event.inl:67:41: error: expected primary-expression before '>' token 67 | return std::get_if(&m_data); | ^ /usr/include/SFML/Window/Event.inl:67:44: error: 'm_data' was not declared in this scope 67 | return std::get_if(&m_data); | ^~~~~~ /usr/include/SFML/Window/Event.inl: In member function 'decltype(auto) sf::Event::visit(T&&) const': /usr/include/SFML/Window/Event.inl:75:17: error: 'visit' is not a member of 'std' 75 | return std::visit(std::forward(visitor), m_data); | ^~~~~ /usr/include/SFML/Window/Event.inl:75:17: note: 'std::visit' is only available from C++17 onwards /usr/include/SFML/Window/Event.inl:75:49: error: 'm_data' was not declared in this scope 75 | return std::visit(std::forward(visitor), m_data); | ^~~~~~ In file included from /usr/include/SFML/Window/Window.hpp:32, from /usr/include/SFML/Window.hpp:42: /usr/include/SFML/Window/WindowBase.hpp: At global scope: /usr/include/SFML/Window/WindowBase.hpp:226:24: error: 'optional' in namespace 'std' does not name a template type 226 | [[nodiscard]] std::optional pollEvent(); | ^~~~~~~~ /usr/include/SFML/Window/WindowBase.hpp:226:19: note: 'std::optional' is only available from C++17 onwards 226 | [[nodiscard]] std::optional pollEvent(); | ^~~ /usr/include/SFML/Window/WindowBase.hpp:252:24: error: 'optional' in namespace 'std' does not name a template type 252 | [[nodiscard]] std::optional waitEvent(Time timeout = Time::Zero); | ^~~~~~~~ /usr/include/SFML/Window/WindowBase.hpp:252:19: note: 'std::optional' is only available from C++17 onwards 252 | [[nodiscard]] std::optional waitEvent(Time timeout = Time::Zero); | ^~~ /usr/include/SFML/Window/WindowBase.hpp:387:36: error: 'optional' in namespace 'std' does not name a template type 387 | void setMinimumSize(const std::optional& minimumSize); | ^~~~~~~~ /usr/include/SFML/Window/WindowBase.hpp:387:31: note: 'std::optional' is only available from C++17 onwards 387 | void setMinimumSize(const std::optional& minimumSize); | ^~~ /usr/include/SFML/Window/WindowBase.hpp:387:44: error: expected ',' or '...' before '<' token 387 | void setMinimumSize(const std::optional& minimumSize); | ^ /usr/include/SFML/Window/WindowBase.hpp:397:36: error: 'optional' in namespace 'std' does not name a template type 397 | void setMaximumSize(const std::optional& maximumSize); | ^~~~~~~~ /usr/include/SFML/Window/WindowBase.hpp:397:31: note: 'std::optional' is only available from C++17 onwards 397 | void setMaximumSize(const std::optional& maximumSize); | ^~~ /usr/include/SFML/Window/WindowBase.hpp:397:44: error: expected ',' or '...' before '<' token 397 | void setMaximumSize(const std::optional& maximumSize); | ^ In file included from /usr/include/SFML/Window/WindowBase.hpp:617: /usr/include/SFML/Window/WindowBase.inl:47:41: error: expected constructor, destructor, or type conversion before ';' token 47 | OverloadSet(Ts...) -> OverloadSet; | ^ /usr/include/SFML/Window/WindowBase.inl: In member function 'void sf::WindowBase::handleEvents(Ts&& ...)': /usr/include/SFML/Window/WindowBase.inl:69:23: error: missing template arguments before 'overloadSet' 69 | priv::OverloadSet overloadSet{std::forward(handlers)..., [](const priv::DelayOverloadResolution&) { /* ignore */ }}; | ^~~~~~~~~~~ /usr/include/SFML/Window/WindowBase.inl:71:32: error: qualified-id in declaration before 'event' 71 | while (const std::optional event = pollEvent()) | ^~~~~ /usr/include/SFML/Window/WindowBase.inl:72:9: error: 'event' was not declared in this scope; did you mean 'Event'? 72 | event->visit(overloadSet); | ^~~~~ | Event /usr/include/SFML/Window/WindowBase.inl:72:22: error: 'overloadSet' was not declared in this scope 72 | event->visit(overloadSet); | ^~~~~~~~~~~ In file included from /usr/include/SFML/Graphics/Color.hpp:229, from /usr/include/SFML/Graphics/Shape.hpp:32, from /usr/include/SFML/Graphics/CircleShape.hpp:32, from /usr/include/SFML/Graphics.hpp:32, from bh.h:32: /usr/include/SFML/Graphics/Color.inl: In function 'constexpr sf::Color sf::operator+(Color, Color)': /usr/include/SFML/Graphics/Color.inl:77:16: error: variable 'clampedAdd' of non-literal type 'const sf::operator+(Color, Color)::' in 'constexpr' function only available with '-std=c++2b' or '-std=gnu++2b' 77 | const auto clampedAdd = [](std::uint8_t lhs, std::uint8_t rhs) | ^~~~~~~~~~ /usr/include/SFML/Graphics/Color.inl:77:30: note: 'sf::operator+(Color, Color)::' is not literal because: 77 | const auto clampedAdd = [](std::uint8_t lhs, std::uint8_t rhs) | ^ cc1plus: note: 'sf::operator+(Color, Color)::' is a closure type, which is only literal in C++17 and later /usr/include/SFML/Graphics/Color.inl: In function 'constexpr sf::Color sf::operator-(Color, Color)': /usr/include/SFML/Graphics/Color.inl:93:16: error: variable 'clampedSub' of non-literal type 'const sf::operator-(Color, Color)::' in 'constexpr' function only available with '-std=c++2b' or '-std=gnu++2b' 93 | const auto clampedSub = [](std::uint8_t lhs, std::uint8_t rhs) | ^~~~~~~~~~ /usr/include/SFML/Graphics/Color.inl:93:30: note: 'sf::operator-(Color, Color)::' is not literal because: 93 | const auto clampedSub = [](std::uint8_t lhs, std::uint8_t rhs) | ^ cc1plus: note: 'sf::operator-(Color, Color)::' is a closure type, which is only literal in C++17 and later /usr/include/SFML/Graphics/Color.inl: In function 'constexpr sf::Color sf::operator*(Color, Color)': /usr/include/SFML/Graphics/Color.inl:109:16: error: variable 'scaledMul' of non-literal type 'const sf::operator*(Color, Color)::' in 'constexpr' function only available with '-std=c++2b' or '-std=gnu++2b' 109 | const auto scaledMul = [](std::uint8_t lhs, std::uint8_t rhs) | ^~~~~~~~~ /usr/include/SFML/Graphics/Color.inl:109:29: note: 'sf::operator*(Color, Color)::' is not literal because: 109 | const auto scaledMul = [](std::uint8_t lhs, std::uint8_t rhs) | ^ cc1plus: note: 'sf::operator*(Color, Color)::' is a closure type, which is only literal in C++17 and later In file included from /usr/include/SFML/Graphics/Shape.hpp:35: /usr/include/SFML/Graphics/Rect.hpp: At global scope: /usr/include/SFML/Graphics/Rect.hpp:98:34: error: 'optional' in namespace 'std' does not name a template type 98 | [[nodiscard]] constexpr std::optional> findIntersection(const Rect& rectangle) const; | ^~~~~~~~ /usr/include/SFML/Graphics/Rect.hpp:98:29: note: 'std::optional' is only available from C++17 onwards 98 | [[nodiscard]] constexpr std::optional> findIntersection(const Rect& rectangle) const; | ^~~ In file included from /usr/include/SFML/Graphics/Rect.hpp:151: /usr/include/SFML/Graphics/Rect.inl:71:16: error: 'optional' in namespace 'std' does not name a template type 71 | constexpr std::optional> Rect::findIntersection(const Rect& rectangle) const | ^~~~~~~~ /usr/include/SFML/Graphics/Rect.inl:71:11: note: 'std::optional' is only available from C++17 onwards 71 | constexpr std::optional> Rect::findIntersection(const Rect& rectangle) const | ^~~ In file included from /usr/include/SFML/Graphics/Transform.hpp:352, from /usr/include/SFML/Graphics/RenderStates.hpp:35, from /usr/include/SFML/Graphics/Shape.hpp:36: /usr/include/SFML/Graphics/Transform.inl: In member function 'constexpr sf::FloatRect sf::Transform::transformRect(const sf::FloatRect&) const': /usr/include/SFML/Graphics/Transform.inl:101:11: error: invalid use of template-name 'std::array' without an argument list 101 | const std::array points = {transformPoint(rectangle.position), | ^~~ /usr/include/SFML/Graphics/Transform.inl:101:11: note: class template argument deduction is only available with '-std=c++17' or '-std=gnu++17' In file included from /usr/include/c++/14/bits/stl_algobase.h:64, from /usr/include/c++/14/string:51, from bh.h:27: /usr/include/c++/14/bits/stl_pair.h:99:12: note: 'template struct std::array' declared here 99 | struct array; | ^~~~~ /usr/include/SFML/Graphics/Transform.inl:107:21: error: 'points' was not declared in this scope; did you mean 'printf'? 107 | Vector2f pmin = points[0]; | ^~~~~~ | printf In file included from /usr/include/SFML/Graphics/Font.hpp:34, from /usr/include/SFML/Graphics.hpp:36: /usr/include/SFML/Graphics/Texture.hpp: At global scope: /usr/include/SFML/Graphics/Texture.hpp:114:33: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Texture.hpp:114:49: error: expected unqualified-id before '&' token 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^ /usr/include/SFML/Graphics/Texture.hpp:114:49: error: expected ')' before '&' token 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ~ ^ | ) /usr/include/SFML/Graphics/Texture.hpp:114:49: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Texture.hpp:114:49: error: expected ';' at end of member declaration 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^ | ; /usr/include/SFML/Graphics/Texture.hpp:114:51: error: 'filename' does not name a type 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^~~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:137:24: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Texture.hpp:137:40: error: expected unqualified-id before '&' token 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^ /usr/include/SFML/Graphics/Texture.hpp:137:40: error: expected ')' before '&' token 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ~ ^ | ) /usr/include/SFML/Graphics/Texture.hpp:137:40: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Texture.hpp:137:40: error: expected ';' at end of member declaration 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^ | ; /usr/include/SFML/Graphics/Texture.hpp:137:5: error: 'sf::Texture::Texture(...)' cannot be overloaded with 'sf::Texture::Texture(...)' 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:114:14: note: previous declaration 'sf::Texture::Texture(...)' 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:137:42: error: 'filename' does not name a type 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^~~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:304:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Texture.hpp:304:64: error: expected unqualified-id before '&' token 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^ /usr/include/SFML/Graphics/Texture.hpp:304:64: error: expected ')' before '&' token 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ~ ^ | ) /usr/include/SFML/Graphics/Texture.hpp:304:64: error: expected ';' at end of member declaration 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^ | ; /usr/include/SFML/Graphics/Texture.hpp:304:66: error: 'filename' does not name a type 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^~~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:304:119: error: expected unqualified-id before ')' token 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^ /usr/include/SFML/Graphics/Font.hpp:103:30: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 103 | explicit Font(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Font.hpp:103:46: error: expected unqualified-id before '&' token 103 | explicit Font(const std::filesystem::path& filename); | ^ /usr/include/SFML/Graphics/Font.hpp:103:46: error: expected ')' before '&' token 103 | explicit Font(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Graphics/Font.hpp:103:46: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Font.hpp:103:46: error: expected ';' at end of member declaration 103 | explicit Font(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Graphics/Font.hpp:103:48: error: 'filename' does not name a type 103 | explicit Font(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/Graphics/Font.hpp:168:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Font.hpp:168:64: error: expected unqualified-id before '&' token 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^ /usr/include/SFML/Graphics/Font.hpp:168:64: error: expected ')' before '&' token 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Graphics/Font.hpp:168:64: error: expected ';' at end of member declaration 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Graphics/Font.hpp:168:66: error: 'filename' does not name a type 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^~~~~~~~ In file included from /usr/include/SFML/Graphics.hpp:38: /usr/include/SFML/Graphics/Image.hpp:103:31: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 103 | explicit Image(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Image.hpp:103:47: error: expected unqualified-id before '&' token 103 | explicit Image(const std::filesystem::path& filename); | ^ /usr/include/SFML/Graphics/Image.hpp:103:47: error: expected ')' before '&' token 103 | explicit Image(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Graphics/Image.hpp:103:47: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Image.hpp:103:47: error: expected ';' at end of member declaration 103 | explicit Image(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Graphics/Image.hpp:103:49: error: 'filename' does not name a type 103 | explicit Image(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/Graphics/Image.hpp:175:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Image.hpp:175:64: error: expected unqualified-id before '&' token 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^ /usr/include/SFML/Graphics/Image.hpp:175:64: error: expected ')' before '&' token 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Graphics/Image.hpp:175:64: error: expected ';' at end of member declaration 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Graphics/Image.hpp:175:66: error: 'filename' does not name a type 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/Graphics/Image.hpp:227:46: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Image.hpp:227:62: error: expected unqualified-id before '&' token 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^ /usr/include/SFML/Graphics/Image.hpp:227:62: error: expected ')' before '&' token 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ~ ^ | ) /usr/include/SFML/Graphics/Image.hpp:227:62: error: expected ';' at end of member declaration 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^ | ; /usr/include/SFML/Graphics/Image.hpp:227:64: error: 'filename' does not name a type 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^~~~~~~~ /usr/include/SFML/Graphics/Image.hpp:245:24: error: 'optional' in namespace 'std' does not name a template type 245 | [[nodiscard]] std::optional> saveToMemory(std::string_view format) const; | ^~~~~~~~ /usr/include/SFML/Graphics/Image.hpp:245:19: note: 'std::optional' is only available from C++17 onwards 245 | [[nodiscard]] std::optional> saveToMemory(std::string_view format) const; | ^~~ In file included from /usr/include/SFML/Graphics.hpp:46: /usr/include/SFML/Graphics/Shader.hpp:147:23: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 147 | Shader(const std::filesystem::path& filename, Type type); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:147:39: error: expected unqualified-id before '&' token 147 | Shader(const std::filesystem::path& filename, Type type); | ^ /usr/include/SFML/Graphics/Shader.hpp:147:39: error: expected ')' before '&' token 147 | Shader(const std::filesystem::path& filename, Type type); | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:147:39: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Shader.hpp:147:39: error: expected ';' at end of member declaration 147 | Shader(const std::filesystem::path& filename, Type type); | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:147:41: error: 'filename' does not name a type 147 | Shader(const std::filesystem::path& filename, Type type); | ^~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:168:23: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:168:39: error: expected unqualified-id before '&' token 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^ /usr/include/SFML/Graphics/Shader.hpp:168:39: error: expected ')' before '&' token 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:168:39: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Shader.hpp:168:39: error: expected ';' at end of member declaration 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:168:5: error: 'sf::Shader::Shader(...)' cannot be overloaded with 'sf::Shader::Shader(...)' 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^~~~~~ /usr/include/SFML/Graphics/Shader.hpp:147:5: note: previous declaration 'sf::Shader::Shader(...)' 147 | Shader(const std::filesystem::path& filename, Type type); | ^~~~~~ /usr/include/SFML/Graphics/Shader.hpp:168:41: error: 'vertexShaderFilename' does not name a type 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:190:23: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:190:39: error: expected unqualified-id before '&' token 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^ /usr/include/SFML/Graphics/Shader.hpp:190:39: error: expected ')' before '&' token 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:190:39: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Shader.hpp:190:39: error: expected ';' at end of member declaration 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:190:5: error: 'sf::Shader::Shader(...)' cannot be overloaded with 'sf::Shader::Shader(...)' 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^~~~~~ /usr/include/SFML/Graphics/Shader.hpp:147:5: note: previous declaration 'sf::Shader::Shader(...)' 147 | Shader(const std::filesystem::path& filename, Type type); | ^~~~~~ /usr/include/SFML/Graphics/Shader.hpp:190:41: error: 'vertexShaderFilename' does not name a type 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:212:28: error: expected ')' before 'shader' 212 | Shader(std::string_view shader, Type type); | ~ ^~~~~~~ | ) /usr/include/SFML/Graphics/Shader.hpp:233:28: error: expected ')' before 'vertexShader' 233 | Shader(std::string_view vertexShader, std::string_view fragmentShader); | ~ ^~~~~~~~~~~~~ | ) /usr/include/SFML/Graphics/Shader.hpp:255:28: error: expected ')' before 'vertexShader' 255 | Shader(std::string_view vertexShader, std::string_view geometryShader, std::string_view fragmentShader); | ~ ^~~~~~~~~~~~~ | ) /usr/include/SFML/Graphics/Shader.hpp:339:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:339:64: error: expected unqualified-id before '&' token 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^ /usr/include/SFML/Graphics/Shader.hpp:339:64: error: expected ')' before '&' token 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:339:64: error: expected ';' at end of member declaration 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:339:66: error: 'filename' does not name a type 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:360:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:360:64: error: expected unqualified-id before '&' token 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^ /usr/include/SFML/Graphics/Shader.hpp:360:64: error: expected ')' before '&' token 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:360:64: error: expected ';' at end of member declaration 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:360:24: error: 'bool sf::Shader::loadFromFile(...) &' cannot be overloaded with 'bool sf::Shader::loadFromFile(...) &' 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:339:24: note: previous declaration 'bool sf::Shader::loadFromFile(...) &' 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:360:66: error: 'vertexShaderFilename' does not name a type 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:383:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:383:64: error: expected unqualified-id before '&' token 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^ /usr/include/SFML/Graphics/Shader.hpp:383:64: error: expected ')' before '&' token 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:383:64: error: expected ';' at end of member declaration 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:383:24: error: 'bool sf::Shader::loadFromFile(...) &' cannot be overloaded with 'bool sf::Shader::loadFromFile(...) &' 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:339:24: note: previous declaration 'bool sf::Shader::loadFromFile(...) &' 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:383:66: error: 'vertexShaderFilename' does not name a type 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:405:44: error: 'std::string_view' has not been declared 405 | [[nodiscard]] bool loadFromMemory(std::string_view shader, Type type); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:426:44: error: 'std::string_view' has not been declared 426 | [[nodiscard]] bool loadFromMemory(std::string_view vertexShader, std::string_view fragmentShader); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:426:75: error: 'std::string_view' has not been declared 426 | [[nodiscard]] bool loadFromMemory(std::string_view vertexShader, std::string_view fragmentShader); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:448:44: error: 'std::string_view' has not been declared 448 | [[nodiscard]] bool loadFromMemory(std::string_view vertexShader, | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:449:44: error: 'std::string_view' has not been declared 449 | std::string_view geometryShader, | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:450:44: error: 'std::string_view' has not been declared 450 | std::string_view fragmentShader); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:861:37: error: 'std::string_view' has not been declared 861 | [[nodiscard]] bool compile(std::string_view vertexShaderCode, | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:862:37: error: 'std::string_view' has not been declared 862 | std::string_view geometryShaderCode, | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:863:37: error: 'std::string_view' has not been declared 863 | std::string_view fragmentShaderCode); | ^~~~~~~~~~~ make[2]: *** [Makefile:566: game_config.o] Error 1 make[2]: Leaving directory '/usr/src/RPM/BUILD/etr-0.8.4/src' make[2]: Entering directory '/usr/src/RPM/BUILD/etr-0.8.4/src' x86_64-alt-linux-g++ -DHAVE_CONFIG_H -I. -I.. -DETR_DATA_DIR=\"/usr/share\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -std=c++14 -c -o env.o env.cpp In file included from /usr/include/SFML/System.hpp:34, from bh.h:30, from env.h:21, from env.cpp:22: /usr/include/SFML/System/Clock.hpp:78:20: error: 'ratio_less_equal_v' is not a member of 'std'; did you mean 'ratio_less_equal'? 78 | static_assert(std::ratio_less_equal_v, | ^~~~~~~~~~~~~~~~~~ | ratio_less_equal /usr/include/SFML/System/Clock.hpp:78:56: error: expected primary-expression before ',' token 78 | static_assert(std::ratio_less_equal_v, | ^ /usr/include/SFML/System/Clock.hpp:78:68: error: expected primary-expression before '>' token 78 | static_assert(std::ratio_less_equal_v, | ^ /usr/include/SFML/System/Clock.hpp:78:69: error: expected primary-expression before ',' token 78 | static_assert(std::ratio_less_equal_v, | ^ /usr/include/SFML/System/Clock.hpp:78:69: error: expected ')' before ',' token 78 | static_assert(std::ratio_less_equal_v, | ~ ^ | ) In file included from /usr/include/SFML/System/FileInputStream.hpp:34, from /usr/include/SFML/System.hpp:37: /usr/include/SFML/System/InputStream.hpp:66:32: error: 'optional' in namespace 'std' does not name a template type 66 | [[nodiscard]] virtual std::optional read(void* data, std::size_t size) = 0; | ^~~~~~~~ /usr/include/SFML/System/InputStream.hpp:66:27: note: 'std::optional' is only available from C++17 onwards 66 | [[nodiscard]] virtual std::optional read(void* data, std::size_t size) = 0; | ^~~ /usr/include/SFML/System/InputStream.hpp:76:32: error: 'optional' in namespace 'std' does not name a template type 76 | [[nodiscard]] virtual std::optional seek(std::size_t position) = 0; | ^~~~~~~~ /usr/include/SFML/System/InputStream.hpp:76:27: note: 'std::optional' is only available from C++17 onwards 76 | [[nodiscard]] virtual std::optional seek(std::size_t position) = 0; | ^~~ /usr/include/SFML/System/InputStream.hpp:84:32: error: 'optional' in namespace 'std' does not name a template type 84 | [[nodiscard]] virtual std::optional tell() = 0; | ^~~~~~~~ /usr/include/SFML/System/InputStream.hpp:84:27: note: 'std::optional' is only available from C++17 onwards 84 | [[nodiscard]] virtual std::optional tell() = 0; | ^~~ /usr/include/SFML/System/InputStream.hpp:92:18: error: 'optional' in namespace 'std' does not name a template type 92 | virtual std::optional getSize() = 0; | ^~~~~~~~ /usr/include/SFML/System/InputStream.hpp:92:13: note: 'std::optional' is only available from C++17 onwards 92 | virtual std::optional getSize() = 0; | ^~~ /usr/include/SFML/System/FileInputStream.hpp:106:41: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 106 | explicit FileInputStream(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/System/FileInputStream.hpp:106:57: error: expected unqualified-id before '&' token 106 | explicit FileInputStream(const std::filesystem::path& filename); | ^ /usr/include/SFML/System/FileInputStream.hpp:106:57: error: expected ')' before '&' token 106 | explicit FileInputStream(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/System/FileInputStream.hpp:106:57: error: constructors may not be ref-qualified /usr/include/SFML/System/FileInputStream.hpp:106:57: error: expected ';' at end of member declaration 106 | explicit FileInputStream(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/System/FileInputStream.hpp:106:59: error: 'filename' does not name a type 106 | explicit FileInputStream(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:116:40: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/System/FileInputStream.hpp:116:56: error: expected unqualified-id before '&' token 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ^ /usr/include/SFML/System/FileInputStream.hpp:116:56: error: expected ')' before '&' token 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/System/FileInputStream.hpp:116:56: error: expected ';' at end of member declaration 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/System/FileInputStream.hpp:116:58: error: 'filename' does not name a type 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:130:24: error: 'optional' in namespace 'std' does not name a template type 130 | [[nodiscard]] std::optional read(void* data, std::size_t size) override; | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:130:19: note: 'std::optional' is only available from C++17 onwards 130 | [[nodiscard]] std::optional read(void* data, std::size_t size) override; | ^~~ /usr/include/SFML/System/FileInputStream.hpp:140:24: error: 'optional' in namespace 'std' does not name a template type 140 | [[nodiscard]] std::optional seek(std::size_t position) override; | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:140:19: note: 'std::optional' is only available from C++17 onwards 140 | [[nodiscard]] std::optional seek(std::size_t position) override; | ^~~ /usr/include/SFML/System/FileInputStream.hpp:148:24: error: 'optional' in namespace 'std' does not name a template type 148 | [[nodiscard]] std::optional tell() override; | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:148:19: note: 'std::optional' is only available from C++17 onwards 148 | [[nodiscard]] std::optional tell() override; | ^~~ /usr/include/SFML/System/FileInputStream.hpp:156:10: error: 'optional' in namespace 'std' does not name a template type 156 | std::optional getSize() override; | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:156:5: note: 'std::optional' is only available from C++17 onwards 156 | std::optional getSize() override; | ^~~ In file included from /usr/include/SFML/System.hpp:39: /usr/include/SFML/System/MemoryInputStream.hpp:70:24: error: 'optional' in namespace 'std' does not name a template type 70 | [[nodiscard]] std::optional read(void* data, std::size_t size) override; | ^~~~~~~~ /usr/include/SFML/System/MemoryInputStream.hpp:70:19: note: 'std::optional' is only available from C++17 onwards 70 | [[nodiscard]] std::optional read(void* data, std::size_t size) override; | ^~~ /usr/include/SFML/System/MemoryInputStream.hpp:80:24: error: 'optional' in namespace 'std' does not name a template type 80 | [[nodiscard]] std::optional seek(std::size_t position) override; | ^~~~~~~~ /usr/include/SFML/System/MemoryInputStream.hpp:80:19: note: 'std::optional' is only available from C++17 onwards 80 | [[nodiscard]] std::optional seek(std::size_t position) override; | ^~~ /usr/include/SFML/System/MemoryInputStream.hpp:88:24: error: 'optional' in namespace 'std' does not name a template type 88 | [[nodiscard]] std::optional tell() override; | ^~~~~~~~ /usr/include/SFML/System/MemoryInputStream.hpp:88:19: note: 'std::optional' is only available from C++17 onwards 88 | [[nodiscard]] std::optional tell() override; | ^~~ /usr/include/SFML/System/MemoryInputStream.hpp:96:10: error: 'optional' in namespace 'std' does not name a template type 96 | std::optional getSize() override; | ^~~~~~~~ /usr/include/SFML/System/MemoryInputStream.hpp:96:5: note: 'std::optional' is only available from C++17 onwards 96 | std::optional getSize() override; | ^~~ /usr/include/SFML/System/MemoryInputStream.hpp:102:16: error: 'byte' in namespace 'std' does not name a type 102 | const std::byte* m_data{}; //!< Pointer to the data in memory | ^~~~ /usr/include/SFML/System/MemoryInputStream.hpp:102:11: note: 'std::byte' is only available from C++17 onwards 102 | const std::byte* m_data{}; //!< Pointer to the data in memory | ^~~ In file included from /usr/include/SFML/System/Utf.hpp:742, from /usr/include/SFML/System/String.hpp:32, from /usr/include/SFML/System.hpp:41: /usr/include/SFML/System/Utf.inl: In static member function 'static Out sf::Utf<8>::encode(char32_t, Out, uint8_t)': /usr/include/SFML/System/Utf.inl:137:25: error: 'byte' is not a member of 'std' 137 | std::array bytes{}; | ^~~~ /usr/include/SFML/System/Utf.inl:137:25: note: 'std::byte' is only available from C++17 onwards /usr/include/SFML/System/Utf.inl:137:25: error: 'byte' is not a member of 'std' /usr/include/SFML/System/Utf.inl:137:25: note: 'std::byte' is only available from C++17 onwards /usr/include/SFML/System/Utf.inl:137:32: error: template argument 1 is invalid 137 | std::array bytes{}; | ^ /usr/include/SFML/System/Utf.inl:142:26: error: invalid types 'int[int]' for array subscript 142 | case 4: bytes[3] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^ /usr/include/SFML/System/Utf.inl:142:49: error: 'byte' in namespace 'std' does not name a type 142 | case 4: bytes[3] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~~ /usr/include/SFML/System/Utf.inl:142:44: note: 'std::byte' is only available from C++17 onwards 142 | case 4: bytes[3] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~ /usr/include/SFML/System/Utf.inl:143:26: error: invalid types 'int[int]' for array subscript 143 | case 3: bytes[2] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^ /usr/include/SFML/System/Utf.inl:143:49: error: 'byte' in namespace 'std' does not name a type 143 | case 3: bytes[2] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~~ /usr/include/SFML/System/Utf.inl:143:44: note: 'std::byte' is only available from C++17 onwards 143 | case 3: bytes[2] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~ /usr/include/SFML/System/Utf.inl:144:26: error: invalid types 'int[int]' for array subscript 144 | case 2: bytes[1] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^ /usr/include/SFML/System/Utf.inl:144:49: error: 'byte' in namespace 'std' does not name a type 144 | case 2: bytes[1] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~~ /usr/include/SFML/System/Utf.inl:144:44: note: 'std::byte' is only available from C++17 onwards 144 | case 2: bytes[1] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~ /usr/include/SFML/System/Utf.inl:145:26: error: invalid types 'int[int]' for array subscript 145 | case 1: bytes[0] = static_cast (input | firstBytes[bytestoWrite]); | ^ /usr/include/SFML/System/Utf.inl:145:49: error: 'byte' in namespace 'std' does not name a type 145 | case 1: bytes[0] = static_cast (input | firstBytes[bytestoWrite]); | ^~~~ /usr/include/SFML/System/Utf.inl:145:44: note: 'std::byte' is only available from C++17 onwards 145 | case 1: bytes[0] = static_cast (input | firstBytes[bytestoWrite]); | ^~~ /usr/include/SFML/System/Utf.inl:150:35: error: request for member 'data' in 'bytes', which is of non-class type 'int' 150 | output = priv::copy(bytes.data(), bytes.data() + bytestoWrite, output); | ^~~~ /usr/include/SFML/System/Utf.inl:150:49: error: request for member 'data' in 'bytes', which is of non-class type 'int' 150 | output = priv::copy(bytes.data(), bytes.data() + bytestoWrite, output); | ^~~~ In file included from /usr/include/SFML/Window.hpp:32, from bh.h:31: /usr/include/SFML/Window/Context.hpp: At global scope: /usr/include/SFML/Window/Context.hpp:130:57: error: 'std::string_view' has not been declared 130 | [[nodiscard]] static bool isExtensionAvailable(std::string_view name); | ^~~~~~~~~~~ In file included from /usr/include/SFML/Window.hpp:34: /usr/include/SFML/Window/Cursor.hpp:226:31: error: 'optional' in namespace 'std' does not name a template type 226 | [[nodiscard]] static std::optional createFromPixels(const std::uint8_t* pixels, Vector2u size, Vector2u hotspot); | ^~~~~~~~ /usr/include/SFML/Window/Cursor.hpp:226:26: note: 'std::optional' is only available from C++17 onwards 226 | [[nodiscard]] static std::optional createFromPixels(const std::uint8_t* pixels, Vector2u size, Vector2u hotspot); | ^~~ /usr/include/SFML/Window/Cursor.hpp:242:31: error: 'optional' in namespace 'std' does not name a template type 242 | [[nodiscard]] static std::optional createFromSystem(Type type); | ^~~~~~~~ /usr/include/SFML/Window/Cursor.hpp:242:26: note: 'std::optional' is only available from C++17 onwards 242 | [[nodiscard]] static std::optional createFromSystem(Type type); | ^~~ In file included from /usr/include/SFML/Window.hpp:35: /usr/include/SFML/Window/Event.hpp:345:10: error: 'variant' in namespace 'std' does not name a template type 345 | std::variant*) | ^~~~~~~ /usr/include/SFML/Window/Event.hpp:374:65: note: 'std::variant' is only available from C++17 onwards 374 | [[nodiscard]] static constexpr bool isInParameterPack(const std::variant*) | ^~~ /usr/include/SFML/Window/Event.hpp:374:77: error: expected ',' or '...' before '<' token 374 | [[nodiscard]] static constexpr bool isInParameterPack(const std::variant*) | ^ /usr/include/SFML/Window/Event.hpp:380:76: error: 'm_data' was not declared in this scope 380 | static constexpr bool isEventSubtype = isInParameterPack(decltype (&m_data)(nullptr)); | ^~~~~~ /usr/include/SFML/Window/Event.hpp: In static member function 'static constexpr bool sf::Event::isInParameterPack(int)': /usr/include/SFML/Window/Event.hpp:376:22: error: 'is_same_v' is not a member of 'std'; did you mean 'is_same'? 376 | return (std::is_same_v || ...); | ^~~~~~~~~ | is_same /usr/include/SFML/Window/Event.hpp:376:33: error: expected primary-expression before ',' token 376 | return (std::is_same_v || ...); | ^ /usr/include/SFML/Window/Event.hpp:376:37: error: expected primary-expression before '>' token 376 | return (std::is_same_v || ...); | ^ /usr/include/SFML/Window/Event.hpp:376:39: error: expected primary-expression before '||' token 376 | return (std::is_same_v || ...); | ^~ /usr/include/SFML/Window/Event.hpp:376:42: error: operand of fold expression has no unexpanded parameter packs 376 | return (std::is_same_v || ...); | ^~~ In file included from /usr/include/SFML/Window/Event.hpp:385: /usr/include/SFML/Window/Event.inl: In constructor 'sf::Event::Event(const TEventSubtype&)': /usr/include/SFML/Window/Event.inl:47:9: error: 'm_data' was not declared in this scope 47 | m_data = eventSubtype; | ^~~~~~ /usr/include/SFML/Window/Event.inl: In member function 'bool sf::Event::is() const': /usr/include/SFML/Window/Event.inl:57:21: error: 'holds_alternative' is not a member of 'std' 57 | return std::holds_alternative(m_data); | ^~~~~~~~~~~~~~~~~ /usr/include/SFML/Window/Event.inl:57:21: note: 'std::holds_alternative' is only available from C++17 onwards /usr/include/SFML/Window/Event.inl:57:52: error: expected primary-expression before '>' token 57 | return std::holds_alternative(m_data); | ^ /usr/include/SFML/Window/Event.inl:57:54: error: 'm_data' was not declared in this scope 57 | return std::holds_alternative(m_data); | ^~~~~~ /usr/include/SFML/Window/Event.inl: In member function 'const TEventSubtype* sf::Event::getIf() const': /usr/include/SFML/Window/Event.inl:67:21: error: 'get_if' is not a member of 'std' 67 | return std::get_if(&m_data); | ^~~~~~ /usr/include/SFML/Window/Event.inl:67:41: error: expected primary-expression before '>' token 67 | return std::get_if(&m_data); | ^ /usr/include/SFML/Window/Event.inl:67:44: error: 'm_data' was not declared in this scope 67 | return std::get_if(&m_data); | ^~~~~~ /usr/include/SFML/Window/Event.inl: In member function 'decltype(auto) sf::Event::visit(T&&) const': /usr/include/SFML/Window/Event.inl:75:17: error: 'visit' is not a member of 'std' 75 | return std::visit(std::forward(visitor), m_data); | ^~~~~ /usr/include/SFML/Window/Event.inl:75:17: note: 'std::visit' is only available from C++17 onwards /usr/include/SFML/Window/Event.inl:75:49: error: 'm_data' was not declared in this scope 75 | return std::visit(std::forward(visitor), m_data); | ^~~~~~ In file included from /usr/include/SFML/Window/Window.hpp:32, from /usr/include/SFML/Window.hpp:42: /usr/include/SFML/Window/WindowBase.hpp: At global scope: /usr/include/SFML/Window/WindowBase.hpp:226:24: error: 'optional' in namespace 'std' does not name a template type 226 | [[nodiscard]] std::optional pollEvent(); | ^~~~~~~~ /usr/include/SFML/Window/WindowBase.hpp:226:19: note: 'std::optional' is only available from C++17 onwards 226 | [[nodiscard]] std::optional pollEvent(); | ^~~ /usr/include/SFML/Window/WindowBase.hpp:252:24: error: 'optional' in namespace 'std' does not name a template type 252 | [[nodiscard]] std::optional waitEvent(Time timeout = Time::Zero); | ^~~~~~~~ /usr/include/SFML/Window/WindowBase.hpp:252:19: note: 'std::optional' is only available from C++17 onwards 252 | [[nodiscard]] std::optional waitEvent(Time timeout = Time::Zero); | ^~~ /usr/include/SFML/Window/WindowBase.hpp:387:36: error: 'optional' in namespace 'std' does not name a template type 387 | void setMinimumSize(const std::optional& minimumSize); | ^~~~~~~~ /usr/include/SFML/Window/WindowBase.hpp:387:31: note: 'std::optional' is only available from C++17 onwards 387 | void setMinimumSize(const std::optional& minimumSize); | ^~~ /usr/include/SFML/Window/WindowBase.hpp:387:44: error: expected ',' or '...' before '<' token 387 | void setMinimumSize(const std::optional& minimumSize); | ^ /usr/include/SFML/Window/WindowBase.hpp:397:36: error: 'optional' in namespace 'std' does not name a template type 397 | void setMaximumSize(const std::optional& maximumSize); | ^~~~~~~~ /usr/include/SFML/Window/WindowBase.hpp:397:31: note: 'std::optional' is only available from C++17 onwards 397 | void setMaximumSize(const std::optional& maximumSize); | ^~~ /usr/include/SFML/Window/WindowBase.hpp:397:44: error: expected ',' or '...' before '<' token 397 | void setMaximumSize(const std::optional& maximumSize); | ^ In file included from /usr/include/SFML/Window/WindowBase.hpp:617: /usr/include/SFML/Window/WindowBase.inl:47:41: error: expected constructor, destructor, or type conversion before ';' token 47 | OverloadSet(Ts...) -> OverloadSet; | ^ /usr/include/SFML/Window/WindowBase.inl: In member function 'void sf::WindowBase::handleEvents(Ts&& ...)': /usr/include/SFML/Window/WindowBase.inl:69:23: error: missing template arguments before 'overloadSet' 69 | priv::OverloadSet overloadSet{std::forward(handlers)..., [](const priv::DelayOverloadResolution&) { /* ignore */ }}; | ^~~~~~~~~~~ /usr/include/SFML/Window/WindowBase.inl:71:32: error: qualified-id in declaration before 'event' 71 | while (const std::optional event = pollEvent()) | ^~~~~ /usr/include/SFML/Window/WindowBase.inl:72:9: error: 'event' was not declared in this scope; did you mean 'Event'? 72 | event->visit(overloadSet); | ^~~~~ | Event /usr/include/SFML/Window/WindowBase.inl:72:22: error: 'overloadSet' was not declared in this scope 72 | event->visit(overloadSet); | ^~~~~~~~~~~ In file included from /usr/include/SFML/Graphics/Color.hpp:229, from /usr/include/SFML/Graphics/Shape.hpp:32, from /usr/include/SFML/Graphics/CircleShape.hpp:32, from /usr/include/SFML/Graphics.hpp:32, from bh.h:32: /usr/include/SFML/Graphics/Color.inl: In function 'constexpr sf::Color sf::operator+(Color, Color)': /usr/include/SFML/Graphics/Color.inl:77:16: error: variable 'clampedAdd' of non-literal type 'const sf::operator+(Color, Color)::' in 'constexpr' function only available with '-std=c++2b' or '-std=gnu++2b' 77 | const auto clampedAdd = [](std::uint8_t lhs, std::uint8_t rhs) | ^~~~~~~~~~ /usr/include/SFML/Graphics/Color.inl:77:30: note: 'sf::operator+(Color, Color)::' is not literal because: 77 | const auto clampedAdd = [](std::uint8_t lhs, std::uint8_t rhs) | ^ cc1plus: note: 'sf::operator+(Color, Color)::' is a closure type, which is only literal in C++17 and later /usr/include/SFML/Graphics/Color.inl: In function 'constexpr sf::Color sf::operator-(Color, Color)': /usr/include/SFML/Graphics/Color.inl:93:16: error: variable 'clampedSub' of non-literal type 'const sf::operator-(Color, Color)::' in 'constexpr' function only available with '-std=c++2b' or '-std=gnu++2b' 93 | const auto clampedSub = [](std::uint8_t lhs, std::uint8_t rhs) | ^~~~~~~~~~ /usr/include/SFML/Graphics/Color.inl:93:30: note: 'sf::operator-(Color, Color)::' is not literal because: 93 | const auto clampedSub = [](std::uint8_t lhs, std::uint8_t rhs) | ^ cc1plus: note: 'sf::operator-(Color, Color)::' is a closure type, which is only literal in C++17 and later /usr/include/SFML/Graphics/Color.inl: In function 'constexpr sf::Color sf::operator*(Color, Color)': /usr/include/SFML/Graphics/Color.inl:109:16: error: variable 'scaledMul' of non-literal type 'const sf::operator*(Color, Color)::' in 'constexpr' function only available with '-std=c++2b' or '-std=gnu++2b' 109 | const auto scaledMul = [](std::uint8_t lhs, std::uint8_t rhs) | ^~~~~~~~~ /usr/include/SFML/Graphics/Color.inl:109:29: note: 'sf::operator*(Color, Color)::' is not literal because: 109 | const auto scaledMul = [](std::uint8_t lhs, std::uint8_t rhs) | ^ cc1plus: note: 'sf::operator*(Color, Color)::' is a closure type, which is only literal in C++17 and later In file included from /usr/include/SFML/Graphics/Shape.hpp:35: /usr/include/SFML/Graphics/Rect.hpp: At global scope: /usr/include/SFML/Graphics/Rect.hpp:98:34: error: 'optional' in namespace 'std' does not name a template type 98 | [[nodiscard]] constexpr std::optional> findIntersection(const Rect& rectangle) const; | ^~~~~~~~ /usr/include/SFML/Graphics/Rect.hpp:98:29: note: 'std::optional' is only available from C++17 onwards 98 | [[nodiscard]] constexpr std::optional> findIntersection(const Rect& rectangle) const; | ^~~ In file included from /usr/include/SFML/Graphics/Rect.hpp:151: /usr/include/SFML/Graphics/Rect.inl:71:16: error: 'optional' in namespace 'std' does not name a template type 71 | constexpr std::optional> Rect::findIntersection(const Rect& rectangle) const | ^~~~~~~~ /usr/include/SFML/Graphics/Rect.inl:71:11: note: 'std::optional' is only available from C++17 onwards 71 | constexpr std::optional> Rect::findIntersection(const Rect& rectangle) const | ^~~ In file included from /usr/include/SFML/Graphics/Transform.hpp:352, from /usr/include/SFML/Graphics/RenderStates.hpp:35, from /usr/include/SFML/Graphics/Shape.hpp:36: /usr/include/SFML/Graphics/Transform.inl: In member function 'constexpr sf::FloatRect sf::Transform::transformRect(const sf::FloatRect&) const': /usr/include/SFML/Graphics/Transform.inl:101:11: error: invalid use of template-name 'std::array' without an argument list 101 | const std::array points = {transformPoint(rectangle.position), | ^~~ /usr/include/SFML/Graphics/Transform.inl:101:11: note: class template argument deduction is only available with '-std=c++17' or '-std=gnu++17' In file included from /usr/include/c++/14/bits/stl_algobase.h:64, from /usr/include/c++/14/string:51, from bh.h:27: /usr/include/c++/14/bits/stl_pair.h:99:12: note: 'template struct std::array' declared here 99 | struct array; | ^~~~~ /usr/include/SFML/Graphics/Transform.inl:107:21: error: 'points' was not declared in this scope; did you mean 'printf'? 107 | Vector2f pmin = points[0]; | ^~~~~~ | printf In file included from /usr/include/SFML/Graphics/Font.hpp:34, from /usr/include/SFML/Graphics.hpp:36: /usr/include/SFML/Graphics/Texture.hpp: At global scope: /usr/include/SFML/Graphics/Texture.hpp:114:33: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Texture.hpp:114:49: error: expected unqualified-id before '&' token 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^ /usr/include/SFML/Graphics/Texture.hpp:114:49: error: expected ')' before '&' token 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ~ ^ | ) /usr/include/SFML/Graphics/Texture.hpp:114:49: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Texture.hpp:114:49: error: expected ';' at end of member declaration 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^ | ; /usr/include/SFML/Graphics/Texture.hpp:114:51: error: 'filename' does not name a type 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^~~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:137:24: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Texture.hpp:137:40: error: expected unqualified-id before '&' token 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^ /usr/include/SFML/Graphics/Texture.hpp:137:40: error: expected ')' before '&' token 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ~ ^ | ) /usr/include/SFML/Graphics/Texture.hpp:137:40: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Texture.hpp:137:40: error: expected ';' at end of member declaration 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^ | ; /usr/include/SFML/Graphics/Texture.hpp:137:5: error: 'sf::Texture::Texture(...)' cannot be overloaded with 'sf::Texture::Texture(...)' 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:114:14: note: previous declaration 'sf::Texture::Texture(...)' 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:137:42: error: 'filename' does not name a type 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^~~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:304:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Texture.hpp:304:64: error: expected unqualified-id before '&' token 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^ /usr/include/SFML/Graphics/Texture.hpp:304:64: error: expected ')' before '&' token 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ~ ^ | ) /usr/include/SFML/Graphics/Texture.hpp:304:64: error: expected ';' at end of member declaration 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^ | ; /usr/include/SFML/Graphics/Texture.hpp:304:66: error: 'filename' does not name a type 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^~~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:304:119: error: expected unqualified-id before ')' token 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^ /usr/include/SFML/Graphics/Font.hpp:103:30: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 103 | explicit Font(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Font.hpp:103:46: error: expected unqualified-id before '&' token 103 | explicit Font(const std::filesystem::path& filename); | ^ /usr/include/SFML/Graphics/Font.hpp:103:46: error: expected ')' before '&' token 103 | explicit Font(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Graphics/Font.hpp:103:46: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Font.hpp:103:46: error: expected ';' at end of member declaration 103 | explicit Font(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Graphics/Font.hpp:103:48: error: 'filename' does not name a type 103 | explicit Font(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/Graphics/Font.hpp:168:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Font.hpp:168:64: error: expected unqualified-id before '&' token 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^ /usr/include/SFML/Graphics/Font.hpp:168:64: error: expected ')' before '&' token 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Graphics/Font.hpp:168:64: error: expected ';' at end of member declaration 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Graphics/Font.hpp:168:66: error: 'filename' does not name a type 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^~~~~~~~ In file included from /usr/include/SFML/Graphics.hpp:38: /usr/include/SFML/Graphics/Image.hpp:103:31: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 103 | explicit Image(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Image.hpp:103:47: error: expected unqualified-id before '&' token 103 | explicit Image(const std::filesystem::path& filename); | ^ /usr/include/SFML/Graphics/Image.hpp:103:47: error: expected ')' before '&' token 103 | explicit Image(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Graphics/Image.hpp:103:47: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Image.hpp:103:47: error: expected ';' at end of member declaration 103 | explicit Image(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Graphics/Image.hpp:103:49: error: 'filename' does not name a type 103 | explicit Image(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/Graphics/Image.hpp:175:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Image.hpp:175:64: error: expected unqualified-id before '&' token 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^ /usr/include/SFML/Graphics/Image.hpp:175:64: error: expected ')' before '&' token 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Graphics/Image.hpp:175:64: error: expected ';' at end of member declaration 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Graphics/Image.hpp:175:66: error: 'filename' does not name a type 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/Graphics/Image.hpp:227:46: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Image.hpp:227:62: error: expected unqualified-id before '&' token 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^ /usr/include/SFML/Graphics/Image.hpp:227:62: error: expected ')' before '&' token 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ~ ^ | ) /usr/include/SFML/Graphics/Image.hpp:227:62: error: expected ';' at end of member declaration 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^ | ; /usr/include/SFML/Graphics/Image.hpp:227:64: error: 'filename' does not name a type 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^~~~~~~~ /usr/include/SFML/Graphics/Image.hpp:245:24: error: 'optional' in namespace 'std' does not name a template type 245 | [[nodiscard]] std::optional> saveToMemory(std::string_view format) const; | ^~~~~~~~ /usr/include/SFML/Graphics/Image.hpp:245:19: note: 'std::optional' is only available from C++17 onwards 245 | [[nodiscard]] std::optional> saveToMemory(std::string_view format) const; | ^~~ In file included from /usr/include/SFML/Graphics.hpp:46: /usr/include/SFML/Graphics/Shader.hpp:147:23: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 147 | Shader(const std::filesystem::path& filename, Type type); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:147:39: error: expected unqualified-id before '&' token 147 | Shader(const std::filesystem::path& filename, Type type); | ^ /usr/include/SFML/Graphics/Shader.hpp:147:39: error: expected ')' before '&' token 147 | Shader(const std::filesystem::path& filename, Type type); | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:147:39: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Shader.hpp:147:39: error: expected ';' at end of member declaration 147 | Shader(const std::filesystem::path& filename, Type type); | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:147:41: error: 'filename' does not name a type 147 | Shader(const std::filesystem::path& filename, Type type); | ^~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:168:23: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:168:39: error: expected unqualified-id before '&' token 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^ /usr/include/SFML/Graphics/Shader.hpp:168:39: error: expected ')' before '&' token 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:168:39: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Shader.hpp:168:39: error: expected ';' at end of member declaration 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:168:5: error: 'sf::Shader::Shader(...)' cannot be overloaded with 'sf::Shader::Shader(...)' 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^~~~~~ /usr/include/SFML/Graphics/Shader.hpp:147:5: note: previous declaration 'sf::Shader::Shader(...)' 147 | Shader(const std::filesystem::path& filename, Type type); | ^~~~~~ /usr/include/SFML/Graphics/Shader.hpp:168:41: error: 'vertexShaderFilename' does not name a type 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:190:23: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:190:39: error: expected unqualified-id before '&' token 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^ /usr/include/SFML/Graphics/Shader.hpp:190:39: error: expected ')' before '&' token 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:190:39: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Shader.hpp:190:39: error: expected ';' at end of member declaration 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:190:5: error: 'sf::Shader::Shader(...)' cannot be overloaded with 'sf::Shader::Shader(...)' 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^~~~~~ /usr/include/SFML/Graphics/Shader.hpp:147:5: note: previous declaration 'sf::Shader::Shader(...)' 147 | Shader(const std::filesystem::path& filename, Type type); | ^~~~~~ /usr/include/SFML/Graphics/Shader.hpp:190:41: error: 'vertexShaderFilename' does not name a type 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:212:28: error: expected ')' before 'shader' 212 | Shader(std::string_view shader, Type type); | ~ ^~~~~~~ | ) /usr/include/SFML/Graphics/Shader.hpp:233:28: error: expected ')' before 'vertexShader' 233 | Shader(std::string_view vertexShader, std::string_view fragmentShader); | ~ ^~~~~~~~~~~~~ | ) /usr/include/SFML/Graphics/Shader.hpp:255:28: error: expected ')' before 'vertexShader' 255 | Shader(std::string_view vertexShader, std::string_view geometryShader, std::string_view fragmentShader); | ~ ^~~~~~~~~~~~~ | ) /usr/include/SFML/Graphics/Shader.hpp:339:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:339:64: error: expected unqualified-id before '&' token 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^ /usr/include/SFML/Graphics/Shader.hpp:339:64: error: expected ')' before '&' token 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:339:64: error: expected ';' at end of member declaration 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:339:66: error: 'filename' does not name a type 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:360:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:360:64: error: expected unqualified-id before '&' token 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^ /usr/include/SFML/Graphics/Shader.hpp:360:64: error: expected ')' before '&' token 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:360:64: error: expected ';' at end of member declaration 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:360:24: error: 'bool sf::Shader::loadFromFile(...) &' cannot be overloaded with 'bool sf::Shader::loadFromFile(...) &' 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:339:24: note: previous declaration 'bool sf::Shader::loadFromFile(...) &' 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:360:66: error: 'vertexShaderFilename' does not name a type 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:383:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:383:64: error: expected unqualified-id before '&' token 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^ /usr/include/SFML/Graphics/Shader.hpp:383:64: error: expected ')' before '&' token 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:383:64: error: expected ';' at end of member declaration 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:383:24: error: 'bool sf::Shader::loadFromFile(...) &' cannot be overloaded with 'bool sf::Shader::loadFromFile(...) &' 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:339:24: note: previous declaration 'bool sf::Shader::loadFromFile(...) &' 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:383:66: error: 'vertexShaderFilename' does not name a type 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:405:44: error: 'std::string_view' has not been declared 405 | [[nodiscard]] bool loadFromMemory(std::string_view shader, Type type); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:426:44: error: 'std::string_view' has not been declared 426 | [[nodiscard]] bool loadFromMemory(std::string_view vertexShader, std::string_view fragmentShader); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:426:75: error: 'std::string_view' has not been declared 426 | [[nodiscard]] bool loadFromMemory(std::string_view vertexShader, std::string_view fragmentShader); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:448:44: error: 'std::string_view' has not been declared 448 | [[nodiscard]] bool loadFromMemory(std::string_view vertexShader, | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:449:44: error: 'std::string_view' has not been declared 449 | std::string_view geometryShader, | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:450:44: error: 'std::string_view' has not been declared 450 | std::string_view fragmentShader); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:861:37: error: 'std::string_view' has not been declared 861 | [[nodiscard]] bool compile(std::string_view vertexShaderCode, | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:862:37: error: 'std::string_view' has not been declared 862 | std::string_view geometryShaderCode, | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:863:37: error: 'std::string_view' has not been declared 863 | std::string_view fragmentShaderCode); | ^~~~~~~~~~~ env.cpp: In member function 'void CEnvironment::LoadSkybox(const std::string&, bool)': env.cpp:159:56: error: use of deleted function 'TTexture::TTexture()' 159 | Skybox = new TTexture[param.full_skybox ? 6 : 3]; | ^ In file included from env.cpp:24: textures.h:64:7: note: 'TTexture::TTexture()' is implicitly deleted because the default definition would be ill-formed: 64 | class TTexture { | ^~~~~~~~ textures.h: At global scope: textures.h:64:7: error: call of overloaded 'Texture()' is ambiguous /usr/include/SFML/Graphics/Texture.hpp:114:14: note: candidate: 'sf::Texture::Texture(...)' 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:66:5: note: candidate: 'sf::Texture::Texture()' 66 | Texture(); | ^~~~~~~ env.cpp: In member function 'void CEnvironment::LoadSkybox(const std::string&, bool)': env.cpp:159:56: note: use '-fdiagnostics-all-candidates' to display considered candidates 159 | Skybox = new TTexture[param.full_skybox ? 6 : 3]; | ^ make[2]: *** [Makefile:566: env.o] Error 1 make[2]: Leaving directory '/usr/src/RPM/BUILD/etr-0.8.4/src' make[2]: Entering directory '/usr/src/RPM/BUILD/etr-0.8.4/src' x86_64-alt-linux-g++ -DHAVE_CONFIG_H -I. -I.. -DETR_DATA_DIR=\"/usr/share\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -std=c++14 -c -o gui.o gui.cpp In file included from /usr/include/SFML/System.hpp:34, from bh.h:30, from gui.h:21, from gui.cpp:22: /usr/include/SFML/System/Clock.hpp:78:20: error: 'ratio_less_equal_v' is not a member of 'std'; did you mean 'ratio_less_equal'? 78 | static_assert(std::ratio_less_equal_v, | ^~~~~~~~~~~~~~~~~~ | ratio_less_equal /usr/include/SFML/System/Clock.hpp:78:56: error: expected primary-expression before ',' token 78 | static_assert(std::ratio_less_equal_v, | ^ /usr/include/SFML/System/Clock.hpp:78:68: error: expected primary-expression before '>' token 78 | static_assert(std::ratio_less_equal_v, | ^ /usr/include/SFML/System/Clock.hpp:78:69: error: expected primary-expression before ',' token 78 | static_assert(std::ratio_less_equal_v, | ^ /usr/include/SFML/System/Clock.hpp:78:69: error: expected ')' before ',' token 78 | static_assert(std::ratio_less_equal_v, | ~ ^ | ) In file included from /usr/include/SFML/System/FileInputStream.hpp:34, from /usr/include/SFML/System.hpp:37: /usr/include/SFML/System/InputStream.hpp:66:32: error: 'optional' in namespace 'std' does not name a template type 66 | [[nodiscard]] virtual std::optional read(void* data, std::size_t size) = 0; | ^~~~~~~~ /usr/include/SFML/System/InputStream.hpp:66:27: note: 'std::optional' is only available from C++17 onwards 66 | [[nodiscard]] virtual std::optional read(void* data, std::size_t size) = 0; | ^~~ /usr/include/SFML/System/InputStream.hpp:76:32: error: 'optional' in namespace 'std' does not name a template type 76 | [[nodiscard]] virtual std::optional seek(std::size_t position) = 0; | ^~~~~~~~ /usr/include/SFML/System/InputStream.hpp:76:27: note: 'std::optional' is only available from C++17 onwards 76 | [[nodiscard]] virtual std::optional seek(std::size_t position) = 0; | ^~~ /usr/include/SFML/System/InputStream.hpp:84:32: error: 'optional' in namespace 'std' does not name a template type 84 | [[nodiscard]] virtual std::optional tell() = 0; | ^~~~~~~~ /usr/include/SFML/System/InputStream.hpp:84:27: note: 'std::optional' is only available from C++17 onwards 84 | [[nodiscard]] virtual std::optional tell() = 0; | ^~~ /usr/include/SFML/System/InputStream.hpp:92:18: error: 'optional' in namespace 'std' does not name a template type 92 | virtual std::optional getSize() = 0; | ^~~~~~~~ /usr/include/SFML/System/InputStream.hpp:92:13: note: 'std::optional' is only available from C++17 onwards 92 | virtual std::optional getSize() = 0; | ^~~ /usr/include/SFML/System/FileInputStream.hpp:106:41: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 106 | explicit FileInputStream(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/System/FileInputStream.hpp:106:57: error: expected unqualified-id before '&' token 106 | explicit FileInputStream(const std::filesystem::path& filename); | ^ /usr/include/SFML/System/FileInputStream.hpp:106:57: error: expected ')' before '&' token 106 | explicit FileInputStream(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/System/FileInputStream.hpp:106:57: error: constructors may not be ref-qualified /usr/include/SFML/System/FileInputStream.hpp:106:57: error: expected ';' at end of member declaration 106 | explicit FileInputStream(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/System/FileInputStream.hpp:106:59: error: 'filename' does not name a type 106 | explicit FileInputStream(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:116:40: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/System/FileInputStream.hpp:116:56: error: expected unqualified-id before '&' token 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ^ /usr/include/SFML/System/FileInputStream.hpp:116:56: error: expected ')' before '&' token 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/System/FileInputStream.hpp:116:56: error: expected ';' at end of member declaration 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/System/FileInputStream.hpp:116:58: error: 'filename' does not name a type 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:130:24: error: 'optional' in namespace 'std' does not name a template type 130 | [[nodiscard]] std::optional read(void* data, std::size_t size) override; | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:130:19: note: 'std::optional' is only available from C++17 onwards 130 | [[nodiscard]] std::optional read(void* data, std::size_t size) override; | ^~~ /usr/include/SFML/System/FileInputStream.hpp:140:24: error: 'optional' in namespace 'std' does not name a template type 140 | [[nodiscard]] std::optional seek(std::size_t position) override; | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:140:19: note: 'std::optional' is only available from C++17 onwards 140 | [[nodiscard]] std::optional seek(std::size_t position) override; | ^~~ /usr/include/SFML/System/FileInputStream.hpp:148:24: error: 'optional' in namespace 'std' does not name a template type 148 | [[nodiscard]] std::optional tell() override; | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:148:19: note: 'std::optional' is only available from C++17 onwards 148 | [[nodiscard]] std::optional tell() override; | ^~~ /usr/include/SFML/System/FileInputStream.hpp:156:10: error: 'optional' in namespace 'std' does not name a template type 156 | std::optional getSize() override; | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:156:5: note: 'std::optional' is only available from C++17 onwards 156 | std::optional getSize() override; | ^~~ In file included from /usr/include/SFML/System.hpp:39: /usr/include/SFML/System/MemoryInputStream.hpp:70:24: error: 'optional' in namespace 'std' does not name a template type 70 | [[nodiscard]] std::optional read(void* data, std::size_t size) override; | ^~~~~~~~ /usr/include/SFML/System/MemoryInputStream.hpp:70:19: note: 'std::optional' is only available from C++17 onwards 70 | [[nodiscard]] std::optional read(void* data, std::size_t size) override; | ^~~ /usr/include/SFML/System/MemoryInputStream.hpp:80:24: error: 'optional' in namespace 'std' does not name a template type 80 | [[nodiscard]] std::optional seek(std::size_t position) override; | ^~~~~~~~ /usr/include/SFML/System/MemoryInputStream.hpp:80:19: note: 'std::optional' is only available from C++17 onwards 80 | [[nodiscard]] std::optional seek(std::size_t position) override; | ^~~ /usr/include/SFML/System/MemoryInputStream.hpp:88:24: error: 'optional' in namespace 'std' does not name a template type 88 | [[nodiscard]] std::optional tell() override; | ^~~~~~~~ /usr/include/SFML/System/MemoryInputStream.hpp:88:19: note: 'std::optional' is only available from C++17 onwards 88 | [[nodiscard]] std::optional tell() override; | ^~~ /usr/include/SFML/System/MemoryInputStream.hpp:96:10: error: 'optional' in namespace 'std' does not name a template type 96 | std::optional getSize() override; | ^~~~~~~~ /usr/include/SFML/System/MemoryInputStream.hpp:96:5: note: 'std::optional' is only available from C++17 onwards 96 | std::optional getSize() override; | ^~~ /usr/include/SFML/System/MemoryInputStream.hpp:102:16: error: 'byte' in namespace 'std' does not name a type 102 | const std::byte* m_data{}; //!< Pointer to the data in memory | ^~~~ /usr/include/SFML/System/MemoryInputStream.hpp:102:11: note: 'std::byte' is only available from C++17 onwards 102 | const std::byte* m_data{}; //!< Pointer to the data in memory | ^~~ In file included from /usr/include/SFML/System/Utf.hpp:742, from /usr/include/SFML/System/String.hpp:32, from /usr/include/SFML/System.hpp:41: /usr/include/SFML/System/Utf.inl: In static member function 'static Out sf::Utf<8>::encode(char32_t, Out, uint8_t)': /usr/include/SFML/System/Utf.inl:137:25: error: 'byte' is not a member of 'std' 137 | std::array bytes{}; | ^~~~ /usr/include/SFML/System/Utf.inl:137:25: note: 'std::byte' is only available from C++17 onwards /usr/include/SFML/System/Utf.inl:137:25: error: 'byte' is not a member of 'std' /usr/include/SFML/System/Utf.inl:137:25: note: 'std::byte' is only available from C++17 onwards /usr/include/SFML/System/Utf.inl:137:32: error: template argument 1 is invalid 137 | std::array bytes{}; | ^ /usr/include/SFML/System/Utf.inl:142:26: error: invalid types 'int[int]' for array subscript 142 | case 4: bytes[3] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^ /usr/include/SFML/System/Utf.inl:142:49: error: 'byte' in namespace 'std' does not name a type 142 | case 4: bytes[3] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~~ /usr/include/SFML/System/Utf.inl:142:44: note: 'std::byte' is only available from C++17 onwards 142 | case 4: bytes[3] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~ /usr/include/SFML/System/Utf.inl:143:26: error: invalid types 'int[int]' for array subscript 143 | case 3: bytes[2] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^ /usr/include/SFML/System/Utf.inl:143:49: error: 'byte' in namespace 'std' does not name a type 143 | case 3: bytes[2] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~~ /usr/include/SFML/System/Utf.inl:143:44: note: 'std::byte' is only available from C++17 onwards 143 | case 3: bytes[2] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~ /usr/include/SFML/System/Utf.inl:144:26: error: invalid types 'int[int]' for array subscript 144 | case 2: bytes[1] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^ /usr/include/SFML/System/Utf.inl:144:49: error: 'byte' in namespace 'std' does not name a type 144 | case 2: bytes[1] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~~ /usr/include/SFML/System/Utf.inl:144:44: note: 'std::byte' is only available from C++17 onwards 144 | case 2: bytes[1] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~ /usr/include/SFML/System/Utf.inl:145:26: error: invalid types 'int[int]' for array subscript 145 | case 1: bytes[0] = static_cast (input | firstBytes[bytestoWrite]); | ^ /usr/include/SFML/System/Utf.inl:145:49: error: 'byte' in namespace 'std' does not name a type 145 | case 1: bytes[0] = static_cast (input | firstBytes[bytestoWrite]); | ^~~~ /usr/include/SFML/System/Utf.inl:145:44: note: 'std::byte' is only available from C++17 onwards 145 | case 1: bytes[0] = static_cast (input | firstBytes[bytestoWrite]); | ^~~ /usr/include/SFML/System/Utf.inl:150:35: error: request for member 'data' in 'bytes', which is of non-class type 'int' 150 | output = priv::copy(bytes.data(), bytes.data() + bytestoWrite, output); | ^~~~ /usr/include/SFML/System/Utf.inl:150:49: error: request for member 'data' in 'bytes', which is of non-class type 'int' 150 | output = priv::copy(bytes.data(), bytes.data() + bytestoWrite, output); | ^~~~ In file included from /usr/include/SFML/Window.hpp:32, from bh.h:31: /usr/include/SFML/Window/Context.hpp: At global scope: /usr/include/SFML/Window/Context.hpp:130:57: error: 'std::string_view' has not been declared 130 | [[nodiscard]] static bool isExtensionAvailable(std::string_view name); | ^~~~~~~~~~~ In file included from /usr/include/SFML/Window.hpp:34: /usr/include/SFML/Window/Cursor.hpp:226:31: error: 'optional' in namespace 'std' does not name a template type 226 | [[nodiscard]] static std::optional createFromPixels(const std::uint8_t* pixels, Vector2u size, Vector2u hotspot); | ^~~~~~~~ /usr/include/SFML/Window/Cursor.hpp:226:26: note: 'std::optional' is only available from C++17 onwards 226 | [[nodiscard]] static std::optional createFromPixels(const std::uint8_t* pixels, Vector2u size, Vector2u hotspot); | ^~~ /usr/include/SFML/Window/Cursor.hpp:242:31: error: 'optional' in namespace 'std' does not name a template type 242 | [[nodiscard]] static std::optional createFromSystem(Type type); | ^~~~~~~~ /usr/include/SFML/Window/Cursor.hpp:242:26: note: 'std::optional' is only available from C++17 onwards 242 | [[nodiscard]] static std::optional createFromSystem(Type type); | ^~~ In file included from /usr/include/SFML/Window.hpp:35: /usr/include/SFML/Window/Event.hpp:345:10: error: 'variant' in namespace 'std' does not name a template type 345 | std::variant*) | ^~~~~~~ /usr/include/SFML/Window/Event.hpp:374:65: note: 'std::variant' is only available from C++17 onwards 374 | [[nodiscard]] static constexpr bool isInParameterPack(const std::variant*) | ^~~ /usr/include/SFML/Window/Event.hpp:374:77: error: expected ',' or '...' before '<' token 374 | [[nodiscard]] static constexpr bool isInParameterPack(const std::variant*) | ^ /usr/include/SFML/Window/Event.hpp:380:76: error: 'm_data' was not declared in this scope 380 | static constexpr bool isEventSubtype = isInParameterPack(decltype (&m_data)(nullptr)); | ^~~~~~ /usr/include/SFML/Window/Event.hpp: In static member function 'static constexpr bool sf::Event::isInParameterPack(int)': /usr/include/SFML/Window/Event.hpp:376:22: error: 'is_same_v' is not a member of 'std'; did you mean 'is_same'? 376 | return (std::is_same_v || ...); | ^~~~~~~~~ | is_same /usr/include/SFML/Window/Event.hpp:376:33: error: expected primary-expression before ',' token 376 | return (std::is_same_v || ...); | ^ /usr/include/SFML/Window/Event.hpp:376:37: error: expected primary-expression before '>' token 376 | return (std::is_same_v || ...); | ^ /usr/include/SFML/Window/Event.hpp:376:39: error: expected primary-expression before '||' token 376 | return (std::is_same_v || ...); | ^~ /usr/include/SFML/Window/Event.hpp:376:42: error: operand of fold expression has no unexpanded parameter packs 376 | return (std::is_same_v || ...); | ^~~ In file included from /usr/include/SFML/Window/Event.hpp:385: /usr/include/SFML/Window/Event.inl: In constructor 'sf::Event::Event(const TEventSubtype&)': /usr/include/SFML/Window/Event.inl:47:9: error: 'm_data' was not declared in this scope 47 | m_data = eventSubtype; | ^~~~~~ /usr/include/SFML/Window/Event.inl: In member function 'bool sf::Event::is() const': /usr/include/SFML/Window/Event.inl:57:21: error: 'holds_alternative' is not a member of 'std' 57 | return std::holds_alternative(m_data); | ^~~~~~~~~~~~~~~~~ /usr/include/SFML/Window/Event.inl:57:21: note: 'std::holds_alternative' is only available from C++17 onwards /usr/include/SFML/Window/Event.inl:57:52: error: expected primary-expression before '>' token 57 | return std::holds_alternative(m_data); | ^ /usr/include/SFML/Window/Event.inl:57:54: error: 'm_data' was not declared in this scope 57 | return std::holds_alternative(m_data); | ^~~~~~ /usr/include/SFML/Window/Event.inl: In member function 'const TEventSubtype* sf::Event::getIf() const': /usr/include/SFML/Window/Event.inl:67:21: error: 'get_if' is not a member of 'std' 67 | return std::get_if(&m_data); | ^~~~~~ /usr/include/SFML/Window/Event.inl:67:41: error: expected primary-expression before '>' token 67 | return std::get_if(&m_data); | ^ /usr/include/SFML/Window/Event.inl:67:44: error: 'm_data' was not declared in this scope 67 | return std::get_if(&m_data); | ^~~~~~ /usr/include/SFML/Window/Event.inl: In member function 'decltype(auto) sf::Event::visit(T&&) const': /usr/include/SFML/Window/Event.inl:75:17: error: 'visit' is not a member of 'std' 75 | return std::visit(std::forward(visitor), m_data); | ^~~~~ /usr/include/SFML/Window/Event.inl:75:17: note: 'std::visit' is only available from C++17 onwards /usr/include/SFML/Window/Event.inl:75:49: error: 'm_data' was not declared in this scope 75 | return std::visit(std::forward(visitor), m_data); | ^~~~~~ In file included from /usr/include/SFML/Window/Window.hpp:32, from /usr/include/SFML/Window.hpp:42: /usr/include/SFML/Window/WindowBase.hpp: At global scope: /usr/include/SFML/Window/WindowBase.hpp:226:24: error: 'optional' in namespace 'std' does not name a template type 226 | [[nodiscard]] std::optional pollEvent(); | ^~~~~~~~ /usr/include/SFML/Window/WindowBase.hpp:226:19: note: 'std::optional' is only available from C++17 onwards 226 | [[nodiscard]] std::optional pollEvent(); | ^~~ /usr/include/SFML/Window/WindowBase.hpp:252:24: error: 'optional' in namespace 'std' does not name a template type 252 | [[nodiscard]] std::optional waitEvent(Time timeout = Time::Zero); | ^~~~~~~~ /usr/include/SFML/Window/WindowBase.hpp:252:19: note: 'std::optional' is only available from C++17 onwards 252 | [[nodiscard]] std::optional waitEvent(Time timeout = Time::Zero); | ^~~ /usr/include/SFML/Window/WindowBase.hpp:387:36: error: 'optional' in namespace 'std' does not name a template type 387 | void setMinimumSize(const std::optional& minimumSize); | ^~~~~~~~ /usr/include/SFML/Window/WindowBase.hpp:387:31: note: 'std::optional' is only available from C++17 onwards 387 | void setMinimumSize(const std::optional& minimumSize); | ^~~ /usr/include/SFML/Window/WindowBase.hpp:387:44: error: expected ',' or '...' before '<' token 387 | void setMinimumSize(const std::optional& minimumSize); | ^ /usr/include/SFML/Window/WindowBase.hpp:397:36: error: 'optional' in namespace 'std' does not name a template type 397 | void setMaximumSize(const std::optional& maximumSize); | ^~~~~~~~ /usr/include/SFML/Window/WindowBase.hpp:397:31: note: 'std::optional' is only available from C++17 onwards 397 | void setMaximumSize(const std::optional& maximumSize); | ^~~ /usr/include/SFML/Window/WindowBase.hpp:397:44: error: expected ',' or '...' before '<' token 397 | void setMaximumSize(const std::optional& maximumSize); | ^ In file included from /usr/include/SFML/Window/WindowBase.hpp:617: /usr/include/SFML/Window/WindowBase.inl:47:41: error: expected constructor, destructor, or type conversion before ';' token 47 | OverloadSet(Ts...) -> OverloadSet; | ^ /usr/include/SFML/Window/WindowBase.inl: In member function 'void sf::WindowBase::handleEvents(Ts&& ...)': /usr/include/SFML/Window/WindowBase.inl:69:23: error: missing template arguments before 'overloadSet' 69 | priv::OverloadSet overloadSet{std::forward(handlers)..., [](const priv::DelayOverloadResolution&) { /* ignore */ }}; | ^~~~~~~~~~~ /usr/include/SFML/Window/WindowBase.inl:71:32: error: qualified-id in declaration before 'event' 71 | while (const std::optional event = pollEvent()) | ^~~~~ /usr/include/SFML/Window/WindowBase.inl:72:9: error: 'event' was not declared in this scope; did you mean 'Event'? 72 | event->visit(overloadSet); | ^~~~~ | Event /usr/include/SFML/Window/WindowBase.inl:72:22: error: 'overloadSet' was not declared in this scope 72 | event->visit(overloadSet); | ^~~~~~~~~~~ In file included from /usr/include/SFML/Graphics/Color.hpp:229, from /usr/include/SFML/Graphics/Shape.hpp:32, from /usr/include/SFML/Graphics/CircleShape.hpp:32, from /usr/include/SFML/Graphics.hpp:32, from bh.h:32: /usr/include/SFML/Graphics/Color.inl: In function 'constexpr sf::Color sf::operator+(Color, Color)': /usr/include/SFML/Graphics/Color.inl:77:16: error: variable 'clampedAdd' of non-literal type 'const sf::operator+(Color, Color)::' in 'constexpr' function only available with '-std=c++2b' or '-std=gnu++2b' 77 | const auto clampedAdd = [](std::uint8_t lhs, std::uint8_t rhs) | ^~~~~~~~~~ /usr/include/SFML/Graphics/Color.inl:77:30: note: 'sf::operator+(Color, Color)::' is not literal because: 77 | const auto clampedAdd = [](std::uint8_t lhs, std::uint8_t rhs) | ^ cc1plus: note: 'sf::operator+(Color, Color)::' is a closure type, which is only literal in C++17 and later /usr/include/SFML/Graphics/Color.inl: In function 'constexpr sf::Color sf::operator-(Color, Color)': /usr/include/SFML/Graphics/Color.inl:93:16: error: variable 'clampedSub' of non-literal type 'const sf::operator-(Color, Color)::' in 'constexpr' function only available with '-std=c++2b' or '-std=gnu++2b' 93 | const auto clampedSub = [](std::uint8_t lhs, std::uint8_t rhs) | ^~~~~~~~~~ /usr/include/SFML/Graphics/Color.inl:93:30: note: 'sf::operator-(Color, Color)::' is not literal because: 93 | const auto clampedSub = [](std::uint8_t lhs, std::uint8_t rhs) | ^ cc1plus: note: 'sf::operator-(Color, Color)::' is a closure type, which is only literal in C++17 and later /usr/include/SFML/Graphics/Color.inl: In function 'constexpr sf::Color sf::operator*(Color, Color)': /usr/include/SFML/Graphics/Color.inl:109:16: error: variable 'scaledMul' of non-literal type 'const sf::operator*(Color, Color)::' in 'constexpr' function only available with '-std=c++2b' or '-std=gnu++2b' 109 | const auto scaledMul = [](std::uint8_t lhs, std::uint8_t rhs) | ^~~~~~~~~ /usr/include/SFML/Graphics/Color.inl:109:29: note: 'sf::operator*(Color, Color)::' is not literal because: 109 | const auto scaledMul = [](std::uint8_t lhs, std::uint8_t rhs) | ^ cc1plus: note: 'sf::operator*(Color, Color)::' is a closure type, which is only literal in C++17 and later In file included from /usr/include/SFML/Graphics/Shape.hpp:35: /usr/include/SFML/Graphics/Rect.hpp: At global scope: /usr/include/SFML/Graphics/Rect.hpp:98:34: error: 'optional' in namespace 'std' does not name a template type 98 | [[nodiscard]] constexpr std::optional> findIntersection(const Rect& rectangle) const; | ^~~~~~~~ /usr/include/SFML/Graphics/Rect.hpp:98:29: note: 'std::optional' is only available from C++17 onwards 98 | [[nodiscard]] constexpr std::optional> findIntersection(const Rect& rectangle) const; | ^~~ In file included from /usr/include/SFML/Graphics/Rect.hpp:151: /usr/include/SFML/Graphics/Rect.inl:71:16: error: 'optional' in namespace 'std' does not name a template type 71 | constexpr std::optional> Rect::findIntersection(const Rect& rectangle) const | ^~~~~~~~ /usr/include/SFML/Graphics/Rect.inl:71:11: note: 'std::optional' is only available from C++17 onwards 71 | constexpr std::optional> Rect::findIntersection(const Rect& rectangle) const | ^~~ In file included from /usr/include/SFML/Graphics/Transform.hpp:352, from /usr/include/SFML/Graphics/RenderStates.hpp:35, from /usr/include/SFML/Graphics/Shape.hpp:36: /usr/include/SFML/Graphics/Transform.inl: In member function 'constexpr sf::FloatRect sf::Transform::transformRect(const sf::FloatRect&) const': /usr/include/SFML/Graphics/Transform.inl:101:11: error: invalid use of template-name 'std::array' without an argument list 101 | const std::array points = {transformPoint(rectangle.position), | ^~~ /usr/include/SFML/Graphics/Transform.inl:101:11: note: class template argument deduction is only available with '-std=c++17' or '-std=gnu++17' In file included from /usr/include/c++/14/bits/stl_algobase.h:64, from /usr/include/c++/14/string:51, from bh.h:27: /usr/include/c++/14/bits/stl_pair.h:99:12: note: 'template struct std::array' declared here 99 | struct array; | ^~~~~ /usr/include/SFML/Graphics/Transform.inl:107:21: error: 'points' was not declared in this scope; did you mean 'printf'? 107 | Vector2f pmin = points[0]; | ^~~~~~ | printf In file included from /usr/include/SFML/Graphics/Font.hpp:34, from /usr/include/SFML/Graphics.hpp:36: /usr/include/SFML/Graphics/Texture.hpp: At global scope: /usr/include/SFML/Graphics/Texture.hpp:114:33: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Texture.hpp:114:49: error: expected unqualified-id before '&' token 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^ /usr/include/SFML/Graphics/Texture.hpp:114:49: error: expected ')' before '&' token 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ~ ^ | ) /usr/include/SFML/Graphics/Texture.hpp:114:49: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Texture.hpp:114:49: error: expected ';' at end of member declaration 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^ | ; /usr/include/SFML/Graphics/Texture.hpp:114:51: error: 'filename' does not name a type 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^~~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:137:24: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Texture.hpp:137:40: error: expected unqualified-id before '&' token 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^ /usr/include/SFML/Graphics/Texture.hpp:137:40: error: expected ')' before '&' token 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ~ ^ | ) /usr/include/SFML/Graphics/Texture.hpp:137:40: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Texture.hpp:137:40: error: expected ';' at end of member declaration 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^ | ; /usr/include/SFML/Graphics/Texture.hpp:137:5: error: 'sf::Texture::Texture(...)' cannot be overloaded with 'sf::Texture::Texture(...)' 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:114:14: note: previous declaration 'sf::Texture::Texture(...)' 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:137:42: error: 'filename' does not name a type 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^~~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:304:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Texture.hpp:304:64: error: expected unqualified-id before '&' token 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^ /usr/include/SFML/Graphics/Texture.hpp:304:64: error: expected ')' before '&' token 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ~ ^ | ) /usr/include/SFML/Graphics/Texture.hpp:304:64: error: expected ';' at end of member declaration 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^ | ; /usr/include/SFML/Graphics/Texture.hpp:304:66: error: 'filename' does not name a type 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^~~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:304:119: error: expected unqualified-id before ')' token 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^ /usr/include/SFML/Graphics/Font.hpp:103:30: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 103 | explicit Font(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Font.hpp:103:46: error: expected unqualified-id before '&' token 103 | explicit Font(const std::filesystem::path& filename); | ^ /usr/include/SFML/Graphics/Font.hpp:103:46: error: expected ')' before '&' token 103 | explicit Font(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Graphics/Font.hpp:103:46: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Font.hpp:103:46: error: expected ';' at end of member declaration 103 | explicit Font(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Graphics/Font.hpp:103:48: error: 'filename' does not name a type 103 | explicit Font(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/Graphics/Font.hpp:168:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Font.hpp:168:64: error: expected unqualified-id before '&' token 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^ /usr/include/SFML/Graphics/Font.hpp:168:64: error: expected ')' before '&' token 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Graphics/Font.hpp:168:64: error: expected ';' at end of member declaration 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Graphics/Font.hpp:168:66: error: 'filename' does not name a type 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^~~~~~~~ In file included from /usr/include/SFML/Graphics.hpp:38: /usr/include/SFML/Graphics/Image.hpp:103:31: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 103 | explicit Image(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Image.hpp:103:47: error: expected unqualified-id before '&' token 103 | explicit Image(const std::filesystem::path& filename); | ^ /usr/include/SFML/Graphics/Image.hpp:103:47: error: expected ')' before '&' token 103 | explicit Image(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Graphics/Image.hpp:103:47: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Image.hpp:103:47: error: expected ';' at end of member declaration 103 | explicit Image(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Graphics/Image.hpp:103:49: error: 'filename' does not name a type 103 | explicit Image(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/Graphics/Image.hpp:175:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Image.hpp:175:64: error: expected unqualified-id before '&' token 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^ /usr/include/SFML/Graphics/Image.hpp:175:64: error: expected ')' before '&' token 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Graphics/Image.hpp:175:64: error: expected ';' at end of member declaration 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Graphics/Image.hpp:175:66: error: 'filename' does not name a type 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/Graphics/Image.hpp:227:46: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Image.hpp:227:62: error: expected unqualified-id before '&' token 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^ /usr/include/SFML/Graphics/Image.hpp:227:62: error: expected ')' before '&' token 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ~ ^ | ) /usr/include/SFML/Graphics/Image.hpp:227:62: error: expected ';' at end of member declaration 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^ | ; /usr/include/SFML/Graphics/Image.hpp:227:64: error: 'filename' does not name a type 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^~~~~~~~ /usr/include/SFML/Graphics/Image.hpp:245:24: error: 'optional' in namespace 'std' does not name a template type 245 | [[nodiscard]] std::optional> saveToMemory(std::string_view format) const; | ^~~~~~~~ /usr/include/SFML/Graphics/Image.hpp:245:19: note: 'std::optional' is only available from C++17 onwards 245 | [[nodiscard]] std::optional> saveToMemory(std::string_view format) const; | ^~~ In file included from /usr/include/SFML/Graphics.hpp:46: /usr/include/SFML/Graphics/Shader.hpp:147:23: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 147 | Shader(const std::filesystem::path& filename, Type type); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:147:39: error: expected unqualified-id before '&' token 147 | Shader(const std::filesystem::path& filename, Type type); | ^ /usr/include/SFML/Graphics/Shader.hpp:147:39: error: expected ')' before '&' token 147 | Shader(const std::filesystem::path& filename, Type type); | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:147:39: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Shader.hpp:147:39: error: expected ';' at end of member declaration 147 | Shader(const std::filesystem::path& filename, Type type); | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:147:41: error: 'filename' does not name a type 147 | Shader(const std::filesystem::path& filename, Type type); | ^~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:168:23: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:168:39: error: expected unqualified-id before '&' token 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^ /usr/include/SFML/Graphics/Shader.hpp:168:39: error: expected ')' before '&' token 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:168:39: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Shader.hpp:168:39: error: expected ';' at end of member declaration 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:168:5: error: 'sf::Shader::Shader(...)' cannot be overloaded with 'sf::Shader::Shader(...)' 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^~~~~~ /usr/include/SFML/Graphics/Shader.hpp:147:5: note: previous declaration 'sf::Shader::Shader(...)' 147 | Shader(const std::filesystem::path& filename, Type type); | ^~~~~~ /usr/include/SFML/Graphics/Shader.hpp:168:41: error: 'vertexShaderFilename' does not name a type 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:190:23: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:190:39: error: expected unqualified-id before '&' token 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^ /usr/include/SFML/Graphics/Shader.hpp:190:39: error: expected ')' before '&' token 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:190:39: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Shader.hpp:190:39: error: expected ';' at end of member declaration 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:190:5: error: 'sf::Shader::Shader(...)' cannot be overloaded with 'sf::Shader::Shader(...)' 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^~~~~~ /usr/include/SFML/Graphics/Shader.hpp:147:5: note: previous declaration 'sf::Shader::Shader(...)' 147 | Shader(const std::filesystem::path& filename, Type type); | ^~~~~~ /usr/include/SFML/Graphics/Shader.hpp:190:41: error: 'vertexShaderFilename' does not name a type 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:212:28: error: expected ')' before 'shader' 212 | Shader(std::string_view shader, Type type); | ~ ^~~~~~~ | ) /usr/include/SFML/Graphics/Shader.hpp:233:28: error: expected ')' before 'vertexShader' 233 | Shader(std::string_view vertexShader, std::string_view fragmentShader); | ~ ^~~~~~~~~~~~~ | ) /usr/include/SFML/Graphics/Shader.hpp:255:28: error: expected ')' before 'vertexShader' 255 | Shader(std::string_view vertexShader, std::string_view geometryShader, std::string_view fragmentShader); | ~ ^~~~~~~~~~~~~ | ) /usr/include/SFML/Graphics/Shader.hpp:339:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:339:64: error: expected unqualified-id before '&' token 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^ /usr/include/SFML/Graphics/Shader.hpp:339:64: error: expected ')' before '&' token 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:339:64: error: expected ';' at end of member declaration 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:339:66: error: 'filename' does not name a type 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:360:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:360:64: error: expected unqualified-id before '&' token 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^ /usr/include/SFML/Graphics/Shader.hpp:360:64: error: expected ')' before '&' token 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:360:64: error: expected ';' at end of member declaration 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:360:24: error: 'bool sf::Shader::loadFromFile(...) &' cannot be overloaded with 'bool sf::Shader::loadFromFile(...) &' 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:339:24: note: previous declaration 'bool sf::Shader::loadFromFile(...) &' 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:360:66: error: 'vertexShaderFilename' does not name a type 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:383:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:383:64: error: expected unqualified-id before '&' token 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^ /usr/include/SFML/Graphics/Shader.hpp:383:64: error: expected ')' before '&' token 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:383:64: error: expected ';' at end of member declaration 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:383:24: error: 'bool sf::Shader::loadFromFile(...) &' cannot be overloaded with 'bool sf::Shader::loadFromFile(...) &' 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:339:24: note: previous declaration 'bool sf::Shader::loadFromFile(...) &' 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:383:66: error: 'vertexShaderFilename' does not name a type 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:405:44: error: 'std::string_view' has not been declared 405 | [[nodiscard]] bool loadFromMemory(std::string_view shader, Type type); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:426:44: error: 'std::string_view' has not been declared 426 | [[nodiscard]] bool loadFromMemory(std::string_view vertexShader, std::string_view fragmentShader); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:426:75: error: 'std::string_view' has not been declared 426 | [[nodiscard]] bool loadFromMemory(std::string_view vertexShader, std::string_view fragmentShader); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:448:44: error: 'std::string_view' has not been declared 448 | [[nodiscard]] bool loadFromMemory(std::string_view vertexShader, | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:449:44: error: 'std::string_view' has not been declared 449 | std::string_view geometryShader, | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:450:44: error: 'std::string_view' has not been declared 450 | std::string_view fragmentShader); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:861:37: error: 'std::string_view' has not been declared 861 | [[nodiscard]] bool compile(std::string_view vertexShaderCode, | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:862:37: error: 'std::string_view' has not been declared 862 | std::string_view geometryShaderCode, | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:863:37: error: 'std::string_view' has not been declared 863 | std::string_view fragmentShaderCode); | ^~~~~~~~~~~ gui.h:62:22: warning: 'virtual void TWidget::Focussed()' was hidden [-Woverloaded-virtual=] 62 | virtual void Focussed() {} | ^~~~~~~~ gui.h:76:14: note: by 'void TLabel::Focussed(bool)' 76 | void Focussed(bool masterFocus); | ^~~~~~~~ In file included from gui.cpp:26: winsys.h: In member function 'bool CWinsys::PollEvent(sf::Event&)': winsys.h:65:58: error: 'class sf::RenderWindow' has no member named 'pollEvent' 65 | bool PollEvent(sf::Event& event) { return window.pollEvent(event); } | ^~~~~~~~~ gui.cpp: In function 'TWidget* AddWidget(TWidget*)': gui.cpp:39:28: warning: comparison of integer expressions of different signedness: 'std::vector::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] 39 | if (Widgets.size() == focussed) { | ~~~~~~~~~~~~~~~^~~~~~~~~~~ gui.cpp: In constructor 'TLabel::TLabel(const sf::String&, int, int, const sf::Color&)': gui.cpp:81:11: error: no matching function for call to 'sf::Text::Text(const sf::String&, const sf::Font&, unsigned int)' 81 | , text(string, FT.getCurrentFont(), FT.GetSize()) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/SFML/Graphics.hpp:50: /usr/include/SFML/Graphics/Text.hpp:87:5: note: candidate: 'sf::Text::Text(const sf::Font&, sf::String, unsigned int)' 87 | Text(const Font& font, String string = "", unsigned int characterSize = 30); | ^~~~ /usr/include/SFML/Graphics/Text.hpp:87:22: note: no known conversion for argument 1 from 'const sf::String' to 'const sf::Font&' 87 | Text(const Font& font, String string = "", unsigned int characterSize = 30); | ~~~~~~~~~~~~^~~~ /usr/include/SFML/Graphics/Text.hpp:56:25: note: candidate: 'sf::Text::Text(const sf::Text&)' 56 | class SFML_GRAPHICS_API Text : public Drawable, public Transformable | ^~~~ /usr/include/SFML/Graphics/Text.hpp:56:25: note: candidate expects 1 argument, 3 provided /usr/include/SFML/Graphics/Text.hpp:56:25: note: candidate: 'sf::Text::Text(sf::Text&&)' /usr/include/SFML/Graphics/Text.hpp:56:25: note: candidate expects 1 argument, 3 provided gui.cpp:83:83: error: 'using sf::FloatRect = class sf::Rect' {aka 'class sf::Rect'} has no member named 'width' 83 | text.setPosition((Winsys.resolution.width - text.getLocalBounds().width) / 2, y); | ^~~~~ gui.cpp:85:33: error: no matching function for call to 'sf::Text::setPosition(int&, int&)' 85 | text.setPosition(x, y); | ~~~~~~~~~~~~~~~~^~~~~~ In file included from /usr/include/SFML/Graphics/Shape.hpp:37: /usr/include/SFML/Graphics/Transformable.hpp:70:10: note: candidate: 'void sf::Transformable::setPosition(sf::Vector2f)' 70 | void setPosition(Vector2f position); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Transformable.hpp:70:10: note: candidate expects 1 argument, 2 provided gui.cpp: In member function 'sf::Vector2f TLabel::GetSize() const': gui.cpp:106:51: error: 'using sf::FloatRect = class sf::Rect' {aka 'class sf::Rect'} has no member named 'width' 106 | return sf::Vector2f(text.getLocalBounds().width, text.getLocalBounds().height); | ^~~~~ gui.cpp:106:80: error: 'using sf::FloatRect = class sf::Rect' {aka 'class sf::Rect'} has no member named 'height' 106 | return sf::Vector2f(text.getLocalBounds().width, text.getLocalBounds().height); | ^~~~~~ gui.cpp: In constructor 'TFramedText::TFramedText(int, int, int, int, int, const sf::Color&, const sf::String&, unsigned int, bool)': gui.cpp:118:11: error: no matching function for call to 'sf::Text::Text(const sf::String&, const sf::Font&, unsigned int&)' 118 | , text(string, FT.getCurrentFont(), ftsize) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Text.hpp:87:5: note: candidate: 'sf::Text::Text(const sf::Font&, sf::String, unsigned int)' 87 | Text(const Font& font, String string = "", unsigned int characterSize = 30); | ^~~~ /usr/include/SFML/Graphics/Text.hpp:87:22: note: no known conversion for argument 1 from 'const sf::String' to 'const sf::Font&' 87 | Text(const Font& font, String string = "", unsigned int characterSize = 30); | ~~~~~~~~~~~~^~~~ /usr/include/SFML/Graphics/Text.hpp:56:25: note: candidate: 'sf::Text::Text(const sf::Text&)' 56 | class SFML_GRAPHICS_API Text : public Drawable, public Transformable | ^~~~ /usr/include/SFML/Graphics/Text.hpp:56:25: note: candidate expects 1 argument, 3 provided /usr/include/SFML/Graphics/Text.hpp:56:25: note: candidate: 'sf::Text::Text(sf::Text&&)' /usr/include/SFML/Graphics/Text.hpp:56:25: note: candidate expects 1 argument, 3 provided gui.cpp:120:25: error: no matching function for call to 'sf::Text::setPosition(int, int)' 120 | text.setPosition(x + line + 20, y + line); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Transformable.hpp:70:10: note: candidate: 'void sf::Transformable::setPosition(sf::Vector2f)' 70 | void setPosition(Vector2f position); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Transformable.hpp:70:10: note: candidate expects 1 argument, 2 provided gui.cpp:128:26: error: no matching function for call to 'sf::RectangleShape::setPosition(int, int)' 128 | frame.setPosition(x + line, y + line); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Transformable.hpp:70:10: note: candidate: 'void sf::Transformable::setPosition(sf::Vector2f)' 70 | void setPosition(Vector2f position); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Transformable.hpp:70:10: note: candidate expects 1 argument, 2 provided gui.cpp: In constructor 'TTextButton::TTextButton(int, int, const sf::String&, int)': gui.cpp:175:11: error: no matching function for call to 'sf::Text::Text(const sf::String&, const sf::Font&, int&)' 175 | , text(text_, FT.getCurrentFont(), ftsize) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Text.hpp:87:5: note: candidate: 'sf::Text::Text(const sf::Font&, sf::String, unsigned int)' 87 | Text(const Font& font, String string = "", unsigned int characterSize = 30); | ^~~~ /usr/include/SFML/Graphics/Text.hpp:87:22: note: no known conversion for argument 1 from 'const sf::String' to 'const sf::Font&' 87 | Text(const Font& font, String string = "", unsigned int characterSize = 30); | ~~~~~~~~~~~~^~~~ /usr/include/SFML/Graphics/Text.hpp:56:25: note: candidate: 'sf::Text::Text(const sf::Text&)' 56 | class SFML_GRAPHICS_API Text : public Drawable, public Transformable | ^~~~ /usr/include/SFML/Graphics/Text.hpp:56:25: note: candidate expects 1 argument, 3 provided /usr/include/SFML/Graphics/Text.hpp:56:25: note: candidate: 'sf::Text::Text(sf::Text&&)' /usr/include/SFML/Graphics/Text.hpp:56:25: note: candidate expects 1 argument, 3 provided gui.cpp:178:41: error: 'using sf::FloatRect = class sf::Rect' {aka 'class sf::Rect'} has no member named 'width' 178 | int len = text.getLocalBounds().width; | ^~~~~ gui.cpp:180:25: error: no matching function for call to 'sf::Text::setPosition(int&, int&)' 180 | text.setPosition(position.x, position.y); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Transformable.hpp:70:10: note: candidate: 'void sf::Transformable::setPosition(sf::Vector2f)' 70 | void setPosition(Vector2f position); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Transformable.hpp:70:10: note: candidate expects 1 argument, 2 provided gui.cpp: In constructor 'TTextField::TTextField(int, int, int, int, const sf::String&)': gui.cpp:214:11: error: no matching function for call to 'sf::Text::Text(const sf::String&, const sf::Font&, unsigned int)' 214 | , text(text_, FT.getCurrentFont(), FT.AutoSizeN(5)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Text.hpp:87:5: note: candidate: 'sf::Text::Text(const sf::Font&, sf::String, unsigned int)' 87 | Text(const Font& font, String string = "", unsigned int characterSize = 30); | ^~~~ /usr/include/SFML/Graphics/Text.hpp:87:22: note: no known conversion for argument 1 from 'const sf::String' to 'const sf::Font&' 87 | Text(const Font& font, String string = "", unsigned int characterSize = 30); | ~~~~~~~~~~~~^~~~ /usr/include/SFML/Graphics/Text.hpp:56:25: note: candidate: 'sf::Text::Text(const sf::Text&)' 56 | class SFML_GRAPHICS_API Text : public Drawable, public Transformable | ^~~~ /usr/include/SFML/Graphics/Text.hpp:56:25: note: candidate expects 1 argument, 3 provided /usr/include/SFML/Graphics/Text.hpp:56:25: note: candidate: 'sf::Text::Text(sf::Text&&)' /usr/include/SFML/Graphics/Text.hpp:56:25: note: candidate expects 1 argument, 3 provided gui.cpp:220:25: error: no matching function for call to 'sf::Text::setPosition(int, int&)' 220 | text.setPosition(mouseRect.left + 20, mouseRect.top); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Transformable.hpp:70:10: note: candidate: 'void sf::Transformable::setPosition(sf::Vector2f)' 70 | void setPosition(Vector2f position); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Transformable.hpp:70:10: note: candidate expects 1 argument, 2 provided gui.cpp:222:26: error: no matching function for call to 'sf::RectangleShape::setPosition(int, int)' 222 | frame.setPosition(x + 3, y + 3); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Transformable.hpp:70:10: note: candidate: 'void sf::Transformable::setPosition(sf::Vector2f)' 70 | void setPosition(Vector2f position); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Transformable.hpp:70:10: note: candidate expects 1 argument, 2 provided gui.cpp: In member function 'void TTextField::SetCursorPos(std::size_t)': gui.cpp:247:32: error: no matching function for call to 'sf::RectangleShape::setPosition(float, int)' 247 | cursorShape.setPosition(text.findCharacterPos(cursorPos).x, mouseRect.top + 9); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Transformable.hpp:70:10: note: candidate: 'void sf::Transformable::setPosition(sf::Vector2f)' 70 | void setPosition(Vector2f position); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Transformable.hpp:70:10: note: candidate expects 1 argument, 2 provided gui.cpp: In member function 'virtual bool TTextField::Click(int, int)': gui.cpp:273:40: error: no matching function for call to 'sf::RectangleShape::setPosition(float, int)' 273 | cursorShape.setPosition(text.findCharacterPos(cursorPos).x, mouseRect.top + 9); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Transformable.hpp:70:10: note: candidate: 'void sf::Transformable::setPosition(sf::Vector2f)' 70 | void setPosition(Vector2f position); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Transformable.hpp:70:10: note: candidate expects 1 argument, 2 provided gui.cpp: In member function 'virtual void TTextField::Key(sf::Keyboard::Key, bool)': gui.cpp:286:36: error: 'Delete' is not a member of 'sf::Keyboard' 286 | case sf::Keyboard::Delete: | ^~~~~~ gui.cpp:286:36: note: suggested alternatives: In file included from /usr/include/SFML/Window/Event.hpp:31: /usr/include/SFML/Window/Keyboard.hpp:261:5: note: 'sf::Keyboard::Scan::Delete' 261 | Delete, //!< Keyboard Delete Forward key | ^~~~~~ /usr/include/SFML/Window/Keyboard.hpp:261:5: note: 'sf::Keyboard::Scan::Delete' /usr/include/SFML/Window/Keyboard.hpp:120:5: note: 'sf::Keyboard::Key::Delete' 120 | Delete, //!< The Delete key | ^~~~~~ gui.cpp:289:36: error: 'BackSpace' is not a member of 'sf::Keyboard' 289 | case sf::Keyboard::BackSpace: | ^~~~~~~~~ gui.cpp:292:36: error: 'Right' is not a member of 'sf::Keyboard' 292 | case sf::Keyboard::Right: | ^~~~~ gui.cpp:292:36: note: suggested alternatives: /usr/include/SFML/Window/Keyboard.hpp:264:5: note: 'sf::Keyboard::Scan::Right' 264 | Right, //!< Keyboard Right Arrow key | ^~~~~ /usr/include/SFML/Window/Keyboard.hpp:264:5: note: 'sf::Keyboard::Scan::Right' /usr/include/SFML/Window/Keyboard.hpp:126:5: note: 'sf::Keyboard::Key::Right' 126 | Right, //!< Right arrow | ^~~~~ In file included from /usr/include/SFML/Window/Event.hpp:32: /usr/include/SFML/Window/Mouse.hpp:52:5: note: 'sf::Mouse::Button::Right' 52 | Right, //!< The right mouse button | ^~~~~ gui.cpp:295:36: error: 'Left' is not a member of 'sf::Keyboard' 295 | case sf::Keyboard::Left: | ^~~~ gui.cpp:295:36: note: suggested alternatives: /usr/include/SFML/Window/Keyboard.hpp:265:5: note: 'sf::Keyboard::Scan::Left' 265 | Left, //!< Keyboard Left Arrow key | ^~~~ /usr/include/SFML/Window/Keyboard.hpp:265:5: note: 'sf::Keyboard::Scan::Left' /usr/include/SFML/Window/Keyboard.hpp:125:5: note: 'sf::Keyboard::Key::Left' 125 | Left, //!< Left arrow | ^~~~ /usr/include/SFML/Window/Mouse.hpp:51:5: note: 'sf::Mouse::Button::Left' 51 | Left, //!< The left mouse button | ^~~~ gui.cpp:298:36: error: 'Home' is not a member of 'sf::Keyboard' 298 | case sf::Keyboard::Home: | ^~~~ gui.cpp:298:36: note: suggested alternatives: /usr/include/SFML/Window/Keyboard.hpp:259:5: note: 'sf::Keyboard::Scan::Home' 259 | Home, //!< Keyboard Home key | ^~~~ /usr/include/SFML/Window/Keyboard.hpp:259:5: note: 'sf::Keyboard::Scan::Home' /usr/include/SFML/Window/Keyboard.hpp:118:5: note: 'sf::Keyboard::Key::Home' 118 | Home, //!< The Home key | ^~~~ gui.cpp:301:36: error: 'End' is not a member of 'sf::Keyboard' 301 | case sf::Keyboard::End: | ^~~ gui.cpp:301:36: note: suggested alternatives: /usr/include/SFML/Window/Keyboard.hpp:262:5: note: 'sf::Keyboard::Scan::End' 262 | End, //!< Keyboard End key | ^~~ /usr/include/SFML/Window/Keyboard.hpp:262:5: note: 'sf::Keyboard::Scan::End' /usr/include/SFML/Window/Keyboard.hpp:117:5: note: 'sf::Keyboard::Key::End' 117 | End, //!< The End key | ^~~ gui.cpp: In constructor 'TCheckbox::TCheckbox(int, int, int, const sf::String&)': gui.cpp:324:11: error: no matching function for call to 'sf::Text::Text(const sf::String&, const sf::Font&, unsigned int)' 324 | , text(tag_, FT.getCurrentFont(), FT.GetSize()) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Text.hpp:87:5: note: candidate: 'sf::Text::Text(const sf::Font&, sf::String, unsigned int)' 87 | Text(const Font& font, String string = "", unsigned int characterSize = 30); | ^~~~ /usr/include/SFML/Graphics/Text.hpp:87:22: note: no known conversion for argument 1 from 'const sf::String' to 'const sf::Font&' 87 | Text(const Font& font, String string = "", unsigned int characterSize = 30); | ~~~~~~~~~~~~^~~~ /usr/include/SFML/Graphics/Text.hpp:56:25: note: candidate: 'sf::Text::Text(const sf::Text&)' 56 | class SFML_GRAPHICS_API Text : public Drawable, public Transformable | ^~~~ /usr/include/SFML/Graphics/Text.hpp:56:25: note: candidate expects 1 argument, 3 provided /usr/include/SFML/Graphics/Text.hpp:56:25: note: candidate: 'sf::Text::Text(sf::Text&&)' /usr/include/SFML/Graphics/Text.hpp:56:25: note: candidate expects 1 argument, 3 provided gui.cpp:328:25: error: no matching function for call to 'sf::Text::setPosition(int&, int&)' 328 | text.setPosition(x, y); | ~~~~~~~~~~~~~~~~^~~~~~ /usr/include/SFML/Graphics/Transformable.hpp:70:10: note: candidate: 'void sf::Transformable::setPosition(sf::Vector2f)' 70 | void setPosition(Vector2f position); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Transformable.hpp:70:10: note: candidate expects 1 argument, 2 provided gui.cpp:329:25: error: no matching function for call to 'sf::Sprite::setPosition(int, int&)' 329 | back.setPosition(x + width - 32, y); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Transformable.hpp:70:10: note: candidate: 'void sf::Transformable::setPosition(sf::Vector2f)' 70 | void setPosition(Vector2f position); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Transformable.hpp:70:10: note: candidate expects 1 argument, 2 provided gui.cpp:330:30: error: no matching function for call to 'sf::Sprite::setPosition(int, int&)' 330 | checkmark.setPosition(x + width - 32, y); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Transformable.hpp:70:10: note: candidate: 'void sf::Transformable::setPosition(sf::Vector2f)' 70 | void setPosition(Vector2f position); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Transformable.hpp:70:10: note: candidate expects 1 argument, 2 provided gui.cpp:332:22: error: no matching function for call to 'sf::Sprite::setScale(float, float)' 332 | back.setScale(Winsys.scale / 0.8f, Winsys.scale / 0.8f); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Transformable.hpp:98:10: note: candidate: 'void sf::Transformable::setScale(sf::Vector2f)' 98 | void setScale(Vector2f factors); | ^~~~~~~~ /usr/include/SFML/Graphics/Transformable.hpp:98:10: note: candidate expects 1 argument, 2 provided gui.cpp:333:27: error: no matching function for call to 'sf::Sprite::setScale(float, float)' 333 | checkmark.setScale(Winsys.scale / 0.8f, Winsys.scale / 0.8f); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Transformable.hpp:98:10: note: candidate: 'void sf::Transformable::setScale(sf::Vector2f)' 98 | void setScale(Vector2f factors); | ^~~~~~~~ /usr/include/SFML/Graphics/Transformable.hpp:98:10: note: candidate expects 1 argument, 2 provided gui.cpp: In member function 'void TCheckbox::SetPosition(int, int)': gui.cpp:337:25: error: no matching function for call to 'sf::Text::setPosition(int&, int&)' 337 | text.setPosition(x, y); | ~~~~~~~~~~~~~~~~^~~~~~ /usr/include/SFML/Graphics/Transformable.hpp:70:10: note: candidate: 'void sf::Transformable::setPosition(sf::Vector2f)' 70 | void setPosition(Vector2f position); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Transformable.hpp:70:10: note: candidate expects 1 argument, 2 provided gui.cpp:338:25: error: no matching function for call to 'sf::Sprite::setPosition(int&, int&)' 338 | back.setPosition(x, y); | ~~~~~~~~~~~~~~~~^~~~~~ /usr/include/SFML/Graphics/Transformable.hpp:70:10: note: candidate: 'void sf::Transformable::setPosition(sf::Vector2f)' 70 | void setPosition(Vector2f position); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Transformable.hpp:70:10: note: candidate expects 1 argument, 2 provided gui.cpp:339:30: error: no matching function for call to 'sf::Sprite::setPosition(int&, int&)' 339 | checkmark.setPosition(x, y); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~ /usr/include/SFML/Graphics/Transformable.hpp:70:10: note: candidate: 'void sf::Transformable::setPosition(sf::Vector2f)' 70 | void setPosition(Vector2f position); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Transformable.hpp:70:10: note: candidate expects 1 argument, 2 provided gui.cpp: In member function 'virtual void TCheckbox::Key(sf::Keyboard::Key, bool)': gui.cpp:370:34: error: 'Space' is not a member of 'sf::Keyboard' 370 | if (key == sf::Keyboard::Space || key == sf::Keyboard::Return) { | ^~~~~ gui.cpp:370:34: note: suggested alternatives: /usr/include/SFML/Window/Keyboard.hpp:215:5: note: 'sf::Keyboard::Scan::Space' 215 | Space, //!< Keyboard Space key | ^~~~~ /usr/include/SFML/Window/Keyboard.hpp:215:5: note: 'sf::Keyboard::Scan::Space' /usr/include/SFML/Window/Keyboard.hpp:111:5: note: 'sf::Keyboard::Key::Space' 111 | Space, //!< The Space key | ^~~~~ gui.cpp:370:64: error: 'Return' is not a member of 'sf::Keyboard' 370 | if (key == sf::Keyboard::Space || key == sf::Keyboard::Return) { | ^~~~~~ gui.cpp: In constructor 'TIconButton::TIconButton(int, int, const sf::Texture&, float, int, int)': gui.cpp:386:24: error: no matching function for call to 'sf::Sprite::setScale(float, float)' 386 | sprite.setScale(size / (texture.getSize().x / 2.f), size / (texture.getSize().y / 2.f)); | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Transformable.hpp:98:10: note: candidate: 'void sf::Transformable::setScale(sf::Vector2f)' 98 | void setScale(Vector2f factors); | ^~~~~~~~ /usr/include/SFML/Graphics/Transformable.hpp:98:10: note: candidate expects 1 argument, 2 provided gui.cpp:387:27: error: no matching function for call to 'sf::Sprite::setPosition(int&, int&)' 387 | sprite.setPosition(x, y); | ~~~~~~~~~~~~~~~~~~^~~~~~ /usr/include/SFML/Graphics/Transformable.hpp:70:10: note: candidate: 'void sf::Transformable::setPosition(sf::Vector2f)' 70 | void setPosition(Vector2f position); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Transformable.hpp:70:10: note: candidate expects 1 argument, 2 provided gui.cpp:388:26: error: no matching function for call to 'sf::RectangleShape::setPosition(int&, int&)' 388 | frame.setPosition(x, y); | ~~~~~~~~~~~~~~~~~^~~~~~ /usr/include/SFML/Graphics/Transformable.hpp:70:10: note: candidate: 'void sf::Transformable::setPosition(sf::Vector2f)' 70 | void setPosition(Vector2f position); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Transformable.hpp:70:10: note: candidate expects 1 argument, 2 provided gui.cpp: In member function 'void TIconButton::SetValue(int)': gui.cpp:401:51: error: base operand of '->' has non-pointer type 'const sf::Texture' 401 | sf::Vector2u texSize = sprite.getTexture()->getSize(); | ^~ gui.cpp:404:93: error: no matching function for call to 'sf::Rect::Rect(int, int, unsigned int, unsigned int)' 404 | sprite.setTextureRect(sf::IntRect(0, 0, texSize.x / 2, texSize.y / 2)); | ^ /usr/include/SFML/Graphics/Rect.inl:35:11: note: candidate: 'constexpr sf::Rect::Rect(sf::Vector2, sf::Vector2) [with T = int]' 35 | constexpr Rect::Rect(Vector2 thePosition, Vector2 theSize) : position(thePosition), size(theSize) | ^~~~~~~ /usr/include/SFML/Graphics/Rect.inl:35:11: note: candidate expects 2 arguments, 4 provided /usr/include/SFML/Graphics/Rect.hpp:52:15: note: candidate: 'constexpr sf::Rect::Rect() [with T = int]' 52 | constexpr Rect() = default; | ^~~~ /usr/include/SFML/Graphics/Rect.hpp:52:15: note: candidate expects 0 arguments, 4 provided /usr/include/SFML/Graphics/Rect.hpp:42:7: note: candidate: 'constexpr sf::Rect::Rect(const sf::Rect&)' 42 | class Rect | ^~~~ /usr/include/SFML/Graphics/Rect.hpp:42:7: note: candidate expects 1 argument, 4 provided /usr/include/SFML/Graphics/Rect.hpp:42:7: note: candidate: 'constexpr sf::Rect::Rect(sf::Rect&&)' /usr/include/SFML/Graphics/Rect.hpp:42:7: note: candidate expects 1 argument, 4 provided gui.cpp:407:105: error: no matching function for call to 'sf::Rect::Rect(unsigned int, int, unsigned int, unsigned int)' 407 | sprite.setTextureRect(sf::IntRect(texSize.x / 2, 0, texSize.x / 2, texSize.y / 2)); | ^ /usr/include/SFML/Graphics/Rect.inl:35:11: note: candidate: 'constexpr sf::Rect::Rect(sf::Vector2, sf::Vector2) [with T = int]' 35 | constexpr Rect::Rect(Vector2 thePosition, Vector2 theSize) : position(thePosition), size(theSize) | ^~~~~~~ /usr/include/SFML/Graphics/Rect.inl:35:11: note: candidate expects 2 arguments, 4 provided /usr/include/SFML/Graphics/Rect.hpp:52:15: note: candidate: 'constexpr sf::Rect::Rect() [with T = int]' 52 | constexpr Rect() = default; | ^~~~ /usr/include/SFML/Graphics/Rect.hpp:52:15: note: candidate expects 0 arguments, 4 provided /usr/include/SFML/Graphics/Rect.hpp:42:7: note: candidate: 'constexpr sf::Rect::Rect(const sf::Rect&)' 42 | class Rect | ^~~~ /usr/include/SFML/Graphics/Rect.hpp:42:7: note: candidate expects 1 argument, 4 provided /usr/include/SFML/Graphics/Rect.hpp:42:7: note: candidate: 'constexpr sf::Rect::Rect(sf::Rect&&)' /usr/include/SFML/Graphics/Rect.hpp:42:7: note: candidate expects 1 argument, 4 provided gui.cpp:410:105: error: no matching function for call to 'sf::Rect::Rect(int, unsigned int, unsigned int, unsigned int)' 410 | sprite.setTextureRect(sf::IntRect(0, texSize.y / 2, texSize.x / 2, texSize.y / 2)); | ^ /usr/include/SFML/Graphics/Rect.inl:35:11: note: candidate: 'constexpr sf::Rect::Rect(sf::Vector2, sf::Vector2) [with T = int]' 35 | constexpr Rect::Rect(Vector2 thePosition, Vector2 theSize) : position(thePosition), size(theSize) | ^~~~~~~ /usr/include/SFML/Graphics/Rect.inl:35:11: note: candidate expects 2 arguments, 4 provided /usr/include/SFML/Graphics/Rect.hpp:52:15: note: candidate: 'constexpr sf::Rect::Rect() [with T = int]' 52 | constexpr Rect() = default; | ^~~~ /usr/include/SFML/Graphics/Rect.hpp:52:15: note: candidate expects 0 arguments, 4 provided /usr/include/SFML/Graphics/Rect.hpp:42:7: note: candidate: 'constexpr sf::Rect::Rect(const sf::Rect&)' 42 | class Rect | ^~~~ /usr/include/SFML/Graphics/Rect.hpp:42:7: note: candidate expects 1 argument, 4 provided /usr/include/SFML/Graphics/Rect.hpp:42:7: note: candidate: 'constexpr sf::Rect::Rect(sf::Rect&&)' /usr/include/SFML/Graphics/Rect.hpp:42:7: note: candidate expects 1 argument, 4 provided gui.cpp:413:117: error: no matching function for call to 'sf::Rect::Rect(unsigned int, unsigned int, unsigned int, unsigned int)' 413 | sprite.setTextureRect(sf::IntRect(texSize.x / 2, texSize.y / 2, texSize.x / 2, texSize.y / 2)); | ^ /usr/include/SFML/Graphics/Rect.inl:35:11: note: candidate: 'constexpr sf::Rect::Rect(sf::Vector2, sf::Vector2) [with T = int]' 35 | constexpr Rect::Rect(Vector2 thePosition, Vector2 theSize) : position(thePosition), size(theSize) | ^~~~~~~ /usr/include/SFML/Graphics/Rect.inl:35:11: note: candidate expects 2 arguments, 4 provided /usr/include/SFML/Graphics/Rect.hpp:52:15: note: candidate: 'constexpr sf::Rect::Rect() [with T = int]' 52 | constexpr Rect() = default; | ^~~~ /usr/include/SFML/Graphics/Rect.hpp:52:15: note: candidate expects 0 arguments, 4 provided /usr/include/SFML/Graphics/Rect.hpp:42:7: note: candidate: 'constexpr sf::Rect::Rect(const sf::Rect&)' 42 | class Rect | ^~~~ /usr/include/SFML/Graphics/Rect.hpp:42:7: note: candidate expects 1 argument, 4 provided /usr/include/SFML/Graphics/Rect.hpp:42:7: note: candidate: 'constexpr sf::Rect::Rect(sf::Rect&&)' /usr/include/SFML/Graphics/Rect.hpp:42:7: note: candidate expects 1 argument, 4 provided gui.cpp: In member function 'virtual void TIconButton::Key(sf::Keyboard::Key, bool)': gui.cpp:441:34: error: 'Down' is not a member of 'sf::Keyboard' 441 | if (key == sf::Keyboard::Down) { // Arrow down/left | ^~~~ gui.cpp:441:34: note: suggested alternatives: /usr/include/SFML/Window/Keyboard.hpp:266:5: note: 'sf::Keyboard::Scan::Down' 266 | Down, //!< Keyboard Down Arrow key | ^~~~ /usr/include/SFML/Window/Keyboard.hpp:266:5: note: 'sf::Keyboard::Scan::Down' /usr/include/SFML/Window/Keyboard.hpp:128:5: note: 'sf::Keyboard::Key::Down' 128 | Down, //!< Down arrow | ^~~~ gui.cpp:443:41: error: 'Up' is not a member of 'sf::Keyboard' 443 | } else if (key == sf::Keyboard::Up) { // Arrow up/right | ^~ gui.cpp:443:41: note: suggested alternatives: /usr/include/SFML/Window/Keyboard.hpp:267:5: note: 'sf::Keyboard::Scan::Up' 267 | Up, //!< Keyboard Up Arrow key | ^~ /usr/include/SFML/Window/Keyboard.hpp:267:5: note: 'sf::Keyboard::Scan::Up' /usr/include/SFML/Window/Keyboard.hpp:127:5: note: 'sf::Keyboard::Key::Up' 127 | Up, //!< Up arrow | ^~ gui.cpp: In constructor 'TArrow::TArrow(int, int, bool)': gui.cpp:457:27: error: no matching function for call to 'sf::Sprite::setPosition(int&, int&)' 457 | sprite.setPosition(x, y); | ~~~~~~~~~~~~~~~~~~^~~~~~ /usr/include/SFML/Graphics/Transformable.hpp:70:10: note: candidate: 'void sf::Transformable::setPosition(sf::Vector2f)' 70 | void setPosition(Vector2f position); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Transformable.hpp:70:10: note: candidate expects 1 argument, 2 provided gui.cpp:458:24: error: no matching function for call to 'sf::Sprite::setScale(float, float)' 458 | sprite.setScale(Winsys.scale / 0.8f, Winsys.scale / 0.8f); | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Transformable.hpp:98:10: note: candidate: 'void sf::Transformable::setScale(sf::Vector2f)' 98 | void setScale(Vector2f factors); | ^~~~~~~~ /usr/include/SFML/Graphics/Transformable.hpp:98:10: note: candidate expects 1 argument, 2 provided gui.cpp: In member function 'void TArrow::SetTexture()': gui.cpp:483:51: error: base operand of '->' has non-pointer type 'const sf::Texture' 483 | sf::Vector2u texSize = sprite.getTexture()->getSize(); | ^~ gui.cpp:484:121: error: no matching function for call to 'sf::Rect::Rect(float, float, unsigned int, unsigned int)' 484 | sprite.setTextureRect(sf::IntRect(textl[type] * texSize.x, texbr[type] * texSize.y, texSize.x / 2, texSize.y / 4)); | ^ /usr/include/SFML/Graphics/Rect.inl:35:11: note: candidate: 'constexpr sf::Rect::Rect(sf::Vector2, sf::Vector2) [with T = int]' 35 | constexpr Rect::Rect(Vector2 thePosition, Vector2 theSize) : position(thePosition), size(theSize) | ^~~~~~~ /usr/include/SFML/Graphics/Rect.inl:35:11: note: candidate expects 2 arguments, 4 provided /usr/include/SFML/Graphics/Rect.hpp:52:15: note: candidate: 'constexpr sf::Rect::Rect() [with T = int]' 52 | constexpr Rect() = default; | ^~~~ /usr/include/SFML/Graphics/Rect.hpp:52:15: note: candidate expects 0 arguments, 4 provided /usr/include/SFML/Graphics/Rect.hpp:42:7: note: candidate: 'constexpr sf::Rect::Rect(const sf::Rect&)' 42 | class Rect | ^~~~ /usr/include/SFML/Graphics/Rect.hpp:42:7: note: candidate expects 1 argument, 4 provided /usr/include/SFML/Graphics/Rect.hpp:42:7: note: candidate: 'constexpr sf::Rect::Rect(sf::Rect&&)' /usr/include/SFML/Graphics/Rect.hpp:42:7: note: candidate expects 1 argument, 4 provided gui.cpp: In member function 'virtual void TUpDown::Key(sf::Keyboard::Key, bool)': gui.cpp:536:50: error: 'Up' is not a member of 'sf::Keyboard' 536 | if ((!swapArrows && key == sf::Keyboard::Up) || (swapArrows && key == sf::Keyboard::Down)) { // Arrow up | ^~ gui.cpp:536:50: note: suggested alternatives: /usr/include/SFML/Window/Keyboard.hpp:267:5: note: 'sf::Keyboard::Scan::Up' 267 | Up, //!< Keyboard Up Arrow key | ^~ /usr/include/SFML/Window/Keyboard.hpp:267:5: note: 'sf::Keyboard::Scan::Up' /usr/include/SFML/Window/Keyboard.hpp:127:5: note: 'sf::Keyboard::Key::Up' 127 | Up, //!< Up arrow | ^~ gui.cpp:536:93: error: 'Down' is not a member of 'sf::Keyboard' 536 | if ((!swapArrows && key == sf::Keyboard::Up) || (swapArrows && key == sf::Keyboard::Down)) { // Arrow up | ^~~~ gui.cpp:536:93: note: suggested alternatives: /usr/include/SFML/Window/Keyboard.hpp:266:5: note: 'sf::Keyboard::Scan::Down' 266 | Down, //!< Keyboard Down Arrow key | ^~~~ /usr/include/SFML/Window/Keyboard.hpp:266:5: note: 'sf::Keyboard::Scan::Down' /usr/include/SFML/Window/Keyboard.hpp:128:5: note: 'sf::Keyboard::Key::Down' 128 | Down, //!< Down arrow | ^~~~ gui.cpp:543:57: error: 'Down' is not a member of 'sf::Keyboard' 543 | } else if ((!swapArrows && key == sf::Keyboard::Down) || (swapArrows && key == sf::Keyboard::Up)) { // Arrow down | ^~~~ gui.cpp:543:57: note: suggested alternatives: /usr/include/SFML/Window/Keyboard.hpp:266:5: note: 'sf::Keyboard::Scan::Down' 266 | Down, //!< Keyboard Down Arrow key | ^~~~ /usr/include/SFML/Window/Keyboard.hpp:266:5: note: 'sf::Keyboard::Scan::Down' /usr/include/SFML/Window/Keyboard.hpp:128:5: note: 'sf::Keyboard::Key::Down' 128 | Down, //!< Down arrow | ^~~~ gui.cpp:543:102: error: 'Up' is not a member of 'sf::Keyboard' 543 | } else if ((!swapArrows && key == sf::Keyboard::Down) || (swapArrows && key == sf::Keyboard::Up)) { // Arrow down | ^~ gui.cpp:543:102: note: suggested alternatives: /usr/include/SFML/Window/Keyboard.hpp:267:5: note: 'sf::Keyboard::Scan::Up' 267 | Up, //!< Keyboard Up Arrow key | ^~ /usr/include/SFML/Window/Keyboard.hpp:267:5: note: 'sf::Keyboard::Scan::Up' /usr/include/SFML/Window/Keyboard.hpp:127:5: note: 'sf::Keyboard::Key::Up' 127 | Up, //!< Up arrow | ^~ gui.cpp: In function 'void DrawFrameX(int, int, int, int, int, const sf::Color&, const sf::Color&, float)': gui.cpp:593:26: error: no matching function for call to 'sf::RectangleShape::setPosition(int&, int&)' 593 | shape.setPosition(x, y); | ~~~~~~~~~~~~~~~~~^~~~~~ /usr/include/SFML/Graphics/Transformable.hpp:70:10: note: candidate: 'void sf::Transformable::setPosition(sf::Vector2f)' 70 | void setPosition(Vector2f position); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Transformable.hpp:70:10: note: candidate expects 1 argument, 2 provided gui.cpp: In function 'void DrawBonusExt(int, std::size_t, std::size_t)': gui.cpp:620:50: error: base operand of '->' has non-pointer type 'const sf::Texture' 620 | sf::Vector2u size = tuxbonus.getTexture()->getSize(); | ^~ gui.cpp:621:67: error: no matching function for call to 'sf::Rect::Rect(int, int, unsigned int&, unsigned int)' 621 | tuxbonus.setTextureRect(sf::IntRect(0, 0, size.x, size.y/2)); | ^ /usr/include/SFML/Graphics/Rect.inl:35:11: note: candidate: 'constexpr sf::Rect::Rect(sf::Vector2, sf::Vector2) [with T = int]' 35 | constexpr Rect::Rect(Vector2 thePosition, Vector2 theSize) : position(thePosition), size(theSize) | ^~~~~~~ /usr/include/SFML/Graphics/Rect.inl:35:11: note: candidate expects 2 arguments, 4 provided /usr/include/SFML/Graphics/Rect.hpp:52:15: note: candidate: 'constexpr sf::Rect::Rect() [with T = int]' 52 | constexpr Rect() = default; | ^~~~ /usr/include/SFML/Graphics/Rect.hpp:52:15: note: candidate expects 0 arguments, 4 provided /usr/include/SFML/Graphics/Rect.hpp:42:7: note: candidate: 'constexpr sf::Rect::Rect(const sf::Rect&)' 42 | class Rect | ^~~~ /usr/include/SFML/Graphics/Rect.hpp:42:7: note: candidate expects 1 argument, 4 provided /usr/include/SFML/Graphics/Rect.hpp:42:7: note: candidate: 'constexpr sf::Rect::Rect(sf::Rect&&)' /usr/include/SFML/Graphics/Rect.hpp:42:7: note: candidate expects 1 argument, 4 provided gui.cpp:630:45: error: no matching function for call to 'sf::Sprite::setPosition(int&, int)' 630 | tuxbonus.setPosition(x, y + 4); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /usr/include/SFML/Graphics/Transformable.hpp:70:10: note: candidate: 'void sf::Transformable::setPosition(sf::Vector2f)' 70 | void setPosition(Vector2f position); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Transformable.hpp:70:10: note: candidate expects 1 argument, 2 provided gui.cpp: In function 'void DrawGUIFrame()': gui.cpp:642:87: error: base operand of '->' has non-pointer type 'const sf::Texture' 642 | bottom_left.setPosition(0, Winsys.resolution.height - bottom_left.getTexture()->getSize().y); | ^~ gui.cpp:643:85: error: base operand of '->' has non-pointer type 'const sf::Texture' 643 | bottom_right.setPosition(Winsys.resolution.width - bottom_right.getTexture()->getSize().x, Winsys.resolution.height - bottom_right.getTexture()->getSize().y); | ^~ gui.cpp:643:152: error: base operand of '->' has non-pointer type 'const sf::Texture' 643 | bottom_right.setPosition(Winsys.resolution.width - bottom_right.getTexture()->getSize().x, Winsys.resolution.height - bottom_right.getTexture()->getSize().y); | ^~ gui.cpp:644:79: error: base operand of '->' has non-pointer type 'const sf::Texture' 644 | top_right.setPosition(Winsys.resolution.width - top_right.getTexture()->getSize().x, 0); | ^~ gui.cpp: In function 'void DrawGUIBackground(float)': gui.cpp:657:22: error: no matching function for call to 'sf::Sprite::setScale(float&, float&)' 657 | logo.setScale(scale, scale); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Transformable.hpp:98:10: note: candidate: 'void sf::Transformable::setScale(sf::Vector2f)' 98 | void setScale(Vector2f factors); | ^~~~~~~~ /usr/include/SFML/Graphics/Transformable.hpp:98:10: note: candidate expects 1 argument, 2 provided gui.cpp:658:75: error: 'const sf::IntRect' {aka 'const class sf::Rect'} has no member named 'width' 658 | logo.setPosition((Winsys.resolution.width - logo.getTextureRect().width*scale)/2, 5); | ^~~~~ gui.cpp: In function 'void DrawCursor()': gui.cpp:666:27: error: no matching function for call to 'sf::Sprite::setScale(double, double)' 666 | s.setScale((double) Winsys.resolution.width / 1400, (double) Winsys.resolution.width / 1400); | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Transformable.hpp:98:10: note: candidate: 'void sf::Transformable::setScale(sf::Vector2f)' 98 | void setScale(Vector2f factors); | ^~~~~~~~ /usr/include/SFML/Graphics/Transformable.hpp:98:10: note: candidate expects 1 argument, 2 provided gui.cpp:669:22: error: no matching function for call to 'sf::Sprite::setPosition(int&, int&)' 669 | s.setPosition(cursor_pos.x, cursor_pos.y); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Transformable.hpp:70:10: note: candidate: 'void sf::Transformable::setPosition(sf::Vector2f)' 70 | void setPosition(Vector2f position); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Transformable.hpp:70:10: note: candidate expects 1 argument, 2 provided gui.cpp: In function 'TWidget* KeyGUI(sf::Keyboard::Key, bool)': gui.cpp:719:44: error: 'Tab' is not a member of 'sf::Keyboard' 719 | case sf::Keyboard::Tab: | ^~~ gui.cpp:719:44: note: suggested alternatives: /usr/include/SFML/Window/Keyboard.hpp:214:5: note: 'sf::Keyboard::Scan::Tab' 214 | Tab, //!< Keyboard Tab key | ^~~ /usr/include/SFML/Window/Keyboard.hpp:214:5: note: 'sf::Keyboard::Scan::Tab' /usr/include/SFML/Window/Keyboard.hpp:114:5: note: 'sf::Keyboard::Key::Tab' 114 | Tab, //!< The Tabulation key | ^~~ gui.cpp:720:78: error: 'LShift' is not a member of 'sf::Keyboard' 720 | if (sf::Keyboard::isKeyPressed(sf::Keyboard::LShift) || sf::Keyboard::isKeyPressed(sf::Keyboard::RShift)) | ^~~~~~ gui.cpp:720:78: note: suggested alternatives: /usr/include/SFML/Window/Keyboard.hpp:309:5: note: 'sf::Keyboard::Scan::LShift' 309 | LShift, //!< Keyboard Left Shift key | ^~~~~~ /usr/include/SFML/Window/Keyboard.hpp:309:5: note: 'sf::Keyboard::Scan::LShift' /usr/include/SFML/Window/Keyboard.hpp:92:5: note: 'sf::Keyboard::Key::LShift' 92 | LShift, //!< The left Shift key | ^~~~~~ gui.cpp:720:130: error: 'RShift' is not a member of 'sf::Keyboard' 720 | if (sf::Keyboard::isKeyPressed(sf::Keyboard::LShift) || sf::Keyboard::isKeyPressed(sf::Keyboard::RShift)) | ^~~~~~ gui.cpp:720:130: note: suggested alternatives: /usr/include/SFML/Window/Keyboard.hpp:313:5: note: 'sf::Keyboard::Scan::RShift' 313 | RShift, //!< Keyboard Right Shift key | ^~~~~~ /usr/include/SFML/Window/Keyboard.hpp:313:5: note: 'sf::Keyboard::Scan::RShift' /usr/include/SFML/Window/Keyboard.hpp:96:5: note: 'sf::Keyboard::Key::RShift' 96 | RShift, //!< The right Shift key | ^~~~~~ gui.cpp:725:44: error: 'Up' is not a member of 'sf::Keyboard' 725 | case sf::Keyboard::Up: | ^~ gui.cpp:725:44: note: suggested alternatives: /usr/include/SFML/Window/Keyboard.hpp:267:5: note: 'sf::Keyboard::Scan::Up' 267 | Up, //!< Keyboard Up Arrow key | ^~ /usr/include/SFML/Window/Keyboard.hpp:267:5: note: 'sf::Keyboard::Scan::Up' /usr/include/SFML/Window/Keyboard.hpp:127:5: note: 'sf::Keyboard::Key::Up' 127 | Up, //!< Up arrow | ^~ gui.cpp:729:44: error: 'Left' is not a member of 'sf::Keyboard' 729 | case sf::Keyboard::Left: | ^~~~ gui.cpp:729:44: note: suggested alternatives: /usr/include/SFML/Window/Keyboard.hpp:265:5: note: 'sf::Keyboard::Scan::Left' 265 | Left, //!< Keyboard Left Arrow key | ^~~~ /usr/include/SFML/Window/Keyboard.hpp:265:5: note: 'sf::Keyboard::Scan::Left' /usr/include/SFML/Window/Keyboard.hpp:125:5: note: 'sf::Keyboard::Key::Left' 125 | Left, //!< Left arrow | ^~~~ /usr/include/SFML/Window/Mouse.hpp:51:5: note: 'sf::Mouse::Button::Left' 51 | Left, //!< The left mouse button | ^~~~ gui.cpp:733:44: error: 'Down' is not a member of 'sf::Keyboard' 733 | case sf::Keyboard::Down: | ^~~~ gui.cpp:733:44: note: suggested alternatives: /usr/include/SFML/Window/Keyboard.hpp:266:5: note: 'sf::Keyboard::Scan::Down' 266 | Down, //!< Keyboard Down Arrow key | ^~~~ /usr/include/SFML/Window/Keyboard.hpp:266:5: note: 'sf::Keyboard::Scan::Down' /usr/include/SFML/Window/Keyboard.hpp:128:5: note: 'sf::Keyboard::Key::Down' 128 | Down, //!< Down arrow | ^~~~ gui.cpp:737:44: error: 'Right' is not a member of 'sf::Keyboard' 737 | case sf::Keyboard::Right: | ^~~~~ gui.cpp:737:44: note: suggested alternatives: /usr/include/SFML/Window/Keyboard.hpp:264:5: note: 'sf::Keyboard::Scan::Right' 264 | Right, //!< Keyboard Right Arrow key | ^~~~~ /usr/include/SFML/Window/Keyboard.hpp:264:5: note: 'sf::Keyboard::Scan::Right' /usr/include/SFML/Window/Keyboard.hpp:126:5: note: 'sf::Keyboard::Key::Right' 126 | Right, //!< Right arrow | ^~~~~ /usr/include/SFML/Window/Mouse.hpp:52:5: note: 'sf::Mouse::Button::Right' 52 | Right, //!< The right mouse button | ^~~~~ make[2]: *** [Makefile:566: gui.o] Error 1 make[2]: Leaving directory '/usr/src/RPM/BUILD/etr-0.8.4/src' make[2]: Entering directory '/usr/src/RPM/BUILD/etr-0.8.4/src' x86_64-alt-linux-g++ -DHAVE_CONFIG_H -I. -I.. -DETR_DATA_DIR=\"/usr/share\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -std=c++14 -c -o course.o course.cpp In file included from /usr/include/SFML/System.hpp:34, from bh.h:30, from course.cpp:22: /usr/include/SFML/System/Clock.hpp:78:20: error: 'ratio_less_equal_v' is not a member of 'std'; did you mean 'ratio_less_equal'? 78 | static_assert(std::ratio_less_equal_v, | ^~~~~~~~~~~~~~~~~~ | ratio_less_equal /usr/include/SFML/System/Clock.hpp:78:56: error: expected primary-expression before ',' token 78 | static_assert(std::ratio_less_equal_v, | ^ /usr/include/SFML/System/Clock.hpp:78:68: error: expected primary-expression before '>' token 78 | static_assert(std::ratio_less_equal_v, | ^ /usr/include/SFML/System/Clock.hpp:78:69: error: expected primary-expression before ',' token 78 | static_assert(std::ratio_less_equal_v, | ^ /usr/include/SFML/System/Clock.hpp:78:69: error: expected ')' before ',' token 78 | static_assert(std::ratio_less_equal_v, | ~ ^ | ) In file included from /usr/include/SFML/System/FileInputStream.hpp:34, from /usr/include/SFML/System.hpp:37: /usr/include/SFML/System/InputStream.hpp:66:32: error: 'optional' in namespace 'std' does not name a template type 66 | [[nodiscard]] virtual std::optional read(void* data, std::size_t size) = 0; | ^~~~~~~~ /usr/include/SFML/System/InputStream.hpp:66:27: note: 'std::optional' is only available from C++17 onwards 66 | [[nodiscard]] virtual std::optional read(void* data, std::size_t size) = 0; | ^~~ /usr/include/SFML/System/InputStream.hpp:76:32: error: 'optional' in namespace 'std' does not name a template type 76 | [[nodiscard]] virtual std::optional seek(std::size_t position) = 0; | ^~~~~~~~ /usr/include/SFML/System/InputStream.hpp:76:27: note: 'std::optional' is only available from C++17 onwards 76 | [[nodiscard]] virtual std::optional seek(std::size_t position) = 0; | ^~~ /usr/include/SFML/System/InputStream.hpp:84:32: error: 'optional' in namespace 'std' does not name a template type 84 | [[nodiscard]] virtual std::optional tell() = 0; | ^~~~~~~~ /usr/include/SFML/System/InputStream.hpp:84:27: note: 'std::optional' is only available from C++17 onwards 84 | [[nodiscard]] virtual std::optional tell() = 0; | ^~~ /usr/include/SFML/System/InputStream.hpp:92:18: error: 'optional' in namespace 'std' does not name a template type 92 | virtual std::optional getSize() = 0; | ^~~~~~~~ /usr/include/SFML/System/InputStream.hpp:92:13: note: 'std::optional' is only available from C++17 onwards 92 | virtual std::optional getSize() = 0; | ^~~ /usr/include/SFML/System/FileInputStream.hpp:106:41: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 106 | explicit FileInputStream(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/System/FileInputStream.hpp:106:57: error: expected unqualified-id before '&' token 106 | explicit FileInputStream(const std::filesystem::path& filename); | ^ /usr/include/SFML/System/FileInputStream.hpp:106:57: error: expected ')' before '&' token 106 | explicit FileInputStream(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/System/FileInputStream.hpp:106:57: error: constructors may not be ref-qualified /usr/include/SFML/System/FileInputStream.hpp:106:57: error: expected ';' at end of member declaration 106 | explicit FileInputStream(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/System/FileInputStream.hpp:106:59: error: 'filename' does not name a type 106 | explicit FileInputStream(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:116:40: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/System/FileInputStream.hpp:116:56: error: expected unqualified-id before '&' token 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ^ /usr/include/SFML/System/FileInputStream.hpp:116:56: error: expected ')' before '&' token 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/System/FileInputStream.hpp:116:56: error: expected ';' at end of member declaration 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/System/FileInputStream.hpp:116:58: error: 'filename' does not name a type 116 | [[nodiscard]] bool open(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:130:24: error: 'optional' in namespace 'std' does not name a template type 130 | [[nodiscard]] std::optional read(void* data, std::size_t size) override; | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:130:19: note: 'std::optional' is only available from C++17 onwards 130 | [[nodiscard]] std::optional read(void* data, std::size_t size) override; | ^~~ /usr/include/SFML/System/FileInputStream.hpp:140:24: error: 'optional' in namespace 'std' does not name a template type 140 | [[nodiscard]] std::optional seek(std::size_t position) override; | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:140:19: note: 'std::optional' is only available from C++17 onwards 140 | [[nodiscard]] std::optional seek(std::size_t position) override; | ^~~ /usr/include/SFML/System/FileInputStream.hpp:148:24: error: 'optional' in namespace 'std' does not name a template type 148 | [[nodiscard]] std::optional tell() override; | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:148:19: note: 'std::optional' is only available from C++17 onwards 148 | [[nodiscard]] std::optional tell() override; | ^~~ /usr/include/SFML/System/FileInputStream.hpp:156:10: error: 'optional' in namespace 'std' does not name a template type 156 | std::optional getSize() override; | ^~~~~~~~ /usr/include/SFML/System/FileInputStream.hpp:156:5: note: 'std::optional' is only available from C++17 onwards 156 | std::optional getSize() override; | ^~~ In file included from /usr/include/SFML/System.hpp:39: /usr/include/SFML/System/MemoryInputStream.hpp:70:24: error: 'optional' in namespace 'std' does not name a template type 70 | [[nodiscard]] std::optional read(void* data, std::size_t size) override; | ^~~~~~~~ /usr/include/SFML/System/MemoryInputStream.hpp:70:19: note: 'std::optional' is only available from C++17 onwards 70 | [[nodiscard]] std::optional read(void* data, std::size_t size) override; | ^~~ /usr/include/SFML/System/MemoryInputStream.hpp:80:24: error: 'optional' in namespace 'std' does not name a template type 80 | [[nodiscard]] std::optional seek(std::size_t position) override; | ^~~~~~~~ /usr/include/SFML/System/MemoryInputStream.hpp:80:19: note: 'std::optional' is only available from C++17 onwards 80 | [[nodiscard]] std::optional seek(std::size_t position) override; | ^~~ /usr/include/SFML/System/MemoryInputStream.hpp:88:24: error: 'optional' in namespace 'std' does not name a template type 88 | [[nodiscard]] std::optional tell() override; | ^~~~~~~~ /usr/include/SFML/System/MemoryInputStream.hpp:88:19: note: 'std::optional' is only available from C++17 onwards 88 | [[nodiscard]] std::optional tell() override; | ^~~ /usr/include/SFML/System/MemoryInputStream.hpp:96:10: error: 'optional' in namespace 'std' does not name a template type 96 | std::optional getSize() override; | ^~~~~~~~ /usr/include/SFML/System/MemoryInputStream.hpp:96:5: note: 'std::optional' is only available from C++17 onwards 96 | std::optional getSize() override; | ^~~ /usr/include/SFML/System/MemoryInputStream.hpp:102:16: error: 'byte' in namespace 'std' does not name a type 102 | const std::byte* m_data{}; //!< Pointer to the data in memory | ^~~~ /usr/include/SFML/System/MemoryInputStream.hpp:102:11: note: 'std::byte' is only available from C++17 onwards 102 | const std::byte* m_data{}; //!< Pointer to the data in memory | ^~~ In file included from /usr/include/SFML/System/Utf.hpp:742, from /usr/include/SFML/System/String.hpp:32, from /usr/include/SFML/System.hpp:41: /usr/include/SFML/System/Utf.inl: In static member function 'static Out sf::Utf<8>::encode(char32_t, Out, uint8_t)': /usr/include/SFML/System/Utf.inl:137:25: error: 'byte' is not a member of 'std' 137 | std::array bytes{}; | ^~~~ /usr/include/SFML/System/Utf.inl:137:25: note: 'std::byte' is only available from C++17 onwards /usr/include/SFML/System/Utf.inl:137:25: error: 'byte' is not a member of 'std' /usr/include/SFML/System/Utf.inl:137:25: note: 'std::byte' is only available from C++17 onwards /usr/include/SFML/System/Utf.inl:137:32: error: template argument 1 is invalid 137 | std::array bytes{}; | ^ /usr/include/SFML/System/Utf.inl:142:26: error: invalid types 'int[int]' for array subscript 142 | case 4: bytes[3] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^ /usr/include/SFML/System/Utf.inl:142:49: error: 'byte' in namespace 'std' does not name a type 142 | case 4: bytes[3] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~~ /usr/include/SFML/System/Utf.inl:142:44: note: 'std::byte' is only available from C++17 onwards 142 | case 4: bytes[3] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~ /usr/include/SFML/System/Utf.inl:143:26: error: invalid types 'int[int]' for array subscript 143 | case 3: bytes[2] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^ /usr/include/SFML/System/Utf.inl:143:49: error: 'byte' in namespace 'std' does not name a type 143 | case 3: bytes[2] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~~ /usr/include/SFML/System/Utf.inl:143:44: note: 'std::byte' is only available from C++17 onwards 143 | case 3: bytes[2] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~ /usr/include/SFML/System/Utf.inl:144:26: error: invalid types 'int[int]' for array subscript 144 | case 2: bytes[1] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^ /usr/include/SFML/System/Utf.inl:144:49: error: 'byte' in namespace 'std' does not name a type 144 | case 2: bytes[1] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~~ /usr/include/SFML/System/Utf.inl:144:44: note: 'std::byte' is only available from C++17 onwards 144 | case 2: bytes[1] = static_cast((input | 0x80) & 0xBF); input >>= 6; [[fallthrough]]; | ^~~ /usr/include/SFML/System/Utf.inl:145:26: error: invalid types 'int[int]' for array subscript 145 | case 1: bytes[0] = static_cast (input | firstBytes[bytestoWrite]); | ^ /usr/include/SFML/System/Utf.inl:145:49: error: 'byte' in namespace 'std' does not name a type 145 | case 1: bytes[0] = static_cast (input | firstBytes[bytestoWrite]); | ^~~~ /usr/include/SFML/System/Utf.inl:145:44: note: 'std::byte' is only available from C++17 onwards 145 | case 1: bytes[0] = static_cast (input | firstBytes[bytestoWrite]); | ^~~ /usr/include/SFML/System/Utf.inl:150:35: error: request for member 'data' in 'bytes', which is of non-class type 'int' 150 | output = priv::copy(bytes.data(), bytes.data() + bytestoWrite, output); | ^~~~ /usr/include/SFML/System/Utf.inl:150:49: error: request for member 'data' in 'bytes', which is of non-class type 'int' 150 | output = priv::copy(bytes.data(), bytes.data() + bytestoWrite, output); | ^~~~ In file included from /usr/include/SFML/Window.hpp:32, from bh.h:31: /usr/include/SFML/Window/Context.hpp: At global scope: /usr/include/SFML/Window/Context.hpp:130:57: error: 'std::string_view' has not been declared 130 | [[nodiscard]] static bool isExtensionAvailable(std::string_view name); | ^~~~~~~~~~~ In file included from /usr/include/SFML/Window.hpp:34: /usr/include/SFML/Window/Cursor.hpp:226:31: error: 'optional' in namespace 'std' does not name a template type 226 | [[nodiscard]] static std::optional createFromPixels(const std::uint8_t* pixels, Vector2u size, Vector2u hotspot); | ^~~~~~~~ /usr/include/SFML/Window/Cursor.hpp:226:26: note: 'std::optional' is only available from C++17 onwards 226 | [[nodiscard]] static std::optional createFromPixels(const std::uint8_t* pixels, Vector2u size, Vector2u hotspot); | ^~~ /usr/include/SFML/Window/Cursor.hpp:242:31: error: 'optional' in namespace 'std' does not name a template type 242 | [[nodiscard]] static std::optional createFromSystem(Type type); | ^~~~~~~~ /usr/include/SFML/Window/Cursor.hpp:242:26: note: 'std::optional' is only available from C++17 onwards 242 | [[nodiscard]] static std::optional createFromSystem(Type type); | ^~~ In file included from /usr/include/SFML/Window.hpp:35: /usr/include/SFML/Window/Event.hpp:345:10: error: 'variant' in namespace 'std' does not name a template type 345 | std::variant*) | ^~~~~~~ /usr/include/SFML/Window/Event.hpp:374:65: note: 'std::variant' is only available from C++17 onwards 374 | [[nodiscard]] static constexpr bool isInParameterPack(const std::variant*) | ^~~ /usr/include/SFML/Window/Event.hpp:374:77: error: expected ',' or '...' before '<' token 374 | [[nodiscard]] static constexpr bool isInParameterPack(const std::variant*) | ^ /usr/include/SFML/Window/Event.hpp:380:76: error: 'm_data' was not declared in this scope 380 | static constexpr bool isEventSubtype = isInParameterPack(decltype (&m_data)(nullptr)); | ^~~~~~ /usr/include/SFML/Window/Event.hpp: In static member function 'static constexpr bool sf::Event::isInParameterPack(int)': /usr/include/SFML/Window/Event.hpp:376:22: error: 'is_same_v' is not a member of 'std'; did you mean 'is_same'? 376 | return (std::is_same_v || ...); | ^~~~~~~~~ | is_same /usr/include/SFML/Window/Event.hpp:376:33: error: expected primary-expression before ',' token 376 | return (std::is_same_v || ...); | ^ /usr/include/SFML/Window/Event.hpp:376:37: error: expected primary-expression before '>' token 376 | return (std::is_same_v || ...); | ^ /usr/include/SFML/Window/Event.hpp:376:39: error: expected primary-expression before '||' token 376 | return (std::is_same_v || ...); | ^~ /usr/include/SFML/Window/Event.hpp:376:42: error: operand of fold expression has no unexpanded parameter packs 376 | return (std::is_same_v || ...); | ^~~ In file included from /usr/include/SFML/Window/Event.hpp:385: /usr/include/SFML/Window/Event.inl: In constructor 'sf::Event::Event(const TEventSubtype&)': /usr/include/SFML/Window/Event.inl:47:9: error: 'm_data' was not declared in this scope 47 | m_data = eventSubtype; | ^~~~~~ /usr/include/SFML/Window/Event.inl: In member function 'bool sf::Event::is() const': /usr/include/SFML/Window/Event.inl:57:21: error: 'holds_alternative' is not a member of 'std' 57 | return std::holds_alternative(m_data); | ^~~~~~~~~~~~~~~~~ /usr/include/SFML/Window/Event.inl:57:21: note: 'std::holds_alternative' is only available from C++17 onwards /usr/include/SFML/Window/Event.inl:57:52: error: expected primary-expression before '>' token 57 | return std::holds_alternative(m_data); | ^ /usr/include/SFML/Window/Event.inl:57:54: error: 'm_data' was not declared in this scope 57 | return std::holds_alternative(m_data); | ^~~~~~ /usr/include/SFML/Window/Event.inl: In member function 'const TEventSubtype* sf::Event::getIf() const': /usr/include/SFML/Window/Event.inl:67:21: error: 'get_if' is not a member of 'std' 67 | return std::get_if(&m_data); | ^~~~~~ /usr/include/SFML/Window/Event.inl:67:41: error: expected primary-expression before '>' token 67 | return std::get_if(&m_data); | ^ /usr/include/SFML/Window/Event.inl:67:44: error: 'm_data' was not declared in this scope 67 | return std::get_if(&m_data); | ^~~~~~ /usr/include/SFML/Window/Event.inl: In member function 'decltype(auto) sf::Event::visit(T&&) const': /usr/include/SFML/Window/Event.inl:75:17: error: 'visit' is not a member of 'std' 75 | return std::visit(std::forward(visitor), m_data); | ^~~~~ /usr/include/SFML/Window/Event.inl:75:17: note: 'std::visit' is only available from C++17 onwards /usr/include/SFML/Window/Event.inl:75:49: error: 'm_data' was not declared in this scope 75 | return std::visit(std::forward(visitor), m_data); | ^~~~~~ In file included from /usr/include/SFML/Window/Window.hpp:32, from /usr/include/SFML/Window.hpp:42: /usr/include/SFML/Window/WindowBase.hpp: At global scope: /usr/include/SFML/Window/WindowBase.hpp:226:24: error: 'optional' in namespace 'std' does not name a template type 226 | [[nodiscard]] std::optional pollEvent(); | ^~~~~~~~ /usr/include/SFML/Window/WindowBase.hpp:226:19: note: 'std::optional' is only available from C++17 onwards 226 | [[nodiscard]] std::optional pollEvent(); | ^~~ /usr/include/SFML/Window/WindowBase.hpp:252:24: error: 'optional' in namespace 'std' does not name a template type 252 | [[nodiscard]] std::optional waitEvent(Time timeout = Time::Zero); | ^~~~~~~~ /usr/include/SFML/Window/WindowBase.hpp:252:19: note: 'std::optional' is only available from C++17 onwards 252 | [[nodiscard]] std::optional waitEvent(Time timeout = Time::Zero); | ^~~ /usr/include/SFML/Window/WindowBase.hpp:387:36: error: 'optional' in namespace 'std' does not name a template type 387 | void setMinimumSize(const std::optional& minimumSize); | ^~~~~~~~ /usr/include/SFML/Window/WindowBase.hpp:387:31: note: 'std::optional' is only available from C++17 onwards 387 | void setMinimumSize(const std::optional& minimumSize); | ^~~ /usr/include/SFML/Window/WindowBase.hpp:387:44: error: expected ',' or '...' before '<' token 387 | void setMinimumSize(const std::optional& minimumSize); | ^ /usr/include/SFML/Window/WindowBase.hpp:397:36: error: 'optional' in namespace 'std' does not name a template type 397 | void setMaximumSize(const std::optional& maximumSize); | ^~~~~~~~ /usr/include/SFML/Window/WindowBase.hpp:397:31: note: 'std::optional' is only available from C++17 onwards 397 | void setMaximumSize(const std::optional& maximumSize); | ^~~ /usr/include/SFML/Window/WindowBase.hpp:397:44: error: expected ',' or '...' before '<' token 397 | void setMaximumSize(const std::optional& maximumSize); | ^ In file included from /usr/include/SFML/Window/WindowBase.hpp:617: /usr/include/SFML/Window/WindowBase.inl:47:41: error: expected constructor, destructor, or type conversion before ';' token 47 | OverloadSet(Ts...) -> OverloadSet; | ^ /usr/include/SFML/Window/WindowBase.inl: In member function 'void sf::WindowBase::handleEvents(Ts&& ...)': /usr/include/SFML/Window/WindowBase.inl:69:23: error: missing template arguments before 'overloadSet' 69 | priv::OverloadSet overloadSet{std::forward(handlers)..., [](const priv::DelayOverloadResolution&) { /* ignore */ }}; | ^~~~~~~~~~~ /usr/include/SFML/Window/WindowBase.inl:71:32: error: qualified-id in declaration before 'event' 71 | while (const std::optional event = pollEvent()) | ^~~~~ /usr/include/SFML/Window/WindowBase.inl:72:9: error: 'event' was not declared in this scope; did you mean 'Event'? 72 | event->visit(overloadSet); | ^~~~~ | Event /usr/include/SFML/Window/WindowBase.inl:72:22: error: 'overloadSet' was not declared in this scope 72 | event->visit(overloadSet); | ^~~~~~~~~~~ In file included from /usr/include/SFML/Graphics/Color.hpp:229, from /usr/include/SFML/Graphics/Shape.hpp:32, from /usr/include/SFML/Graphics/CircleShape.hpp:32, from /usr/include/SFML/Graphics.hpp:32, from bh.h:32: /usr/include/SFML/Graphics/Color.inl: In function 'constexpr sf::Color sf::operator+(Color, Color)': /usr/include/SFML/Graphics/Color.inl:77:16: error: variable 'clampedAdd' of non-literal type 'const sf::operator+(Color, Color)::' in 'constexpr' function only available with '-std=c++2b' or '-std=gnu++2b' 77 | const auto clampedAdd = [](std::uint8_t lhs, std::uint8_t rhs) | ^~~~~~~~~~ /usr/include/SFML/Graphics/Color.inl:77:30: note: 'sf::operator+(Color, Color)::' is not literal because: 77 | const auto clampedAdd = [](std::uint8_t lhs, std::uint8_t rhs) | ^ cc1plus: note: 'sf::operator+(Color, Color)::' is a closure type, which is only literal in C++17 and later /usr/include/SFML/Graphics/Color.inl: In function 'constexpr sf::Color sf::operator-(Color, Color)': /usr/include/SFML/Graphics/Color.inl:93:16: error: variable 'clampedSub' of non-literal type 'const sf::operator-(Color, Color)::' in 'constexpr' function only available with '-std=c++2b' or '-std=gnu++2b' 93 | const auto clampedSub = [](std::uint8_t lhs, std::uint8_t rhs) | ^~~~~~~~~~ /usr/include/SFML/Graphics/Color.inl:93:30: note: 'sf::operator-(Color, Color)::' is not literal because: 93 | const auto clampedSub = [](std::uint8_t lhs, std::uint8_t rhs) | ^ cc1plus: note: 'sf::operator-(Color, Color)::' is a closure type, which is only literal in C++17 and later /usr/include/SFML/Graphics/Color.inl: In function 'constexpr sf::Color sf::operator*(Color, Color)': /usr/include/SFML/Graphics/Color.inl:109:16: error: variable 'scaledMul' of non-literal type 'const sf::operator*(Color, Color)::' in 'constexpr' function only available with '-std=c++2b' or '-std=gnu++2b' 109 | const auto scaledMul = [](std::uint8_t lhs, std::uint8_t rhs) | ^~~~~~~~~ /usr/include/SFML/Graphics/Color.inl:109:29: note: 'sf::operator*(Color, Color)::' is not literal because: 109 | const auto scaledMul = [](std::uint8_t lhs, std::uint8_t rhs) | ^ cc1plus: note: 'sf::operator*(Color, Color)::' is a closure type, which is only literal in C++17 and later In file included from /usr/include/SFML/Graphics/Shape.hpp:35: /usr/include/SFML/Graphics/Rect.hpp: At global scope: /usr/include/SFML/Graphics/Rect.hpp:98:34: error: 'optional' in namespace 'std' does not name a template type 98 | [[nodiscard]] constexpr std::optional> findIntersection(const Rect& rectangle) const; | ^~~~~~~~ /usr/include/SFML/Graphics/Rect.hpp:98:29: note: 'std::optional' is only available from C++17 onwards 98 | [[nodiscard]] constexpr std::optional> findIntersection(const Rect& rectangle) const; | ^~~ In file included from /usr/include/SFML/Graphics/Rect.hpp:151: /usr/include/SFML/Graphics/Rect.inl:71:16: error: 'optional' in namespace 'std' does not name a template type 71 | constexpr std::optional> Rect::findIntersection(const Rect& rectangle) const | ^~~~~~~~ /usr/include/SFML/Graphics/Rect.inl:71:11: note: 'std::optional' is only available from C++17 onwards 71 | constexpr std::optional> Rect::findIntersection(const Rect& rectangle) const | ^~~ In file included from /usr/include/SFML/Graphics/Transform.hpp:352, from /usr/include/SFML/Graphics/RenderStates.hpp:35, from /usr/include/SFML/Graphics/Shape.hpp:36: /usr/include/SFML/Graphics/Transform.inl: In member function 'constexpr sf::FloatRect sf::Transform::transformRect(const sf::FloatRect&) const': /usr/include/SFML/Graphics/Transform.inl:101:11: error: invalid use of template-name 'std::array' without an argument list 101 | const std::array points = {transformPoint(rectangle.position), | ^~~ /usr/include/SFML/Graphics/Transform.inl:101:11: note: class template argument deduction is only available with '-std=c++17' or '-std=gnu++17' In file included from /usr/include/c++/14/bits/stl_algobase.h:64, from /usr/include/c++/14/string:51, from bh.h:27: /usr/include/c++/14/bits/stl_pair.h:99:12: note: 'template struct std::array' declared here 99 | struct array; | ^~~~~ /usr/include/SFML/Graphics/Transform.inl:107:21: error: 'points' was not declared in this scope; did you mean 'printf'? 107 | Vector2f pmin = points[0]; | ^~~~~~ | printf In file included from /usr/include/SFML/Graphics/Font.hpp:34, from /usr/include/SFML/Graphics.hpp:36: /usr/include/SFML/Graphics/Texture.hpp: At global scope: /usr/include/SFML/Graphics/Texture.hpp:114:33: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Texture.hpp:114:49: error: expected unqualified-id before '&' token 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^ /usr/include/SFML/Graphics/Texture.hpp:114:49: error: expected ')' before '&' token 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ~ ^ | ) /usr/include/SFML/Graphics/Texture.hpp:114:49: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Texture.hpp:114:49: error: expected ';' at end of member declaration 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^ | ; /usr/include/SFML/Graphics/Texture.hpp:114:51: error: 'filename' does not name a type 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^~~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:137:24: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Texture.hpp:137:40: error: expected unqualified-id before '&' token 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^ /usr/include/SFML/Graphics/Texture.hpp:137:40: error: expected ')' before '&' token 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ~ ^ | ) /usr/include/SFML/Graphics/Texture.hpp:137:40: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Texture.hpp:137:40: error: expected ';' at end of member declaration 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^ | ; /usr/include/SFML/Graphics/Texture.hpp:137:5: error: 'sf::Texture::Texture(...)' cannot be overloaded with 'sf::Texture::Texture(...)' 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:114:14: note: previous declaration 'sf::Texture::Texture(...)' 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:137:42: error: 'filename' does not name a type 137 | Texture(const std::filesystem::path& filename, bool sRgb, const IntRect& area); | ^~~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:304:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Texture.hpp:304:64: error: expected unqualified-id before '&' token 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^ /usr/include/SFML/Graphics/Texture.hpp:304:64: error: expected ')' before '&' token 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ~ ^ | ) /usr/include/SFML/Graphics/Texture.hpp:304:64: error: expected ';' at end of member declaration 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^ | ; /usr/include/SFML/Graphics/Texture.hpp:304:66: error: 'filename' does not name a type 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^~~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:304:119: error: expected unqualified-id before ')' token 304 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, bool sRgb = false, const IntRect& area = {}); | ^ /usr/include/SFML/Graphics/Font.hpp:103:30: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 103 | explicit Font(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Font.hpp:103:46: error: expected unqualified-id before '&' token 103 | explicit Font(const std::filesystem::path& filename); | ^ /usr/include/SFML/Graphics/Font.hpp:103:46: error: expected ')' before '&' token 103 | explicit Font(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Graphics/Font.hpp:103:46: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Font.hpp:103:46: error: expected ';' at end of member declaration 103 | explicit Font(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Graphics/Font.hpp:103:48: error: 'filename' does not name a type 103 | explicit Font(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/Graphics/Font.hpp:168:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Font.hpp:168:64: error: expected unqualified-id before '&' token 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^ /usr/include/SFML/Graphics/Font.hpp:168:64: error: expected ')' before '&' token 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Graphics/Font.hpp:168:64: error: expected ';' at end of member declaration 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Graphics/Font.hpp:168:66: error: 'filename' does not name a type 168 | [[nodiscard]] bool openFromFile(const std::filesystem::path& filename); | ^~~~~~~~ In file included from /usr/include/SFML/Graphics.hpp:38: /usr/include/SFML/Graphics/Image.hpp:103:31: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 103 | explicit Image(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Image.hpp:103:47: error: expected unqualified-id before '&' token 103 | explicit Image(const std::filesystem::path& filename); | ^ /usr/include/SFML/Graphics/Image.hpp:103:47: error: expected ')' before '&' token 103 | explicit Image(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Graphics/Image.hpp:103:47: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Image.hpp:103:47: error: expected ';' at end of member declaration 103 | explicit Image(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Graphics/Image.hpp:103:49: error: 'filename' does not name a type 103 | explicit Image(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/Graphics/Image.hpp:175:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Image.hpp:175:64: error: expected unqualified-id before '&' token 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^ /usr/include/SFML/Graphics/Image.hpp:175:64: error: expected ')' before '&' token 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ~ ^ | ) /usr/include/SFML/Graphics/Image.hpp:175:64: error: expected ';' at end of member declaration 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^ | ; /usr/include/SFML/Graphics/Image.hpp:175:66: error: 'filename' does not name a type 175 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename); | ^~~~~~~~ /usr/include/SFML/Graphics/Image.hpp:227:46: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Image.hpp:227:62: error: expected unqualified-id before '&' token 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^ /usr/include/SFML/Graphics/Image.hpp:227:62: error: expected ')' before '&' token 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ~ ^ | ) /usr/include/SFML/Graphics/Image.hpp:227:62: error: expected ';' at end of member declaration 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^ | ; /usr/include/SFML/Graphics/Image.hpp:227:64: error: 'filename' does not name a type 227 | [[nodiscard]] bool saveToFile(const std::filesystem::path& filename) const; | ^~~~~~~~ /usr/include/SFML/Graphics/Image.hpp:245:24: error: 'optional' in namespace 'std' does not name a template type 245 | [[nodiscard]] std::optional> saveToMemory(std::string_view format) const; | ^~~~~~~~ /usr/include/SFML/Graphics/Image.hpp:245:19: note: 'std::optional' is only available from C++17 onwards 245 | [[nodiscard]] std::optional> saveToMemory(std::string_view format) const; | ^~~ In file included from /usr/include/SFML/Graphics.hpp:46: /usr/include/SFML/Graphics/Shader.hpp:147:23: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 147 | Shader(const std::filesystem::path& filename, Type type); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:147:39: error: expected unqualified-id before '&' token 147 | Shader(const std::filesystem::path& filename, Type type); | ^ /usr/include/SFML/Graphics/Shader.hpp:147:39: error: expected ')' before '&' token 147 | Shader(const std::filesystem::path& filename, Type type); | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:147:39: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Shader.hpp:147:39: error: expected ';' at end of member declaration 147 | Shader(const std::filesystem::path& filename, Type type); | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:147:41: error: 'filename' does not name a type 147 | Shader(const std::filesystem::path& filename, Type type); | ^~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:168:23: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:168:39: error: expected unqualified-id before '&' token 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^ /usr/include/SFML/Graphics/Shader.hpp:168:39: error: expected ')' before '&' token 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:168:39: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Shader.hpp:168:39: error: expected ';' at end of member declaration 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:168:5: error: 'sf::Shader::Shader(...)' cannot be overloaded with 'sf::Shader::Shader(...)' 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^~~~~~ /usr/include/SFML/Graphics/Shader.hpp:147:5: note: previous declaration 'sf::Shader::Shader(...)' 147 | Shader(const std::filesystem::path& filename, Type type); | ^~~~~~ /usr/include/SFML/Graphics/Shader.hpp:168:41: error: 'vertexShaderFilename' does not name a type 168 | Shader(const std::filesystem::path& vertexShaderFilename, const std::filesystem::path& fragmentShaderFilename); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:190:23: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:190:39: error: expected unqualified-id before '&' token 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^ /usr/include/SFML/Graphics/Shader.hpp:190:39: error: expected ')' before '&' token 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:190:39: error: constructors may not be ref-qualified /usr/include/SFML/Graphics/Shader.hpp:190:39: error: expected ';' at end of member declaration 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:190:5: error: 'sf::Shader::Shader(...)' cannot be overloaded with 'sf::Shader::Shader(...)' 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^~~~~~ /usr/include/SFML/Graphics/Shader.hpp:147:5: note: previous declaration 'sf::Shader::Shader(...)' 147 | Shader(const std::filesystem::path& filename, Type type); | ^~~~~~ /usr/include/SFML/Graphics/Shader.hpp:190:41: error: 'vertexShaderFilename' does not name a type 190 | Shader(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:212:28: error: expected ')' before 'shader' 212 | Shader(std::string_view shader, Type type); | ~ ^~~~~~~ | ) /usr/include/SFML/Graphics/Shader.hpp:233:28: error: expected ')' before 'vertexShader' 233 | Shader(std::string_view vertexShader, std::string_view fragmentShader); | ~ ^~~~~~~~~~~~~ | ) /usr/include/SFML/Graphics/Shader.hpp:255:28: error: expected ')' before 'vertexShader' 255 | Shader(std::string_view vertexShader, std::string_view geometryShader, std::string_view fragmentShader); | ~ ^~~~~~~~~~~~~ | ) /usr/include/SFML/Graphics/Shader.hpp:339:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:339:64: error: expected unqualified-id before '&' token 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^ /usr/include/SFML/Graphics/Shader.hpp:339:64: error: expected ')' before '&' token 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:339:64: error: expected ';' at end of member declaration 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:339:66: error: 'filename' does not name a type 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:360:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:360:64: error: expected unqualified-id before '&' token 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^ /usr/include/SFML/Graphics/Shader.hpp:360:64: error: expected ')' before '&' token 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:360:64: error: expected ';' at end of member declaration 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:360:24: error: 'bool sf::Shader::loadFromFile(...) &' cannot be overloaded with 'bool sf::Shader::loadFromFile(...) &' 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:339:24: note: previous declaration 'bool sf::Shader::loadFromFile(...) &' 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:360:66: error: 'vertexShaderFilename' does not name a type 360 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:383:48: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'? 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~ | system /usr/include/SFML/Graphics/Shader.hpp:383:64: error: expected unqualified-id before '&' token 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^ /usr/include/SFML/Graphics/Shader.hpp:383:64: error: expected ')' before '&' token 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ~ ^ | ) /usr/include/SFML/Graphics/Shader.hpp:383:64: error: expected ';' at end of member declaration 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^ | ; /usr/include/SFML/Graphics/Shader.hpp:383:24: error: 'bool sf::Shader::loadFromFile(...) &' cannot be overloaded with 'bool sf::Shader::loadFromFile(...) &' 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:339:24: note: previous declaration 'bool sf::Shader::loadFromFile(...) &' 339 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& filename, Type type); | ^~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:383:66: error: 'vertexShaderFilename' does not name a type 383 | [[nodiscard]] bool loadFromFile(const std::filesystem::path& vertexShaderFilename, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:405:44: error: 'std::string_view' has not been declared 405 | [[nodiscard]] bool loadFromMemory(std::string_view shader, Type type); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:426:44: error: 'std::string_view' has not been declared 426 | [[nodiscard]] bool loadFromMemory(std::string_view vertexShader, std::string_view fragmentShader); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:426:75: error: 'std::string_view' has not been declared 426 | [[nodiscard]] bool loadFromMemory(std::string_view vertexShader, std::string_view fragmentShader); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:448:44: error: 'std::string_view' has not been declared 448 | [[nodiscard]] bool loadFromMemory(std::string_view vertexShader, | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:449:44: error: 'std::string_view' has not been declared 449 | std::string_view geometryShader, | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:450:44: error: 'std::string_view' has not been declared 450 | std::string_view fragmentShader); | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:861:37: error: 'std::string_view' has not been declared 861 | [[nodiscard]] bool compile(std::string_view vertexShaderCode, | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:862:37: error: 'std::string_view' has not been declared 862 | std::string_view geometryShaderCode, | ^~~~~~~~~~~ /usr/include/SFML/Graphics/Shader.hpp:863:37: error: 'std::string_view' has not been declared 863 | std::string_view fragmentShaderCode); | ^~~~~~~~~~~ In file included from course.cpp:34: winsys.h: In member function 'bool CWinsys::PollEvent(sf::Event&)': winsys.h:65:58: error: 'class sf::RenderWindow' has no member named 'pollEvent' 65 | bool PollEvent(sf::Event& event) { return window.pollEvent(event); } | ^~~~~~~~~ course.cpp: In member function 'bool CCourse::LoadElevMap()': course.cpp:319:19: error: call of overloaded 'Image()' is ambiguous 319 | sf::Image img; | ^~~ /usr/include/SFML/Graphics/Image.hpp:103:14: note: candidate: 'sf::Image::Image(...)' 103 | explicit Image(const std::filesystem::path& filename); | ^~~~~ /usr/include/SFML/Graphics/Image.hpp:65:5: note: candidate: 'sf::Image::Image()' 65 | Image() = default; | ^~~~~ course.cpp: In member function 'void CCourse::LoadItemList()': course.cpp:378:63: error: use of deleted function 'TTexture::TTexture()' 378 | ObjTypes[type].texture = new TTexture(); | ^ In file included from course.cpp:24: textures.h:64:7: note: 'TTexture::TTexture()' is implicitly deleted because the default definition would be ill-formed: 64 | class TTexture { | ^~~~~~~~ textures.h: At global scope: textures.h:64:7: error: call of overloaded 'Texture()' is ambiguous /usr/include/SFML/Graphics/Texture.hpp:114:14: note: candidate: 'sf::Texture::Texture(...)' 114 | explicit Texture(const std::filesystem::path& filename, bool sRgb = false); | ^~~~~~~ /usr/include/SFML/Graphics/Texture.hpp:66:5: note: candidate: 'sf::Texture::Texture()' 66 | Texture(); | ^~~~~~~ course.cpp: In member function 'void CCourse::LoadItemList()': course.cpp:378:63: note: use '-fdiagnostics-all-candidates' to display considered candidates 378 | ObjTypes[type].texture = new TTexture(); | ^ course.cpp: In member function 'bool CCourse::LoadAndConvertObjectMap()': course.cpp:431:19: error: call of overloaded 'Image()' is ambiguous 431 | sf::Image treeImg; | ^~~~~~~ /usr/include/SFML/Graphics/Image.hpp:103:14: note: candidate: 'sf::Image::Image(...)' 103 | explicit Image(const std::filesystem::path& filename); | ^~~~~ /usr/include/SFML/Graphics/Image.hpp:65:5: note: candidate: 'sf::Image::Image()' 65 | Image() = default; | ^~~~~ course.cpp:457:79: error: use of deleted function 'TTexture::TTexture()' 457 | ObjTypes[type].texture = new TTexture(); | ^ course.cpp:457:79: note: use '-fdiagnostics-all-candidates' to display considered candidates course.cpp: In member function 'bool CCourse::LoadTerrainMap()': course.cpp:600:19: error: call of overloaded 'Image()' is ambiguous 600 | sf::Image terrImage; | ^~~~~~~~~ /usr/include/SFML/Graphics/Image.hpp:103:14: note: candidate: 'sf::Image::Image(...)' 103 | explicit Image(const std::filesystem::path& filename); | ^~~~~ /usr/include/SFML/Graphics/Image.hpp:65:5: note: candidate: 'sf::Image::Image()' 65 | Image() = default; | ^~~~~ course.cpp:621:71: error: use of deleted function 'TTexture::TTexture()' 621 | TerrList[terr].texture = new TTexture(); | ^ course.cpp:621:71: note: use '-fdiagnostics-all-candidates' to display considered candidates course.cpp: In member function 'bool CCourseList::Load(const std::string&)': course.cpp:654:59: error: use of deleted function 'TTexture::TTexture()' 654 | courses[i].preview = new TTexture(); | ^ course.cpp:654:59: note: use '-fdiagnostics-all-candidates' to display considered candidates make[2]: *** [Makefile:566: course.o] Error 1 make[2]: Leaving directory '/usr/src/RPM/BUILD/etr-0.8.4/src' make[1]: *** [Makefile:383: all-recursive] Error 1 make: *** [Makefile:324: all] Error 2 error: Bad exit status from /usr/src/tmp/rpm-tmp.73668 (%build) RPM build errors: Bad exit status from /usr/src/tmp/rpm-tmp.73668 (%build) Command exited with non-zero status 1 30.58user 6.14system 0:28.29elapsed 129%CPU (0avgtext+0avgdata 175736maxresident)k 0inputs+0outputs (0major+695820minor)pagefaults 0swaps hsh-rebuild: rebuild of `extreme-tuxracer-0.8.4-alt1.src.rpm' failed. Command exited with non-zero status 1 6.82user 5.54system 1:14.21elapsed 16%CPU (0avgtext+0avgdata 137076maxresident)k 0inputs+0outputs (0major+268494minor)pagefaults 0swaps