# src : https://buildlogs.pld-linux.org/pld/th/x86_64/FAIL/qalculate-gtk,4496deba-e73c-43b0-9967-5b37b2c80fbf.bz2 # date : 2022/10/13 15:38:57 request from: mrozowik checking if we should skip the build started at: Thu Oct 13 15:37:46 2022 killing old processes on a builder sending signal 9 to pid -1 cleaning up /tmp fetching https://srcbuilder.pld-linux.org/th//srpms/4496deba-e73c-43b0-9967-5b37b2c80fbf/qalculate-gtk-3.1.0-1.src.rpm fetched 2850384 bytes, 5904.8 K/s installing srpm: qalculate-gtk-3.1.0-1.src.rpm + install -d /tmp/B.yzijhj1y/BUILD /tmp/B.yzijhj1y/RPMS + LC_ALL=en_US.UTF-8 + rpm -qp --changelog qalculate-gtk-3.1.0-1.src.rpm * Thu Oct 13 2022 PLD Linux Team - For complete changelog see: http://git.pld-linux.org/?p=packages/qalculate-gtk.git;a=log;h=master * Tue Apr 16 2019 Adam Gołębiowski 34ee069 - updated to 3.1.0 * Sat Feb 16 2019 Jan Rękorajski 7976c2f - up to 2.9.0 * Sat Oct 24 2015 Elan Ruusamäe ceb4da7 - seems to work without gnuplot, make it optional * Sat Oct 24 2015 Elan Ruusamäe 1089392 - builds with rebuilt libqalculate * Sat Oct 24 2015 Elan Ruusamäe 0a31514 - add qalculate-wformat-security.patch from fedora * Sat Oct 24 2015 Elan Ruusamäe 2475566 - update desktop: Update to latest freedesktop spec. * Sat Oct 24 2015 Elan Ruusamäe b260534 - up to 0.9.7, does not compile * Tue Jun 19 2007 Robert Tomasik debb99c - up to 0.9.5 * Tue Feb 13 2007 Elan Ruusamäe 531301b - updated to 0.5.1 * Mon Feb 12 2007 Jan Rękorajski 7d9a48a - converted to UTF-8 * Tue Nov 07 2006 Elan Ruusamäe a106f6e - simplified post, run scrollkeeper-update in postun too * Sun Jun 11 2006 Jakub Bogusz 11d717a - BR: automake,pkgconfig; libqalculate deps changed to >= (as in configure) * Mon Jun 05 2006 Adam Gołębiowski 779b787 - updated to 0.4.1 * Sat Jun 03 2006 Adam Gołębiowski 23ccdca - new (qalculate-kde.spec yet to be done) + rpm -Uhv --nodeps --define '_topdir /tmp/B.yzijhj1y' --define '_specdir %{_topdir}' --define '_sourcedir %{_specdir}' --define '_rpmdir %{_topdir}/RPMS' --define '_builddir %{_topdir}/BUILD' qalculate-gtk-3.1.0-1.src.rpm Updating / installing... qalculate-gtk-3.1.0-1 ######################################## + rm -f qalculate-gtk-3.1.0-1.src.rpm + install -m 700 -d /tmp/B.yzijhj1y/BUILD/tmp + TMPDIR=/tmp/B.yzijhj1y/BUILD/tmp + exec nice -n 0 rpmbuild -bp --short-circuit --nodeps --define '_topdir /tmp/B.yzijhj1y' --define '_specdir %{_topdir}' --define '_sourcedir %{_specdir}' --define '_rpmdir %{_topdir}/RPMS' --define '_builddir %{_topdir}/BUILD' --target x86_64-pld-linux --define 'prep exit 0' /tmp/B.yzijhj1y/qalculate-gtk.spec warning: Could not canonicalize hostname: ymir Building target platforms: x86_64-pld-linux Building for target x86_64-pld-linux RPM build warnings: Could not canonicalize hostname: ymir checking BuildConflict-ing packages rpm: warning: Could not canonicalize hostname: ymir rpm: error: Failed build dependencies: rpm: libgnome-devel >= 2.0.0 is needed by qalculate-gtk-3.1.0-1.x86_64 rpm: libgnomeui-devel >= 2.0.0 is needed by qalculate-gtk-3.1.0-1.x86_64 rpm: Building target platforms: x86_64-pld-linux rpm: Building for target x86_64-pld-linux rpm: rpm: RPM build warnings: rpm: Could not canonicalize hostname: ymir no BuildConflicts found checking BR rpm: warning: Could not canonicalize hostname: ymir rpm: error: Failed build dependencies: rpm: libgnome-devel >= 2.0.0 is needed by qalculate-gtk-3.1.0-1.x86_64 rpm: libgnomeui-devel >= 2.0.0 is needed by qalculate-gtk-3.1.0-1.x86_64 rpm: Building target platforms: x86_64-pld-linux rpm: Building for target x86_64-pld-linux rpm: rpm: RPM build warnings: rpm: Could not canonicalize hostname: ymir updating poldek cache... ready is up to date th is up to date th is up to date th-ready is up to date th-ready is up to date th-test is up to date Retrieving th-test::packages.ndir.diff.toc.gz..............................................done Retrieving diff::packages.ndir.2022.10.13-11.01.02.gz......................................done Loading [pndir]th-test... Applying packages.ndir.2022.10.13-11.01.02.gz... Retrieving diff::packages.ndir.2022.10.13-11.18.01.gz......................................done Applying packages.ndir.2022.10.13-11.18.01.gz... Retrieving diff::packages.ndir.2022.10.13-11.20.02.gz......................................done Applying packages.ndir.2022.10.13-11.20.02.gz... Retrieving diff::packages.ndir.2022.10.13-11.22.02.gz......................................done Applying packages.ndir.2022.10.13-11.22.02.gz... Retrieving diff::packages.ndir.2022.10.13-11.23.02.gz......................................done Applying packages.ndir.2022.10.13-11.23.02.gz... Retrieving diff::packages.ndir.2022.10.13-11.24.01.gz......................................done Applying packages.ndir.2022.10.13-11.24.01.gz... Retrieving diff::packages.ndir.2022.10.13-12.17.02.gz......................................done Applying packages.ndir.2022.10.13-12.17.02.gz... Retrieving diff::packages.ndir.2022.10.13-12.19.02.gz......................................done Applying packages.ndir.2022.10.13-12.19.02.gz... Retrieving diff::packages.ndir.2022.10.13-12.36.01.gz......................................done Applying packages.ndir.2022.10.13-12.36.01.gz... Retrieving diff::packages.ndir.2022.10.13-12.42.01.gz......................................done Applying packages.ndir.2022.10.13-12.42.01.gz... Retrieving diff::packages.ndir.2022.10.13-12.58.01.gz......................................done Applying packages.ndir.2022.10.13-12.58.01.gz... Writing /root/.cache/poldek/[...]/packages.ndir.gz... checking conflicting packages in BRed packages poldek: Loading [pndir]ready... poldek: Loading [pndir]th-test... poldek: Loading [pndir]th-test... poldek: Loading [pndir]th-ready... poldek: Loading [pndir]th-ready... poldek: Loading [pndir]th... poldek: Loading [pndir]th... poldek: 34699 packages read poldek: Removed 4579 duplicate packages from available set poldek: Processing dependencies... poldek: libgnome-devel-2.32.1-6.x86_64 marks libgnome-libs-2.32.1-6.x86_64 (cap libgnome-libs = 2.32.1-6) poldek: libgnomeui-devel-2.24.5-5.x86_64 marks libbonoboui-devel-2.24.5-4.x86_64 (cap libbonoboui-devel >= 2.24.0) poldek: libbonoboui-devel-2.24.5-4.x86_64 marks libbonoboui-2.24.5-4.x86_64 (cap libbonoboui = 2.24.5-4) poldek: libgnomeui-devel-2.24.5-5.x86_64 marks libgnomeui-2.24.5-5.x86_64 (cap libgnomeui = 2.24.5-5) poldek: There are 6 packages to install (4 marked by dependencies): poldek: A libbonoboui-2.24.5-4.x86_64 libbonoboui-devel-2.24.5-4.x86_64 poldek: A libgnome-devel-2.32.1-6.x86_64 libgnome-libs-2.32.1-6.x86_64 poldek: A libgnomeui-2.24.5-5.x86_64 libgnomeui-devel-2.24.5-5.x86_64 poldek: This operation will use 5.3MB of disk space. poldek: Need to get 1.2MB of archives (1.2MB to download). poldek: poldek: Retrieving [1/6] th::libgnome-libs-2.32.1-6.x86_64.rpm.....................................done poldek: Retrieving [2/6] th::libbonoboui-2.24.5-4.x86_64.rpm.......................................done poldek: Retrieving [3/6] th::libgnome-devel-2.32.1-6.x86_64.rpm....................................done poldek: Retrieving [4/6] th::libbonoboui-devel-2.24.5-4.x86_64.rpm.................................done poldek: Retrieving [5/6] th::libgnomeui-2.24.5-5.x86_64.rpm........................................done poldek: Retrieving [6/6] th::libgnomeui-devel-2.24.5-5.x86_64.rpm..................................done poldek: libgnome-libs-2.32.1-6.x86_64.rpm: digests OK poldek: libbonoboui-2.24.5-4.x86_64.rpm: digests OK poldek: libgnome-devel-2.32.1-6.x86_64.rpm: digests OK poldek: libbonoboui-devel-2.24.5-4.x86_64.rpm: digests OK poldek: libgnomeui-2.24.5-5.x86_64.rpm: digests OK poldek: libgnomeui-devel-2.24.5-5.x86_64.rpm: digests OK poldek: Executing pm-command.sh --upgrade -vh --test --root / --define _check_dirname_deps 0... poldek: warning: /root/.cache/poldek/ftp_ep09.pld-linux.org.dists.th.PLD.x86.64.RPMS/libgnome-libs-2.32.1-6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID e4f1bc2d: NOKEY poldek: Verifying... ######################################## poldek: Preparing... ######################################## no conflicts found checking BR rpm: warning: Could not canonicalize hostname: ymir rpm: error: Failed build dependencies: rpm: libgnome-devel >= 2.0.0 is needed by qalculate-gtk-3.1.0-1.x86_64 rpm: libgnomeui-devel >= 2.0.0 is needed by qalculate-gtk-3.1.0-1.x86_64 rpm: Building target platforms: x86_64-pld-linux rpm: Building for target x86_64-pld-linux rpm: rpm: RPM build warnings: rpm: Could not canonicalize hostname: ymir installing BR: libgnome\-devel libgnomeui\-devel + poldek --noask --caplookup -Q -v '--ignore=hhvm-*' '--ignore=php4-*' '--ignore=php52-*' '--ignore=php54-*' '--ignore=php55-*' '--ignore=php56-*' '--ignore=php70-*' '--ignore=php71-*' '--ignore=php72-*' '--ignore=php73-*' '--ignore=php74-*' '--ignore=php80-*' '--ignore=php81-*' '--ignore=php82-*' --upgrade libgnome-devel libgnomeui-devel Loading [pndir]ready... Loading [pndir]th-test... Loading [pndir]th-test... Loading [pndir]th-ready... Loading [pndir]th-ready... Loading [pndir]th... Loading [pndir]th... 34699 packages read Removed 4579 duplicate packages from available set Processing dependencies... libgnome-devel-2.32.1-6.x86_64 marks libgnome-libs-2.32.1-6.x86_64 (cap libgnome-libs = 2.32.1-6) libgnomeui-devel-2.24.5-5.x86_64 marks libbonoboui-devel-2.24.5-4.x86_64 (cap libbonoboui-devel >= 2.24.0) libbonoboui-devel-2.24.5-4.x86_64 marks libbonoboui-2.24.5-4.x86_64 (cap libbonoboui = 2.24.5-4) libgnomeui-devel-2.24.5-5.x86_64 marks libgnomeui-2.24.5-5.x86_64 (cap libgnomeui = 2.24.5-5) There are 6 packages to install (4 marked by dependencies): A libbonoboui-2.24.5-4.x86_64 libbonoboui-devel-2.24.5-4.x86_64 A libgnome-devel-2.32.1-6.x86_64 libgnome-libs-2.32.1-6.x86_64 A libgnomeui-2.24.5-5.x86_64 libgnomeui-devel-2.24.5-5.x86_64 This operation will use 5.3MB of disk space. libgnome-devel-2.32.1-6.x86_64.rpm: digests OK libgnomeui-devel-2.24.5-5.x86_64.rpm: digests OK libgnome-libs-2.32.1-6.x86_64.rpm: digests OK libbonoboui-devel-2.24.5-4.x86_64.rpm: digests OK libbonoboui-2.24.5-4.x86_64.rpm: digests OK libgnomeui-2.24.5-5.x86_64.rpm: digests OK Need to get 1.2MB of archives. libgnome-libs-2.32.1-6.x86_64.rpm: digests OK libbonoboui-2.24.5-4.x86_64.rpm: digests OK libgnome-devel-2.32.1-6.x86_64.rpm: digests OK libbonoboui-devel-2.24.5-4.x86_64.rpm: digests OK libgnomeui-2.24.5-5.x86_64.rpm: digests OK libgnomeui-devel-2.24.5-5.x86_64.rpm: digests OK Executing pm-command.sh --upgrade -vh --root / --define _check_dirname_deps 0... warning: /root/.cache/poldek/ftp_ep09.pld-linux.org.dists.th.PLD.x86.64.RPMS/libgnome-libs-2.32.1-6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID e4f1bc2d: NOKEY Verifying... ######################################## Preparing... ######################################## Updating / installing... libgnome-libs-2.32.1-6 ######################################## libbonoboui-2.24.5-4 ######################################## libgnome-devel-2.32.1-6 ######################################## libbonoboui-devel-2.24.5-4 ######################################## libgnomeui-2.24.5-5 ######################################## libgnomeui-devel-2.24.5-5 ######################################## building RPM using: set -ex; : build-id: 4496deba-e73c-43b0-9967-5b37b2c80fbf; TMPDIR=/tmp/B.yzijhj1y/BUILD/tmp exec nice -n 0 rpmbuild -bb --define '__jobs 28' --define '_smp_mflags -j28' --define '_make_opts -Otarget' --define '_pld_builder 1' --define '_topdir /tmp/B.yzijhj1y' --define '_specdir %{_topdir}' --define '_sourcedir %{_specdir}' --define '_rpmdir %{_topdir}/RPMS' --define '_builddir %{_topdir}/BUILD' --target x86_64-pld-linux /tmp/B.yzijhj1y/qalculate-gtk.spec + : build-id: 4496deba-e73c-43b0-9967-5b37b2c80fbf + TMPDIR=/tmp/B.yzijhj1y/BUILD/tmp + exec nice -n 0 rpmbuild -bb --define '__jobs 28' --define '_smp_mflags -j28' --define '_make_opts -Otarget' --define '_pld_builder 1' --define '_topdir /tmp/B.yzijhj1y' --define '_specdir %{_topdir}' --define '_sourcedir %{_specdir}' --define '_rpmdir %{_topdir}/RPMS' --define '_builddir %{_topdir}/BUILD' --target x86_64-pld-linux /tmp/B.yzijhj1y/qalculate-gtk.spec warning: Could not canonicalize hostname: ymir Building target platforms: x86_64-pld-linux Building for target x86_64-pld-linux Executing(%prep): /bin/sh -e /tmp/B.yzijhj1y/BUILD/tmp/rpm-tmp.NXmD4P + umask 022 + cd /tmp/B.yzijhj1y/BUILD + cd /tmp/B.yzijhj1y/BUILD + rm -rf qalculate-gtk-3.1.0 + /bin/gzip -dc /tmp/B.yzijhj1y/qalculate-gtk-3.1.0.tar.gz + /bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd qalculate-gtk-3.1.0 + /bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 + jobs -p + exit 0 Executing(%build): /bin/sh -e /tmp/B.yzijhj1y/BUILD/tmp/rpm-tmp.40BFcj TMP=/home/users/builder/tmp HOME=/home/users/builder PATH=/home/users/builder/GNUstep/Tools:/bin:/usr/bin:/usr/local/bin:/home/users/builder/bin TMPDIR=/tmp/B.yzijhj1y/BUILD/tmp + umask 022 + cd /tmp/B.yzijhj1y/BUILD + cd qalculate-gtk-3.1.0 + ./configure 'LDFLAGS=-Wl,--as-needed -Wl,--no-copy-dt-needed-entries -Wl,-z,relro -Wl,-z,combreloc ' 'CFLAGS=-O2 -fwrapv -pipe -Wformat -Werror=format-security -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -march=x86-64 -mtune=generic -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 ' 'CXXFLAGS=-O2 -fwrapv -pipe -Wformat -Werror=format-security -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -march=x86-64 -mtune=generic -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 ' 'FFLAGS=-O2 -fwrapv -pipe -Wformat -Werror=format-security -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -march=x86-64 -mtune=generic -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 ' 'FCFLAGS=-O2 -fwrapv -pipe -Wformat -Werror=format-security -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -march=x86-64 -mtune=generic -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 ' 'CPPFLAGS=' 'CC=x86_64-pld-linux-gcc' 'CXX=x86_64-pld-linux-g++' '--host=x86_64-pld-linux' '--build=x86_64-pld-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/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--x-libraries=/usr/lib64' checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether to enable maintainer-specific portions of Makefiles... no checking whether make supports the include directive... yes (GNU style) checking for x86_64-pld-linux-gcc... x86_64-pld-linux-gcc 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 we are using the GNU C compiler... yes checking whether x86_64-pld-linux-gcc accepts -g... yes checking for x86_64-pld-linux-gcc option to accept ISO C89... none needed checking whether x86_64-pld-linux-gcc understands -c and -o together... yes checking dependency style of x86_64-pld-linux-gcc... gcc3 checking for library containing strerror... none required checking for x86_64-pld-linux-gcc... (cached) x86_64-pld-linux-gcc checking whether we are using the GNU C compiler... (cached) yes checking whether x86_64-pld-linux-gcc accepts -g... (cached) yes checking for x86_64-pld-linux-gcc option to accept ISO C89... (cached) none needed checking whether x86_64-pld-linux-gcc understands -c and -o together... (cached) yes checking dependency style of x86_64-pld-linux-gcc... (cached) gcc3 checking whether we are using the GNU C++ compiler... yes checking whether x86_64-pld-linux-g++ accepts -g... yes checking dependency style of x86_64-pld-linux-g++... gcc3 checking for x86_64-pld-linux-gcc... (cached) x86_64-pld-linux-gcc checking whether we are using the GNU C compiler... (cached) yes checking whether x86_64-pld-linux-gcc accepts -g... (cached) yes checking for x86_64-pld-linux-gcc option to accept ISO C89... (cached) none needed checking whether x86_64-pld-linux-gcc understands -c and -o together... (cached) yes checking dependency style of x86_64-pld-linux-gcc... (cached) gcc3 checking whether ln -s works... yes checking how to run the C preprocessor... x86_64-pld-linux-gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking whether NLS is requested... yes checking for intltool-update... /usr/bin/intltool-update checking for intltool-merge... /usr/bin/intltool-merge checking for intltool-extract... /usr/bin/intltool-extract checking for xgettext... /usr/bin/xgettext checking for msgmerge... /usr/bin/msgmerge checking for msgfmt... /usr/bin/msgfmt checking for gmsgfmt... /usr/bin/msgfmt checking for perl... /usr/bin/perl checking for perl >= 5.8.1... 5.36.0 checking for XML::Parser... ok checking build system type... x86_64-pld-linux-gnu checking host system type... x86_64-pld-linux-gnu checking how to print strings... print -r checking for a sed that does not truncate output... /bin/sed checking for fgrep... /bin/grep -F checking for ld used by x86_64-pld-linux-gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking the maximum length of command line arguments... 1572864 checking how to convert x86_64-pld-linux-gnu file names to x86_64-pld-linux-gnu format... func_convert_file_noop checking how to convert x86_64-pld-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for x86_64-pld-linux-objdump... no checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for x86_64-pld-linux-dlltool... no checking for dlltool... no checking how to associate runtime and link libraries... print -r -- checking for x86_64-pld-linux-ar... no checking for ar... ar checking for archiver @FILE support... @ checking for x86_64-pld-linux-strip... no checking for strip... strip checking for x86_64-pld-linux-ranlib... no checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from x86_64-pld-linux-gcc object... ok checking for sysroot... no checking for a working dd... /bin/dd checking how to truncate binary pipes... /bin/dd bs=4096 count=1 checking for x86_64-pld-linux-mt... no checking for mt... no checking if : is a manifest tool... no checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if x86_64-pld-linux-gcc supports -fno-rtti -fno-exceptions... no checking for x86_64-pld-linux-gcc option to produce PIC... -fPIC -DPIC checking if x86_64-pld-linux-gcc PIC flag -fPIC -DPIC works... yes checking if x86_64-pld-linux-gcc static flag -static works... yes checking if x86_64-pld-linux-gcc supports -c -o file.o... yes checking if x86_64-pld-linux-gcc supports -c -o file.o... (cached) yes checking whether the x86_64-pld-linux-gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking how to run the C++ preprocessor... x86_64-pld-linux-g++ -E checking for ld used by x86_64-pld-linux-g++... /usr/bin/ld -m elf_x86_64 checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes checking whether the x86_64-pld-linux-g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking for x86_64-pld-linux-g++ option to produce PIC... -fPIC -DPIC checking if x86_64-pld-linux-g++ PIC flag -fPIC -DPIC works... yes checking if x86_64-pld-linux-g++ static flag -static works... yes checking if x86_64-pld-linux-g++ supports -c -o file.o... yes checking if x86_64-pld-linux-g++ supports -c -o file.o... (cached) yes checking whether the x86_64-pld-linux-g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking dynamic linker characteristics... (cached) GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking for pthread_create in -lpthread... yes checking unordered_map usability... yes checking unordered_map presence... yes checking for unordered_map... yes checking for x86_64-pld-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 GLIB... yes checking for GTK... yes checking for QALCULATE... yes checking locale.h usability... yes checking locale.h presence... yes checking for locale.h... yes checking for LC_MESSAGES... yes checking for CFPreferencesCopyAppValue... no checking for CFLocaleCopyCurrent... no checking libintl.h usability... yes checking libintl.h presence... yes checking for libintl.h... yes checking for ngettext in libc... yes checking for dgettext in libc... yes checking for bind_textdomain_codeset... yes checking for msgfmt... (cached) /usr/bin/msgfmt checking for dcgettext... yes checking if msgfmt accepts -c... yes checking for gmsgfmt... (cached) /usr/bin/msgfmt checking for xgettext... (cached) /usr/bin/xgettext checking for catalogs to be installed... nl sv checking locale directory... "/usr/share/locale" checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating data/Makefile config.status: creating doc/Makefile config.status: creating src/Makefile config.status: creating po/Makefile.in config.status: creating config.h config.status: executing depfiles commands config.status: executing libtool commands config.status: executing default-1 commands config.status: executing po/stamp-it commands + /usr/bin/make -Otarget -j28 /usr/bin/make all-recursive Making all in data make[2]: Entering directory '/tmp/B.yzijhj1y/BUILD/qalculate-gtk-3.1.0/data' LC_ALL=C /usr/bin/intltool-merge -d -u -c ../po/.intltool-merge-cache ../po qalculate-gtk.desktop.in qalculate-gtk.desktop Generating and caching the translation database Merging translations into qalculate-gtk.desktop. make[2]: Leaving directory '/tmp/B.yzijhj1y/BUILD/qalculate-gtk-3.1.0/data' make[2]: Entering directory '/tmp/B.yzijhj1y/BUILD/qalculate-gtk-3.1.0/data' LC_ALL=C /usr/bin/intltool-merge -x -u -c ../po/.intltool-merge-cache ../po qalculate-gtk.appdata.xml.in qalculate-gtk.appdata.xml Generating and caching the translation database Merging translations into qalculate-gtk.appdata.xml. CREATED qalculate-gtk.appdata.xml make[2]: Leaving directory '/tmp/B.yzijhj1y/BUILD/qalculate-gtk-3.1.0/data' Making all in src make[2]: Entering directory '/tmp/B.yzijhj1y/BUILD/qalculate-gtk-3.1.0/src' x86_64-pld-linux-gcc -DHAVE_CONFIG_H -I. -I.. -DPACKAGE_DATA_DIR=\""/usr/share"\" -DPACKAGE_DOC_DIR=\""/usr/share/doc/qalculate-gtk"\" -pthread -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libxml2 -O2 -fwrapv -pipe -Wformat -Werror=format-security -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -march=x86-64 -mtune=generic -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wall -MT ui.o -MD -MP -MF .deps/ui.Tpo -c -o ui.o ui.c mv -f .deps/ui.Tpo .deps/ui.Po make[2]: Leaving directory '/tmp/B.yzijhj1y/BUILD/qalculate-gtk-3.1.0/src' make[2]: Entering directory '/tmp/B.yzijhj1y/BUILD/qalculate-gtk-3.1.0/src' x86_64-pld-linux-gcc -DHAVE_CONFIG_H -I. -I.. -DPACKAGE_DATA_DIR=\""/usr/share"\" -DPACKAGE_DOC_DIR=\""/usr/share/doc/qalculate-gtk"\" -pthread -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libxml2 -O2 -fwrapv -pipe -Wformat -Werror=format-security -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -march=x86-64 -mtune=generic -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wall -MT flags.o -MD -MP -MF .deps/flags.Tpo -c -o flags.o flags.c mv -f .deps/flags.Tpo .deps/flags.Po make[2]: Leaving directory '/tmp/B.yzijhj1y/BUILD/qalculate-gtk-3.1.0/src' make[2]: Entering directory '/tmp/B.yzijhj1y/BUILD/qalculate-gtk-3.1.0/src' x86_64-pld-linux-g++ -DHAVE_CONFIG_H -I. -I.. -DPACKAGE_DATA_DIR=\""/usr/share"\" -DPACKAGE_DOC_DIR=\""/usr/share/doc/qalculate-gtk"\" -pthread -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libxml2 -O2 -fwrapv -pipe -Wformat -Werror=format-security -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -march=x86-64 -mtune=generic -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.cc In file included from main.cc:25: callbacks.h:57:40: error: macro "DECLARE_BUILTIN_FUNCTION" requires 2 arguments, but only 1 given 57 | DECLARE_BUILTIN_FUNCTION(AnswerFunction) | ^ In file included from /usr/include/libqalculate/qalculate.h:26, from main.h:33, from callbacks.h:27: /usr/include/libqalculate/BuiltinFunctions.h:39: note: macro "DECLARE_BUILTIN_FUNCTION" defined here 39 | #define DECLARE_BUILTIN_FUNCTION(x, i) class x : public MathFunction { \ | callbacks.h:58:44: error: macro "DECLARE_BUILTIN_FUNCTION" requires 2 arguments, but only 1 given 58 | DECLARE_BUILTIN_FUNCTION(ExpressionFunction) | ^ /usr/include/libqalculate/BuiltinFunctions.h:39: note: macro "DECLARE_BUILTIN_FUNCTION" defined here 39 | #define DECLARE_BUILTIN_FUNCTION(x, i) class x : public MathFunction { \ | callbacks.h:35:9: error: 'string' does not name a type; did you mean 'GString'? 35 | string name; | ^~~~~~ | GString callbacks.h:57:1: error: 'DECLARE_BUILTIN_FUNCTION' does not name a type 57 | DECLARE_BUILTIN_FUNCTION(AnswerFunction) | ^~~~~~~~~~~~~~~~~~~~~~~~ callbacks.h:75:21: error: 'string' was not declared in this scope 75 | bool string_is_less(string str1, string str2); | ^~~~~~ callbacks.h:75:21: note: suggested alternatives: In file included from /usr/include/c++/12.2.0/string:39, from /usr/include/libqalculate/includes.h:18, from /usr/include/libqalculate/qalculate.h:15: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.h:75:34: error: 'string' was not declared in this scope 75 | bool string_is_less(string str1, string str2); | ^~~~~~ callbacks.h:75:34: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.h:75:45: error: expression list treated as compound expression in initializer [-fpermissive] 75 | bool string_is_less(string str1, string str2); | ^ callbacks.h:126:180: error: 'string' has not been declared 126 | void execute_expression(bool force = true, bool do_mathoperation = false, MathOperation op = OPERATION_ADD, MathFunction *f = NULL, bool do_stack = false, size_t stack_index = 0, string execute_str = string(), string str = string(), bool check_exrates = true); | ^~~~~~ callbacks.h:126:201: error: 'string' was not declared in this scope 126 | void execute_expression(bool force = true, bool do_mathoperation = false, MathOperation op = OPERATION_ADD, MathFunction *f = NULL, bool do_stack = false, size_t stack_index = 0, string execute_str = string(), string str = string(), bool check_exrates = true); | ^~~~~~ callbacks.h:126:201: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.h:126:211: error: 'string' has not been declared 126 | void execute_expression(bool force = true, bool do_mathoperation = false, MathOperation op = OPERATION_ADD, MathFunction *f = NULL, bool do_stack = false, size_t stack_index = 0, string execute_str = string(), string str = string(), bool check_exrates = true); | ^~~~~~ callbacks.h:126:224: error: 'string' was not declared in this scope 126 | void execute_expression(bool force = true, bool do_mathoperation = false, MathOperation op = OPERATION_ADD, MathFunction *f = NULL, bool do_stack = false, size_t stack_index = 0, string execute_str = string(), string str = string(), bool check_exrates = true); | ^~~~~~ callbacks.h:126:224: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.h:127:114: error: 'string' has not been declared 127 | void setResult(Prefix *prefix = NULL, bool update_history = true, bool update_parse = false, bool force = false, string transformation = "", size_t stack_index = 0, bool register_moved = false); | ^~~~~~ callbacks.h:127:193: error: invalid conversion from 'const char*' to 'int' [-fpermissive] 127 | void setResult(Prefix *prefix = NULL, bool update_history = true, bool update_parse = false, bool force = false, string transformation = "", size_t stack_index = 0, bool register_moved = false); | ^ | | | const char* callbacks.h:132:6: error: variable or field 'RPNRegisterAdded' declared void 132 | void RPNRegisterAdded(string text, gint index = 0); | ^~~~~~~~~~~~~~~~ callbacks.h:132:23: error: 'string' was not declared in this scope 132 | void RPNRegisterAdded(string text, gint index = 0); | ^~~~~~ callbacks.h:132:23: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.h:132:41: error: expected primary-expression before 'index' 132 | void RPNRegisterAdded(string text, gint index = 0); | ^~~~~ callbacks.h:134:6: error: variable or field 'RPNRegisterChanged' declared void 134 | void RPNRegisterChanged(string text, gint index); | ^~~~~~~~~~~~~~~~~~ callbacks.h:134:25: error: 'string' was not declared in this scope 134 | void RPNRegisterChanged(string text, gint index); | ^~~~~~ callbacks.h:134:25: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.h:134:43: error: expected primary-expression before 'index' 134 | void RPNRegisterChanged(string text, gint index); | ^~~~~ main.cc:29:1: error: 'string' does not name a type; did you mean 'GString'? 29 | string *parsed_to_str; | ^~~~~~ | GString main.cc:32:1: error: 'string' does not name a type; did you mean 'GString'? 32 | string selected_function_category; | ^~~~~~ | GString main.cc:35:1: error: 'string' does not name a type; did you mean 'GString'? 35 | string selected_variable_category; | ^~~~~~ | GString main.cc:37:1: error: 'string' does not name a type; did you mean 'GString'? 37 | string result_text, parsed_text; | ^~~~~~ | GString main.cc:39:1: error: 'string' does not name a type; did you mean 'GString'? 39 | string selected_unit_category; | ^~~~~~ | GString main.cc:40:1: error: 'string' does not name a type; did you mean 'GString'? 40 | string selected_unit_selector_category; | ^~~~~~ | GString main.cc:47:8: error: 'vector' does not name a type; did you mean 'Vector'? 47 | extern vector recent_functions_pre; | ^~~~~~ | Vector main.cc:48:8: error: 'vector' does not name a type; did you mean 'Vector'? 48 | extern vector recent_variables_pre; | ^~~~~~ | Vector main.cc:49:8: error: 'vector' does not name a type; did you mean 'Vector'? 49 | extern vector recent_units_pre; | ^~~~~~ | Vector main.cc:64:1: error: 'string' does not name a type; did you mean 'GString'? 64 | string calc_arg; | ^~~~~~ | GString main.cc: In function 'void create_application(GtkApplication*)': main.cc:119:9: error: 'parsed_to_str' was not declared in this scope; did you mean 'parsed_tostruct'? 119 | parsed_to_str = new string; | ^~~~~~~~~~~~~ | parsed_tostruct main.cc:119:29: error: 'string' does not name a type; did you mean 'GString'? 119 | parsed_to_str = new string; | ^~~~~~ | GString main.cc:134:13: error: 'calc_arg' was not declared in this scope; did you mean 'va_arg'? 134 | if(!calc_arg.empty()) { | ^~~~~~~~ | va_arg main.cc:168:9: error: 'string' was not declared in this scope 168 | string ans_str = _("ans"); | ^~~~~~ main.cc:168:9: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ main.cc:169:111: error: 'ans_str' was not declared in this scope 169 | vans[0] = (KnownVariable*) CALCULATOR->addVariable(new KnownVariable(CALCULATOR->temporaryCategory(), ans_str, m_undefined, _("Last Answer"), false)); | ^~~~~~~ main.cc:182:48: error: expected type-specifier before 'AnswerFunction' 182 | f_answer = CALCULATOR->addFunction(new AnswerFunction()); | ^~~~~~~~~~~~~~ main.cc:183:52: error: expected type-specifier before 'ExpressionFunction' 183 | f_expression = CALCULATOR->addFunction(new ExpressionFunction()); | ^~~~~~~~~~~~~~~~~~ main.cc:190:9: error: 'selected_function_category' was not declared in this scope; did you mean 'selected_function'? 190 | selected_function_category = _("All"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | selected_function main.cc:193:9: error: 'selected_variable_category' was not declared in this scope; did you mean 'selected_variable'? 193 | selected_variable_category = _("All"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | selected_variable main.cc:196:9: error: 'selected_unit_category' was not declared in this scope 196 | selected_unit_category = _("All"); | ^~~~~~~~~~~~~~~~~~~~~~ main.cc:199:9: error: 'result_text' was not declared in this scope 199 | result_text = "0"; | ^~~~~~~~~~~ main.cc:200:9: error: 'parsed_text' was not declared in this scope; did you mean 'parsed_mstruct'? 200 | parsed_text = "0"; | ^~~~~~~~~~~ | parsed_mstruct main.cc:232:28: error: 'recent_functions_pre' was not declared in this scope 232 | for(int i = ((int) recent_functions_pre.size()) - 1; i >= 0; i--) { | ^~~~~~~~~~~~~~~~~~~~ main.cc:235:28: error: 'recent_variables_pre' was not declared in this scope 235 | for(int i = ((int) recent_variables_pre.size()) - 1; i >= 0; i--) { | ^~~~~~~~~~~~~~~~~~~~ main.cc:238:28: error: 'recent_units_pre' was not declared in this scope 238 | for(int i = ((int) recent_units_pre.size()) - 1; i >= 0; i--) { | ^~~~~~~~~~~~~~~~ main.cc:246:27: error: 'ViewThread' does not name a type; did you mean 'Thread'? 246 | view_thread = new ViewThread; | ^~~~~~~~~~ | Thread main.cc:250:13: error: 'calc_arg' was not declared in this scope; did you mean 'va_arg'? 250 | if(!calc_arg.empty()) { | ^~~~~~~~ | va_arg main.cc:255:26: error: invalid conversion from 'const char*' to 'int' [-fpermissive] 255 | setResult(NULL, false, false, false); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | const char* main.cc: In function 'gint qalculate_handle_local_options(GtkApplication*, GVariantDict*)': main.cc:330:17: error: 'string' was not declared in this scope 330 | string stmp, svar; | ^~~~~~ main.cc:330:17: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ main.cc:334:25: error: 'stmp' was not declared in this scope; did you mean 'tm'? 334 | stmp = line; | ^~~~ | tm main.cc:336:61: error: 'string' is not a class, namespace, or enumeration 336 | if((i = stmp.find_first_of("=")) != string::npos) { | ^~~~~~ main.cc:337:33: error: 'svar' was not declared in this scope 337 | svar = stmp.substr(0, i); | ^~~~ main.cc:340:47: error: expected ';' before 'svalue' 340 | string svalue = stmp.substr(i + 1, stmp.length() - (i + 1)); | ^~~~~~~ | ; main.cc:341:59: error: 'svalue' was not declared in this scope; did you mean 'GValue'? 341 | remove_blank_ends(svalue); | ^~~~~~ | GValue main.cc: In function 'gint qalculate_command_line(GtkApplication*, GApplicationCommandLine*)': main.cc:363:9: error: 'calc_arg' was not declared in this scope; did you mean 'va_arg'? 363 | calc_arg = ""; | ^~~~~~~~ | va_arg main.cc: In function 'int main(int, char**)': main.cc:402:9: error: 'string' was not declared in this scope 402 | string stmp; | ^~~~~~ main.cc:402:9: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ make[2]: *** [Makefile:515: main.o] Error 1 make[2]: Leaving directory '/tmp/B.yzijhj1y/BUILD/qalculate-gtk-3.1.0/src' make[2]: *** Waiting for unfinished jobs.... make[2]: Entering directory '/tmp/B.yzijhj1y/BUILD/qalculate-gtk-3.1.0/src' x86_64-pld-linux-g++ -DHAVE_CONFIG_H -I. -I.. -DPACKAGE_DATA_DIR=\""/usr/share"\" -DPACKAGE_DOC_DIR=\""/usr/share/doc/qalculate-gtk"\" -pthread -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libxml2 -O2 -fwrapv -pipe -Wformat -Werror=format-security -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -march=x86-64 -mtune=generic -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -MT interface.o -MD -MP -MF .deps/interface.Tpo -c -o interface.o interface.cc In file included from interface.cc:25: callbacks.h:57:40: error: macro "DECLARE_BUILTIN_FUNCTION" requires 2 arguments, but only 1 given 57 | DECLARE_BUILTIN_FUNCTION(AnswerFunction) | ^ In file included from /usr/include/libqalculate/qalculate.h:26, from main.h:33, from callbacks.h:27: /usr/include/libqalculate/BuiltinFunctions.h:39: note: macro "DECLARE_BUILTIN_FUNCTION" defined here 39 | #define DECLARE_BUILTIN_FUNCTION(x, i) class x : public MathFunction { \ | callbacks.h:58:44: error: macro "DECLARE_BUILTIN_FUNCTION" requires 2 arguments, but only 1 given 58 | DECLARE_BUILTIN_FUNCTION(ExpressionFunction) | ^ /usr/include/libqalculate/BuiltinFunctions.h:39: note: macro "DECLARE_BUILTIN_FUNCTION" defined here 39 | #define DECLARE_BUILTIN_FUNCTION(x, i) class x : public MathFunction { \ | callbacks.h:35:9: error: 'string' does not name a type; did you mean 'GString'? 35 | string name; | ^~~~~~ | GString callbacks.h:57:1: error: 'DECLARE_BUILTIN_FUNCTION' does not name a type 57 | DECLARE_BUILTIN_FUNCTION(AnswerFunction) | ^~~~~~~~~~~~~~~~~~~~~~~~ callbacks.h:75:21: error: 'string' was not declared in this scope 75 | bool string_is_less(string str1, string str2); | ^~~~~~ callbacks.h:75:21: note: suggested alternatives: In file included from /usr/include/c++/12.2.0/string:39, from /usr/include/libqalculate/includes.h:18, from /usr/include/libqalculate/qalculate.h:15: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.h:75:34: error: 'string' was not declared in this scope 75 | bool string_is_less(string str1, string str2); | ^~~~~~ callbacks.h:75:34: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.h:75:45: error: expression list treated as compound expression in initializer [-fpermissive] 75 | bool string_is_less(string str1, string str2); | ^ callbacks.h:126:180: error: 'string' has not been declared 126 | void execute_expression(bool force = true, bool do_mathoperation = false, MathOperation op = OPERATION_ADD, MathFunction *f = NULL, bool do_stack = false, size_t stack_index = 0, string execute_str = string(), string str = string(), bool check_exrates = true); | ^~~~~~ callbacks.h:126:201: error: 'string' was not declared in this scope 126 | void execute_expression(bool force = true, bool do_mathoperation = false, MathOperation op = OPERATION_ADD, MathFunction *f = NULL, bool do_stack = false, size_t stack_index = 0, string execute_str = string(), string str = string(), bool check_exrates = true); | ^~~~~~ callbacks.h:126:201: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.h:126:211: error: 'string' has not been declared 126 | void execute_expression(bool force = true, bool do_mathoperation = false, MathOperation op = OPERATION_ADD, MathFunction *f = NULL, bool do_stack = false, size_t stack_index = 0, string execute_str = string(), string str = string(), bool check_exrates = true); | ^~~~~~ callbacks.h:126:224: error: 'string' was not declared in this scope 126 | void execute_expression(bool force = true, bool do_mathoperation = false, MathOperation op = OPERATION_ADD, MathFunction *f = NULL, bool do_stack = false, size_t stack_index = 0, string execute_str = string(), string str = string(), bool check_exrates = true); | ^~~~~~ callbacks.h:126:224: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.h:127:114: error: 'string' has not been declared 127 | void setResult(Prefix *prefix = NULL, bool update_history = true, bool update_parse = false, bool force = false, string transformation = "", size_t stack_index = 0, bool register_moved = false); | ^~~~~~ callbacks.h:127:193: error: invalid conversion from 'const char*' to 'int' [-fpermissive] 127 | void setResult(Prefix *prefix = NULL, bool update_history = true, bool update_parse = false, bool force = false, string transformation = "", size_t stack_index = 0, bool register_moved = false); | ^ | | | const char* callbacks.h:132:6: error: variable or field 'RPNRegisterAdded' declared void 132 | void RPNRegisterAdded(string text, gint index = 0); | ^~~~~~~~~~~~~~~~ callbacks.h:132:23: error: 'string' was not declared in this scope 132 | void RPNRegisterAdded(string text, gint index = 0); | ^~~~~~ callbacks.h:132:23: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.h:132:41: error: expected primary-expression before 'index' 132 | void RPNRegisterAdded(string text, gint index = 0); | ^~~~~ callbacks.h:134:6: error: variable or field 'RPNRegisterChanged' declared void 134 | void RPNRegisterChanged(string text, gint index); | ^~~~~~~~~~~~~~~~~~ callbacks.h:134:25: error: 'string' was not declared in this scope 134 | void RPNRegisterChanged(string text, gint index); | ^~~~~~ callbacks.h:134:25: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.h:134:43: error: expected primary-expression before 'index' 134 | void RPNRegisterChanged(string text, gint index); | ^~~~~ interface.cc:66:8: error: 'vector' does not name a type; did you mean 'Vector'? 66 | extern vector modes; | ^~~~~~ | Vector interface.cc:123:8: error: 'vector' does not name a type; did you mean 'Vector'? 123 | extern vector matrix_edit_columns, matrix_columns; | ^~~~~~ | Vector interface.cc:150:8: error: 'string' does not name a type; did you mean 'GString'? 150 | extern string custom_result_font, custom_expression_font, custom_status_font; | ^~~~~~ | GString interface.cc:151:8: error: 'string' does not name a type; did you mean 'GString'? 151 | extern string status_error_color, status_warning_color; | ^~~~~~ | GString interface.cc:162:8: error: 'vector' does not name a type; did you mean 'Vector'? 162 | extern vector mode_items; | ^~~~~~ | Vector interface.cc:163:8: error: 'vector' does not name a type; did you mean 'Vector'? 163 | extern vector popup_result_mode_items; | ^~~~~~ | Vector interface.cc:165:8: error: 'deque' does not name a type 165 | extern deque expression_undo_buffer; | ^~~~~ interface.cc:170:8: error: 'string' does not name a type; did you mean 'GString'? 170 | extern string latest_button_unit_pre, latest_button_currency_pre; | ^~~~~~ | GString interface.cc:180:8: error: 'unordered_map' does not name a type 180 | extern unordered_map flag_images; | ^~~~~~~~~~~~~ interface.cc:182:8: error: 'string' does not name a type; did you mean 'GString'? 182 | extern string fix_history_string(const string &str); | ^~~~~~ | GString interface.cc: In function 'GtkBuilder* getBuilder(const char*)': interface.cc:549:9: error: 'string' was not declared in this scope 549 | string resstr = "/qalculate-gtk/ui/"; | ^~~~~~ interface.cc:549:9: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ interface.cc:550:9: error: 'resstr' was not declared in this scope; did you mean 'wcsstr'? 550 | resstr += filename; | ^~~~~~ | wcsstr interface.cc: In function 'void create_button_menus()': interface.cc:573:92: error: 'string' was not declared in this scope 573 | gtk_label_set_markup(GTK_LABEL(gtk_builder_get_object(main_builder, "label_xy")), (string("x") + SUP_STRING("y")).c_str()); | ^~~~~~ interface.cc:573:92: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ interface.cc:694:13: error: 'latest_button_unit_pre' was not declared in this scope; did you mean 'latest_button_unit'? 694 | if(!latest_button_unit_pre.empty()) { | ^~~~~~~~~~~~~~~~~~~~~~ | latest_button_unit interface.cc:699:23: error: expected ';' before 'si_label_str' 699 | string si_label_str; | ^~~~~~~~~~~~~ | ; interface.cc:701:25: error: 'si_label_str' was not declared in this scope 701 | si_label_str = ((CompositeUnit*) latest_button_unit)->print(false, true, printops.use_unicode_signs, &can_display_unicode_string_function, (void*) expressiontext); | ^~~~~~~~~~~~ interface.cc:704:25: error: 'si_label_str' was not declared in this scope 704 | si_label_str = latest_button_unit->preferredDisplayName(true, printops.use_unicode_signs, false, false, &can_display_unicode_string_function, (void*) expressiontext).name; | ^~~~~~~~~~~~ interface.cc:706:97: error: 'si_label_str' was not declared in this scope 706 | gtk_label_set_text(GTK_LABEL(gtk_builder_get_object(main_builder, "label_si")), si_label_str.c_str()); | ^~~~~~~~~~~~ interface.cc:711:9: error: 'vector' was not declared in this scope 711 | vector to_us; | ^~~~~~ interface.cc:711:9: note: suggested alternatives: In file included from /usr/include/c++/12.2.0/vector:64, from /usr/include/libqalculate/includes.h:17: /usr/include/c++/12.2.0/bits/stl_vector.h:423:11: note: 'std::vector' 423 | class vector : protected _Vector_base<_Tp, _Alloc> | ^~~~~~ /usr/include/c++/12.2.0/vector:84:13: note: 'std::pmr::vector' 84 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>; | ^~~~~~ interface.cc:711:20: error: expected primary-expression before '*' token 711 | vector to_us; | ^ interface.cc:711:21: error: expected primary-expression before '>' token 711 | vector to_us; | ^ interface.cc:711:23: error: 'to_us' was not declared in this scope; did you mean 'top_ips'? 711 | vector to_us; | ^~~~~ | top_ips interface.cc:719:89: error: 'string_is_less' cannot be used as a function 719 | if(string_is_less(u->title(true), to_us[i2]->title(true))) { | ^ interface.cc:742:89: error: 'string_is_less' cannot be used as a function 742 | if(string_is_less(u->title(true), to_us[i2]->title(true))) { | ^ interface.cc:755:13: error: 'latest_button_currency_pre' was not declared in this scope; did you mean 'latest_button_currency'? 755 | if(!latest_button_currency_pre.empty()) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | latest_button_currency interface.cc:761:15: error: expected ';' before 'unit_label_str' 761 | string unit_label_str; | ^~~~~~~~~~~~~~~ | ; interface.cc:763:17: error: 'unit_label_str' was not declared in this scope 763 | unit_label_str = ((CompositeUnit*) latest_button_currency)->print(false, true, printops.use_unicode_signs, &can_display_unicode_string_function, (void*) expressiontext); | ^~~~~~~~~~~~~~ interface.cc:766:17: error: 'unit_label_str' was not declared in this scope 766 | unit_label_str = latest_button_currency->preferredDisplayName(true, printops.use_unicode_signs, false, false, &can_display_unicode_string_function, (void*) expressiontext).name; | ^~~~~~~~~~~~~~ interface.cc:768:91: error: 'unit_label_str' was not declared in this scope 768 | gtk_label_set_text(GTK_LABEL(gtk_builder_get_object(main_builder, "label_euro")), unit_label_str.c_str()); | ^~~~~~~~~~~~~~ interface.cc:785:89: error: 'string_is_less' cannot be used as a function 785 | if(string_is_less(u->title(true), to_us[i2]->title(true))) { | ^ In file included from interface.cc:26: interface.h:18:111: error: 'unordered_map' was not declared in this scope 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~ interface.h:18:111: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~ interface.h:18:111: note: suggested alternatives: 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~ interface.h:18:111: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~ In file included from /usr/include/c++/12.2.0/unordered_map:47, from interface.cc:32: /usr/include/c++/12.2.0/bits/unordered_map.h:102:11: note: 'std::unordered_map' 102 | class unordered_map | ^~~~~~~~~~~~~ /usr/include/c++/12.2.0/unordered_map:64:13: note: 'std::pmr::unordered_map' 64 | using unordered_map | ^~~~~~~~~~~~~ interface.h:18:142: error: expected primary-expression before '*' token 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^ interface.cc:795:17: note: in expansion of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 795 | MENU_ITEM_WITH_POINTER_AND_FLAG(to_us[i]->title(true).c_str(), insert_button_currency, to_us[i]) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ interface.h:18:143: error: expected primary-expression before '>' token 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^ interface.cc:795:17: note: in expansion of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 795 | MENU_ITEM_WITH_POINTER_AND_FLAG(to_us[i]->title(true).c_str(), insert_button_currency, to_us[i]) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ interface.h:18:146: error: '::const_iterator' has not been declared 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~~ interface.h:18:146: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~~ interface.h:18:212: error: 'it_flag' was not declared in this scope 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~ interface.h:18:212: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~ interface.h:18:223: error: 'flag_images' was not declared in this scope 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~ interface.h:18:223: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~ interface.cc:799:20: error: expected primary-expression before '*' token 799 | vector to_us2; | ^ interface.cc:799:21: error: expected primary-expression before '>' token 799 | vector to_us2; | ^ interface.cc:799:23: error: 'to_us2' was not declared in this scope 799 | vector to_us2; | ^~~~~~ interface.h:18:111: error: 'unordered_map' was not declared in this scope 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~ interface.h:18:111: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~ interface.h:18:111: note: suggested alternatives: 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~ interface.h:18:111: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~ /usr/include/c++/12.2.0/bits/unordered_map.h:102:11: note: 'std::unordered_map' 102 | class unordered_map | ^~~~~~~~~~~~~ /usr/include/c++/12.2.0/unordered_map:64:13: note: 'std::pmr::unordered_map' 64 | using unordered_map | ^~~~~~~~~~~~~ interface.h:18:142: error: expected primary-expression before '*' token 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^ interface.cc:837:17: note: in expansion of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 837 | MENU_ITEM_WITH_POINTER_AND_FLAG(to_us[i]->title(true).c_str(), insert_button_currency, to_us[i]) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ interface.h:18:143: error: expected primary-expression before '>' token 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^ interface.cc:837:17: note: in expansion of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 837 | MENU_ITEM_WITH_POINTER_AND_FLAG(to_us[i]->title(true).c_str(), insert_button_currency, to_us[i]) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ interface.h:18:146: error: '::const_iterator' has not been declared 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~~ interface.h:18:146: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~~ interface.h:18:212: error: 'it_flag' was not declared in this scope 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~ interface.h:18:212: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~ interface.h:18:223: error: 'flag_images' was not declared in this scope 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~ interface.h:18:223: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~ interface.h:18:111: error: 'unordered_map' was not declared in this scope 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~ interface.h:18:111: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~ interface.h:18:111: note: suggested alternatives: 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~ interface.h:18:111: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~ /usr/include/c++/12.2.0/bits/unordered_map.h:102:11: note: 'std::unordered_map' 102 | class unordered_map | ^~~~~~~~~~~~~ /usr/include/c++/12.2.0/unordered_map:64:13: note: 'std::pmr::unordered_map' 64 | using unordered_map | ^~~~~~~~~~~~~ interface.h:18:142: error: expected primary-expression before '*' token 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^ interface.cc:842:17: note: in expansion of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 842 | MENU_ITEM_WITH_POINTER_AND_FLAG(to_us2[i]->title(true).c_str(), insert_button_currency, to_us2[i]) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ interface.h:18:143: error: expected primary-expression before '>' token 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^ interface.cc:842:17: note: in expansion of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 842 | MENU_ITEM_WITH_POINTER_AND_FLAG(to_us2[i]->title(true).c_str(), insert_button_currency, to_us2[i]) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ interface.h:18:146: error: '::const_iterator' has not been declared 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~~ interface.h:18:146: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~~ interface.h:18:212: error: 'it_flag' was not declared in this scope 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~ interface.h:18:212: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~ interface.h:18:223: error: 'flag_images' was not declared in this scope 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~ interface.h:18:223: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~ interface.cc: In function 'void create_main_window()': interface.cc:901:25: error: 'string' was not declared in this scope 901 | string flag_s = flags_r[i]; | ^~~~~~ interface.cc:901:25: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ interface.cc:902:40: error: 'flag_s' was not declared in this scope; did you mean 'flags_r'? 902 | size_t i_ext = flag_s.find(".", 1); | ^~~~~~ | flags_r interface.cc:903:37: error: 'string' is not a class, namespace, or enumeration 903 | if(i_ext != string::npos) { | ^~~~~~ interface.cc:905:45: error: 'flag_images' was not declared in this scope 905 | if(flagbuf) flag_images[flag_s.substr(0, i_ext)] = flagbuf; | ^~~~~~~~~~~ interface.cc:918:9: error: 'expression_undo_buffer' was not declared in this scope; did you mean 'expressionbuffer'? 918 | expression_undo_buffer.push_back(""); | ^~~~~~~~~~~~~~~~~~~~~~ | expressionbuffer interface.cc:955:48: error: 'custom_result_font' was not declared in this scope; did you mean 'use_custom_result_font'? 955 | gchar *gstr = font_name_to_css(custom_result_font.c_str()); | ^~~~~~~~~~~~~~~~~~ | use_custom_result_font interface.cc:960:20: error: 'custom_result_font' was not declared in this scope; did you mean 'use_custom_result_font'? 960 | if(custom_result_font.empty()) { | ^~~~~~~~~~~~~~~~~~ | use_custom_result_font interface.cc:968:48: error: 'custom_expression_font' was not declared in this scope; did you mean 'use_custom_expression_font'? 968 | gchar *gstr = font_name_to_css(custom_expression_font.c_str()); | ^~~~~~~~~~~~~~~~~~~~~~ | use_custom_expression_font interface.cc:972:20: error: 'custom_expression_font' was not declared in this scope; did you mean 'use_custom_expression_font'? 972 | if(custom_expression_font.empty()) { | ^~~~~~~~~~~~~~~~~~~~~~ | use_custom_expression_font interface.cc:980:48: error: 'custom_status_font' was not declared in this scope; did you mean 'use_custom_status_font'? 980 | gchar *gstr = font_name_to_css(custom_status_font.c_str()); | ^~~~~~~~~~~~~~~~~~ | use_custom_status_font interface.cc:987:20: error: 'custom_status_font' was not declared in this scope; did you mean 'use_custom_status_font'? 987 | if(custom_status_font.empty()) { | ^~~~~~~~~~~~~~~~~~ | use_custom_status_font interface.cc:1009:17: error: 'status_error_color' was not declared in this scope; did you mean 'status_error_color_set'? 1009 | status_error_color = ecs; | ^~~~~~~~~~~~~~~~~~ | status_error_color_set interface.cc:1024:17: error: 'status_warning_color' was not declared in this scope; did you mean 'status_warning_color_set'? 1024 | status_warning_color = wcs; | ^~~~~~~~~~~~~~~~~~~~ | status_warning_color_set interface.cc:1079:9: error: 'string' was not declared in this scope 1079 | string themestr; | ^~~~~~ interface.cc:1079:9: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ interface.cc:1080:24: error: 'themestr' was not declared in this scope; did you mean 'theme'? 1080 | if(theme_name) themestr = theme_name; | ^~~~~~~~ | theme interface.cc:1082:12: error: 'themestr' was not declared in this scope; did you mean 'theme'? 1082 | if(themestr.substr(0, 7) == "Adwaita" || themestr.substr(0, 6) == "ooxmox" || themestr == "Breeze" || themestr == "Breeze-Dark" || themestr == "Yaru") { | ^~~~~~~~ | theme interface.cc:1223:12: error: 'themestr' was not declared in this scope; did you mean 'theme'? 1223 | if(themestr.substr(0, 7) != "Adwaita" && themestr.substr(0, 6) != "ooxmox" && themestr != "Yaru") { | ^~~~~~~~ | theme interface.cc:1304:31: error: 'modes' was not declared in this scope 1304 | for(size_t i = 0; i < modes.size(); i++) { | ^~~~~ interface.cc:1309:17: error: 'mode_items' was not declared in this scope; did you mean 'set_mode_items'? 1309 | mode_items.push_back(item); | ^~~~~~~~~~ | set_mode_items interface.cc:1314:17: error: 'popup_result_mode_items' was not declared in this scope 1314 | popup_result_mode_items.push_back(item); | ^~~~~~~~~~~~~~~~~~~~~~~ interface.cc:1316:114: error: 'modes' was not declared in this scope 1316 | gtk_widget_set_sensitive(GTK_WIDGET(gtk_builder_get_object(main_builder, "menu_item_meta_mode_delete")), modes.size() > 2); | ^~~~~ interface.cc: In function 'GtkWidget* get_preferences_dialog()': interface.cc:1678:140: error: 'custom_result_font' was not declared in this scope; did you mean 'use_custom_result_font'? 1678 | gtk_font_chooser_set_font(GTK_FONT_CHOOSER(gtk_builder_get_object(preferences_builder, "preferences_button_result_font")), custom_result_font.c_str()); | ^~~~~~~~~~~~~~~~~~ | use_custom_result_font interface.cc:1680:144: error: 'custom_expression_font' was not declared in this scope; did you mean 'use_custom_expression_font'? 1680 | gtk_font_chooser_set_font(GTK_FONT_CHOOSER(gtk_builder_get_object(preferences_builder, "preferences_button_expression_font")), custom_expression_font.c_str()); | ^~~~~~~~~~~~~~~~~~~~~~ | use_custom_expression_font interface.cc:1682:140: error: 'custom_status_font' was not declared in this scope; did you mean 'use_custom_status_font'? 1682 | gtk_font_chooser_set_font(GTK_FONT_CHOOSER(gtk_builder_get_object(preferences_builder, "preferences_button_status_font")), custom_status_font.c_str()); | ^~~~~~~~~~~~~~~~~~ | use_custom_status_font interface.cc:1684:36: error: 'status_error_color' was not declared in this scope; did you mean 'status_error_color_set'? 1684 | gdk_rgba_parse(&c, status_error_color.c_str()); | ^~~~~~~~~~~~~~~~~~ | status_error_color_set interface.cc:1686:36: error: 'status_warning_color' was not declared in this scope; did you mean 'status_warning_color_set'? 1686 | gdk_rgba_parse(&c, status_warning_color.c_str()); | ^~~~~~~~~~~~~~~~~~~~ | status_warning_color_set interface.cc: At global scope: interface.cc:2364:1: error: 'unordered_map' does not name a type 2364 | unordered_map cal_year, cal_month, cal_day, cal_label; | ^~~~~~~~~~~~~ interface.cc: In function 'GtkWidget* get_calendarconversion_dialog()': interface.cc:2410:17: error: 'cal_year' was not declared in this scope 2410 | cal_year[CALENDAR_GREGORIAN] = GTK_WIDGET(gtk_builder_get_object(calendarconversion_builder, "year_1")); | ^~~~~~~~ interface.cc:2411:17: error: 'cal_month' was not declared in this scope 2411 | cal_month[CALENDAR_GREGORIAN] = GTK_WIDGET(gtk_builder_get_object(calendarconversion_builder, "month_1")); | ^~~~~~~~~ interface.cc:2412:17: error: 'cal_day' was not declared in this scope 2412 | cal_day[CALENDAR_GREGORIAN] = GTK_WIDGET(gtk_builder_get_object(calendarconversion_builder, "day_1")); | ^~~~~~~ interface.cc:2413:17: error: 'cal_label' was not declared in this scope 2413 | cal_label[CALENDAR_GREGORIAN] = GTK_WIDGET(gtk_builder_get_object(calendarconversion_builder, "label_1")); | ^~~~~~~~~ interface.cc: In function 'GtkWidget* get_periodic_dialog()': interface.cc:2613:17: error: 'string' was not declared in this scope 2613 | string tip; | ^~~~~~ interface.cc:2613:17: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ interface.cc:2624:23: error: expected ';' before 'weight' 2624 | string weight; | ^~~~~~~ | ; interface.cc:2644:33: error: 'tip' was not declared in this scope 2644 | tip = e->getProperty(p_number); | ^~~ interface.cc:2647:33: error: 'weight' was not declared in this scope; did you mean 'p_weight'? 2647 | weight = e->getPropertyDisplayString(p_weight); | ^~~~~~ | p_weight make[2]: *** [Makefile:515: interface.o] Error 1 make[2]: Leaving directory '/tmp/B.yzijhj1y/BUILD/qalculate-gtk-3.1.0/src' make[2]: Entering directory '/tmp/B.yzijhj1y/BUILD/qalculate-gtk-3.1.0/src' x86_64-pld-linux-g++ -DHAVE_CONFIG_H -I. -I.. -DPACKAGE_DATA_DIR=\""/usr/share"\" -DPACKAGE_DOC_DIR=\""/usr/share/doc/qalculate-gtk"\" -pthread -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libxml2 -O2 -fwrapv -pipe -Wformat -Werror=format-security -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -march=x86-64 -mtune=generic -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -MT callbacks.o -MD -MP -MF .deps/callbacks.Tpo -c -o callbacks.o callbacks.cc In file included from callbacks.cc:27: callbacks.h:57:40: error: macro "DECLARE_BUILTIN_FUNCTION" requires 2 arguments, but only 1 given 57 | DECLARE_BUILTIN_FUNCTION(AnswerFunction) | ^ In file included from /usr/include/libqalculate/qalculate.h:26, from main.h:33, from callbacks.h:27: /usr/include/libqalculate/BuiltinFunctions.h:39: note: macro "DECLARE_BUILTIN_FUNCTION" defined here 39 | #define DECLARE_BUILTIN_FUNCTION(x, i) class x : public MathFunction { \ | callbacks.h:58:44: error: macro "DECLARE_BUILTIN_FUNCTION" requires 2 arguments, but only 1 given 58 | DECLARE_BUILTIN_FUNCTION(ExpressionFunction) | ^ /usr/include/libqalculate/BuiltinFunctions.h:39: note: macro "DECLARE_BUILTIN_FUNCTION" defined here 39 | #define DECLARE_BUILTIN_FUNCTION(x, i) class x : public MathFunction { \ | callbacks.h:35:9: error: 'string' does not name a type; did you mean 'GString'? 35 | string name; | ^~~~~~ | GString callbacks.h:57:1: error: 'DECLARE_BUILTIN_FUNCTION' does not name a type 57 | DECLARE_BUILTIN_FUNCTION(AnswerFunction) | ^~~~~~~~~~~~~~~~~~~~~~~~ callbacks.h:75:21: error: 'string' was not declared in this scope 75 | bool string_is_less(string str1, string str2); | ^~~~~~ callbacks.h:75:21: note: suggested alternatives: In file included from /usr/include/c++/12.2.0/string:39, from /usr/include/libqalculate/includes.h:18, from /usr/include/libqalculate/qalculate.h:15: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.h:75:34: error: 'string' was not declared in this scope 75 | bool string_is_less(string str1, string str2); | ^~~~~~ callbacks.h:75:34: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.h:75:45: error: expression list treated as compound expression in initializer [-fpermissive] 75 | bool string_is_less(string str1, string str2); | ^ callbacks.h:126:180: error: 'string' has not been declared 126 | void execute_expression(bool force = true, bool do_mathoperation = false, MathOperation op = OPERATION_ADD, MathFunction *f = NULL, bool do_stack = false, size_t stack_index = 0, string execute_str = string(), string str = string(), bool check_exrates = true); | ^~~~~~ callbacks.h:126:201: error: 'string' was not declared in this scope 126 | void execute_expression(bool force = true, bool do_mathoperation = false, MathOperation op = OPERATION_ADD, MathFunction *f = NULL, bool do_stack = false, size_t stack_index = 0, string execute_str = string(), string str = string(), bool check_exrates = true); | ^~~~~~ callbacks.h:126:201: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.h:126:211: error: 'string' has not been declared 126 | void execute_expression(bool force = true, bool do_mathoperation = false, MathOperation op = OPERATION_ADD, MathFunction *f = NULL, bool do_stack = false, size_t stack_index = 0, string execute_str = string(), string str = string(), bool check_exrates = true); | ^~~~~~ callbacks.h:126:224: error: 'string' was not declared in this scope 126 | void execute_expression(bool force = true, bool do_mathoperation = false, MathOperation op = OPERATION_ADD, MathFunction *f = NULL, bool do_stack = false, size_t stack_index = 0, string execute_str = string(), string str = string(), bool check_exrates = true); | ^~~~~~ callbacks.h:126:224: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.h:127:114: error: 'string' has not been declared 127 | void setResult(Prefix *prefix = NULL, bool update_history = true, bool update_parse = false, bool force = false, string transformation = "", size_t stack_index = 0, bool register_moved = false); | ^~~~~~ callbacks.h:127:193: error: invalid conversion from 'const char*' to 'int' [-fpermissive] 127 | void setResult(Prefix *prefix = NULL, bool update_history = true, bool update_parse = false, bool force = false, string transformation = "", size_t stack_index = 0, bool register_moved = false); | ^ | | | const char* callbacks.h:132:6: error: variable or field 'RPNRegisterAdded' declared void 132 | void RPNRegisterAdded(string text, gint index = 0); | ^~~~~~~~~~~~~~~~ callbacks.h:132:23: error: 'string' was not declared in this scope 132 | void RPNRegisterAdded(string text, gint index = 0); | ^~~~~~ callbacks.h:132:23: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.h:132:41: error: expected primary-expression before 'index' 132 | void RPNRegisterAdded(string text, gint index = 0); | ^~~~~ callbacks.h:134:6: error: variable or field 'RPNRegisterChanged' declared void 134 | void RPNRegisterChanged(string text, gint index); | ^~~~~~~~~~~~~~~~~~ callbacks.h:134:25: error: 'string' was not declared in this scope 134 | void RPNRegisterChanged(string text, gint index); | ^~~~~~ callbacks.h:134:25: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.h:134:43: error: expected primary-expression before 'index' 134 | void RPNRegisterChanged(string text, gint index); | ^~~~~ callbacks.cc:82:8: error: 'unordered_map' does not name a type 82 | extern unordered_map cal_year, cal_month, cal_day, cal_label; | ^~~~~~~~~~~~~ callbacks.cc:124:8: error: 'string' does not name a type; did you mean 'GString'? 124 | extern string selected_function_category; | ^~~~~~ | GString callbacks.cc:141:8: error: 'string' does not name a type; did you mean 'GString'? 141 | extern string selected_variable_category; | ^~~~~~ | GString callbacks.cc:143:8: error: 'string' does not name a type; did you mean 'GString'? 143 | extern string selected_unit_category; | ^~~~~~ | GString callbacks.cc:144:8: error: 'string' does not name a type; did you mean 'GString'? 144 | extern string selected_unit_selector_category; | ^~~~~~ | GString callbacks.cc:151:1: error: 'string' does not name a type; did you mean 'GString'? 151 | string custom_result_font, custom_expression_font, custom_status_font; | ^~~~~~ | GString callbacks.cc:164:8: error: 'string' does not name a type; did you mean 'GString'? 164 | extern string result_text, parsed_text; | ^~~~~~ | GString callbacks.cc:165:1: error: 'string' does not name a type; did you mean 'GString'? 165 | string previous_expression; | ^~~~~~ | GString callbacks.cc:167:1: error: 'string' does not name a type; did you mean 'GString'? 167 | string result_text_long; | ^~~~~~ | GString callbacks.cc:176:1: error: 'vector' does not name a type; did you mean 'Vector'? 176 | vector > insert_element_entries; | ^~~~~~ | Vector callbacks.cc:181:1: error: 'string' does not name a type; did you mean 'GString'? 181 | string parsed_expression; | ^~~~~~ | GString callbacks.cc:183:1: error: 'vector' does not name a type; did you mean 'Vector'? 183 | vector tmp_props; | ^~~~~~ | Vector callbacks.cc:184:1: error: 'vector' does not name a type; did you mean 'Vector'? 184 | vector tmp_props_orig; | ^~~~~~ | Vector callbacks.cc:187:1: error: 'string' does not name a type; did you mean 'GString'? 187 | string command_convert_units_string; | ^~~~~~ | GString callbacks.cc:194:1: error: 'vector' does not name a type; did you mean 'Vector'? 194 | vector matrix_edit_columns, matrix_columns; | ^~~~~~ | Vector callbacks.cc:200:1: error: 'vector' does not name a type; did you mean 'Vector'? 200 | vector expression_history; | ^~~~~~ | Vector callbacks.cc:209:1: error: 'string' does not name a type; did you mean 'GString'? 209 | string default_plot_min = "0"; | ^~~~~~ | GString callbacks.cc:210:1: error: 'string' does not name a type; did you mean 'GString'? 210 | string default_plot_max = "10"; | ^~~~~~ | GString callbacks.cc:211:1: error: 'string' does not name a type; did you mean 'GString'? 211 | string default_plot_step = "1"; | ^~~~~~ | GString callbacks.cc:219:1: error: 'string' does not name a type; did you mean 'GString'? 219 | string default_plot_variable = "x"; | ^~~~~~ | GString callbacks.cc:224:1: error: 'string' does not name a type; did you mean 'GString'? 224 | string status_error_color, status_warning_color; | ^~~~~~ | GString callbacks.cc:244:1: error: 'vector' does not name a type; did you mean 'Vector'? 244 | vector modes; | ^~~~~~ | Vector callbacks.cc:245:1: error: 'vector' does not name a type; did you mean 'Vector'? 245 | vector mode_items; | ^~~~~~ | Vector callbacks.cc:246:1: error: 'vector' does not name a type; did you mean 'Vector'? 246 | vector popup_result_mode_items; | ^~~~~~ | Vector callbacks.cc:248:1: error: 'deque' does not name a type 248 | deque inhistory; | ^~~~~ callbacks.cc:249:1: error: 'deque' does not name a type 249 | deque inhistory_type; | ^~~~~ callbacks.cc:250:1: error: 'vector' does not name a type; did you mean 'Vector'? 250 | vector history_parsed; | ^~~~~~ | Vector callbacks.cc:251:1: error: 'vector' does not name a type; did you mean 'Vector'? 251 | vector history_answer; | ^~~~~~ | Vector callbacks.cc:253:1: error: 'deque' does not name a type 253 | deque expression_undo_buffer; | ^~~~~ callbacks.cc:262:1: error: 'unordered_map' does not name a type 262 | unordered_map date_map; | ^~~~~~~~~~~~~ callbacks.cc:263:1: error: 'unordered_map' does not name a type 263 | unordered_map number_map; | ^~~~~~~~~~~~~ callbacks.cc:264:1: error: 'unordered_map' does not name a type 264 | unordered_map number_approx_map; | ^~~~~~~~~~~~~ callbacks.cc:265:1: error: 'unordered_map' does not name a type 265 | unordered_map number_exp_map; | ^~~~~~~~~~~~~ callbacks.cc:266:1: error: 'unordered_map' does not name a type 266 | unordered_map number_exp_minus_map; | ^~~~~~~~~~~~~ callbacks.cc:268:1: error: 'unordered_map' does not name a type 268 | unordered_map flag_images; | ^~~~~~~~~~~~~ callbacks.cc:273:1: error: 'unordered_map' does not name a type 273 | unordered_map convert_category_map; | ^~~~~~~~~~~~~ callbacks.cc:282:1: error: 'string' does not name a type; did you mean 'GString'? 282 | string old_fromValue, old_toValue; | ^~~~~~ | GString callbacks.cc:288:1: error: 'string' does not name a type; did you mean 'GString'? 288 | string last_found_version; | ^~~~~~ | GString callbacks.cc:326:1: error: 'AnswerFunction' does not name a type; did you mean 'UserFunction'? 326 | AnswerFunction::AnswerFunction() : MathFunction(_("answer"), 1, 1, CALCULATOR->f_warning->category(), _("History Answer Value")) { | ^~~~~~~~~~~~~~ | UserFunction callbacks.cc:332:5: error: 'AnswerFunction' has not been declared 332 | int AnswerFunction::calculate(MathStructure &mstruct, const MathStructure &vargs, const EvaluationOptions&) { | ^~~~~~~~~~~~~~ callbacks.cc: In function 'int calculate(MathStructure&, const MathStructure&, const EvaluationOptions&)': callbacks.cc:337:45: error: 'history_answer' was not declared in this scope; did you mean 'history_index'? 337 | if(index < 0) index = (int) history_answer.size() + 1 + index; | ^~~~~~~~~~~~~~ | history_index callbacks.cc:338:48: error: 'history_answer' was not declared in this scope; did you mean 'history_index'? 338 | if(index <= 0 || index > (int) history_answer.size() || history_answer[(size_t) index - 1] == NULL) { | ^~~~~~~~~~~~~~ | history_index callbacks.cc: At global scope: callbacks.cc:349:1: error: 'ExpressionFunction' does not name a type; did you mean 'DimensionFunction'? 349 | ExpressionFunction::ExpressionFunction() : MathFunction(_("expression"), 1, 1, CALCULATOR->f_warning->category(), _("History Parsed Expression")) { | ^~~~~~~~~~~~~~~~~~ | DimensionFunction callbacks.cc:355:5: error: 'ExpressionFunction' has not been declared 355 | int ExpressionFunction::calculate(MathStructure &mstruct, const MathStructure &vargs, const EvaluationOptions&) { | ^~~~~~~~~~~~~~~~~~ callbacks.cc:355:5: error: redefinition of 'int calculate(MathStructure&, const MathStructure&, const EvaluationOptions&)' callbacks.cc:332:5: note: 'int calculate(MathStructure&, const MathStructure&, const EvaluationOptions&)' previously defined here 332 | int AnswerFunction::calculate(MathStructure &mstruct, const MathStructure &vargs, const EvaluationOptions&) { | ^~~~~~~~~~~~~~ callbacks.cc: In function 'int calculate(MathStructure&, const MathStructure&, const EvaluationOptions&)': callbacks.cc:360:45: error: 'history_parsed' was not declared in this scope; did you mean 'historystore'? 360 | if(index < 0) index = (int) history_parsed.size() + 1 + index; | ^~~~~~~~~~~~~~ | historystore callbacks.cc:361:48: error: 'history_parsed' was not declared in this scope; did you mean 'historystore'? 361 | if(index <= 0 || index > (int) history_parsed.size() || history_parsed[(size_t) index - 1] == NULL) { | ^~~~~~~~~~~~~~ | historystore callbacks.cc: At global scope: callbacks.cc:386:6: error: variable or field 'add_line_breaks' declared void 386 | void add_line_breaks(string &str, int expr = false, size_t first_i = 0); | ^~~~~~~~~~~~~~~ callbacks.cc:386:22: error: 'string' was not declared in this scope 386 | void add_line_breaks(string &str, int expr = false, size_t first_i = 0); | ^~~~~~ callbacks.cc:386:22: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:386:30: error: 'str' was not declared in this scope; did you mean 'std'? 386 | void add_line_breaks(string &str, int expr = false, size_t first_i = 0); | ^~~ | std callbacks.cc:386:35: error: expected primary-expression before 'int' 386 | void add_line_breaks(string &str, int expr = false, size_t first_i = 0); | ^~~ callbacks.cc:386:60: error: expected primary-expression before 'first_i' 386 | void add_line_breaks(string &str, int expr = false, size_t first_i = 0); | ^~~~~~~ callbacks.cc:388:29: error: 'string' does not name a type; did you mean 'GString'? 388 | bool equalsIgnoreCase(const string &str1, const string &str2, size_t i2, size_t i2_end, size_t minlength) { | ^~~~~~ | GString callbacks.cc:388:49: error: 'string' does not name a type; did you mean 'GString'? 388 | bool equalsIgnoreCase(const string &str1, const string &str2, size_t i2, size_t i2_end, size_t minlength) { | ^~~~~~ | GString callbacks.cc: In function 'bool equalsIgnoreCase(const int&, const int&, size_t, size_t, size_t)': callbacks.cc:389:17: error: request for member 'empty' in 'str1', which is of non-class type 'const int' 389 | if(str1.empty() || str2.empty()) return false; | ^~~~~ callbacks.cc:389:33: error: request for member 'empty' in 'str2', which is of non-class type 'const int' 389 | if(str1.empty() || str2.empty()) return false; | ^~~~~ callbacks.cc:391:22: error: 'string' has not been declared 391 | if(i2_end == string::npos) i2_end = str2.length(); | ^~~~~~ callbacks.cc:391:50: error: request for member 'length' in 'str2', which is of non-class type 'const int' 391 | if(i2_end == string::npos) i2_end = str2.length(); | ^~~~~~ callbacks.cc:394:43: error: request for member 'length' in 'str1', which is of non-class type 'const int' 394 | return i1 >= str1.length(); | ^~~~~~ callbacks.cc:396:31: error: request for member 'length' in 'str1', which is of non-class type 'const int' 396 | if(i1 >= str1.length()) break; | ^~~~~~ callbacks.cc:397:25: error: invalid types 'const int[size_t {aka long unsigned int}]' for array subscript 397 | if((str1[i1] < 0 && i1 + 1 < str1.length()) || (str2[i2] < 0 && i2 + 1 < str2.length())) { | ^ callbacks.cc:397:51: error: request for member 'length' in 'str1', which is of non-class type 'const int' 397 | if((str1[i1] < 0 && i1 + 1 < str1.length()) || (str2[i2] < 0 && i2 + 1 < str2.length())) { | ^~~~~~ callbacks.cc:397:69: error: invalid types 'const int[size_t {aka long unsigned int}]' for array subscript 397 | if((str1[i1] < 0 && i1 + 1 < str1.length()) || (str2[i2] < 0 && i2 + 1 < str2.length())) { | ^ callbacks.cc:397:95: error: request for member 'length' in 'str2', which is of non-class type 'const int' 397 | if((str1[i1] < 0 && i1 + 1 < str1.length()) || (str2[i2] < 0 && i2 + 1 < str2.length())) { | ^~~~~~ callbacks.cc:399:32: error: invalid types 'const int[size_t {aka long unsigned int}]' for array subscript 399 | if(str1[i1] < 0) { | ^ callbacks.cc:400:55: error: request for member 'length' in 'str1', which is of non-class type 'const int' 400 | while(iu1 + i1 < str1.length() && str1[i1 + iu1] < 0) { | ^~~~~~ callbacks.cc:400:71: error: invalid types 'const int[size_t {aka long unsigned int}]' for array subscript 400 | while(iu1 + i1 < str1.length() && str1[i1 + iu1] < 0) { | ^ callbacks.cc:404:32: error: invalid types 'const int[size_t {aka long unsigned int}]' for array subscript 404 | if(str2[i2] < 0) { | ^ callbacks.cc:405:55: error: request for member 'length' in 'str2', which is of non-class type 'const int' 405 | while(iu2 + i2 < str2.length() && str2[i2 + iu2] < 0) { | ^~~~~~ callbacks.cc:405:71: error: invalid types 'const int[size_t {aka long unsigned int}]' for array subscript 405 | while(iu2 + i2 < str2.length() && str2[i2 + iu2] < 0) { | ^ callbacks.cc:412:48: error: invalid types 'const int[size_t {aka long unsigned int}]' for array subscript 412 | if(str1[i1 + i] != str2[i2 + i]) { | ^ callbacks.cc:412:64: error: invalid types 'const int[size_t {aka long unsigned int}]' for array subscript 412 | if(str1[i1 + i] != str2[i2 + i]) { | ^ callbacks.cc:419:65: error: request for member 'c_str' in 'str1', which is of non-class type 'const int' 419 | char *gstr1 = utf8_strdown(str1.c_str() + (sizeof(char) * i1), iu1); | ^~~~~ callbacks.cc:420:65: error: request for member 'c_str' in 'str2', which is of non-class type 'const int' 420 | char *gstr2 = utf8_strdown(str2.c_str() + (sizeof(char) * i2), iu2); | ^~~~~ callbacks.cc:429:31: error: invalid types 'const int[size_t {aka long unsigned int}]' for array subscript 429 | } else if(str1[i1] != str2[i2] && !((str1[i1] >= 'a' && str1[i1] <= 'z') && str1[i1] - 32 == str2[i2]) && !((str1[i1] <= 'Z' && str1[i1] >= 'A') && str1[i1] + 32 == str2[i2])) { | ^ callbacks.cc:429:43: error: invalid types 'const int[size_t {aka long unsigned int}]' for array subscript 429 | } else if(str1[i1] != str2[i2] && !((str1[i1] >= 'a' && str1[i1] <= 'z') && str1[i1] - 32 == str2[i2]) && !((str1[i1] <= 'Z' && str1[i1] >= 'A') && str1[i1] + 32 == str2[i2])) { | ^ callbacks.cc:429:58: error: invalid types 'const int[size_t {aka long unsigned int}]' for array subscript 429 | } else if(str1[i1] != str2[i2] && !((str1[i1] >= 'a' && str1[i1] <= 'z') && str1[i1] - 32 == str2[i2]) && !((str1[i1] <= 'Z' && str1[i1] >= 'A') && str1[i1] + 32 == str2[i2])) { | ^ callbacks.cc:429:77: error: invalid types 'const int[size_t {aka long unsigned int}]' for array subscript 429 | } else if(str1[i1] != str2[i2] && !((str1[i1] >= 'a' && str1[i1] <= 'z') && str1[i1] - 32 == str2[i2]) && !((str1[i1] <= 'Z' && str1[i1] >= 'A') && str1[i1] + 32 == str2[i2])) { | ^ callbacks.cc:429:97: error: invalid types 'const int[size_t {aka long unsigned int}]' for array subscript 429 | } else if(str1[i1] != str2[i2] && !((str1[i1] >= 'a' && str1[i1] <= 'z') && str1[i1] - 32 == str2[i2]) && !((str1[i1] <= 'Z' && str1[i1] >= 'A') && str1[i1] + 32 == str2[i2])) { | ^ callbacks.cc:429:114: error: invalid types 'const int[size_t {aka long unsigned int}]' for array subscript 429 | } else if(str1[i1] != str2[i2] && !((str1[i1] >= 'a' && str1[i1] <= 'z') && str1[i1] - 32 == str2[i2]) && !((str1[i1] <= 'Z' && str1[i1] >= 'A') && str1[i1] + 32 == str2[i2])) { | ^ callbacks.cc:429:130: error: invalid types 'const int[size_t {aka long unsigned int}]' for array subscript 429 | } else if(str1[i1] != str2[i2] && !((str1[i1] >= 'a' && str1[i1] <= 'z') && str1[i1] - 32 == str2[i2]) && !((str1[i1] <= 'Z' && str1[i1] >= 'A') && str1[i1] + 32 == str2[i2])) { | ^ callbacks.cc:429:149: error: invalid types 'const int[size_t {aka long unsigned int}]' for array subscript 429 | } else if(str1[i1] != str2[i2] && !((str1[i1] >= 'a' && str1[i1] <= 'z') && str1[i1] - 32 == str2[i2]) && !((str1[i1] <= 'Z' && str1[i1] >= 'A') && str1[i1] + 32 == str2[i2])) { | ^ callbacks.cc:429:169: error: invalid types 'const int[size_t {aka long unsigned int}]' for array subscript 429 | } else if(str1[i1] != str2[i2] && !((str1[i1] >= 'a' && str1[i1] <= 'z') && str1[i1] - 32 == str2[i2]) && !((str1[i1] <= 'Z' && str1[i1] >= 'A') && str1[i1] + 32 == str2[i2])) { | ^ callbacks.cc:429:186: error: invalid types 'const int[size_t {aka long unsigned int}]' for array subscript 429 | } else if(str1[i1] != str2[i2] && !((str1[i1] >= 'a' && str1[i1] <= 'z') && str1[i1] - 32 == str2[i2]) && !((str1[i1] <= 'Z' && str1[i1] >= 'A') && str1[i1] + 32 == str2[i2])) { | ^ callbacks.cc: At global scope: callbacks.cc:437:48: error: 'string' does not name a type; did you mean 'GString'? 437 | bool title_matches(ExpressionItem *item, const string &str, size_t minlength = 0) { | ^~~~~~ | GString callbacks.cc: In function 'bool title_matches(ExpressionItem*, const int&, size_t)': callbacks.cc:438:15: error: 'string' does not name a type; did you mean 'GString'? 438 | const string &title = item->title(true); | ^~~~~~ | GString callbacks.cc:442:33: error: 'title' was not declared in this scope 442 | if(i >= title.length()) return false; | ^~~~~ callbacks.cc:443:28: error: 'title' was not declared in this scope 443 | if(title[i] != ' ') break; | ^~~~~ callbacks.cc:446:29: error: 'title' was not declared in this scope 446 | size_t i2 = title.find(' ', i); | ^~~~~ callbacks.cc:450:26: error: 'string' has not been declared 450 | if(i2 == string::npos) break; | ^~~~~~ callbacks.cc: At global scope: callbacks.cc:455:47: error: 'string' does not name a type; did you mean 'GString'? 455 | bool name_matches(ExpressionItem *item, const string &str) { | ^~~~~~ | GString callbacks.cc: In function 'bool name_matches(ExpressionItem*, const int&)': callbacks.cc:458:72: error: request for member 'length' in 'str', which is of non-class type 'const int' 458 | if(str == item->getName(i2).name.substr(0, str.length())) { | ^~~~~~ callbacks.cc:462:81: error: request for member 'length' in 'str', which is of non-class type 'const int' 462 | if(equalsIgnoreCase(str, item->getName(i2).name, 0, str.length(), 0)) { | ^~~~~~ callbacks.cc: At global scope: callbacks.cc:469:37: error: 'string' does not name a type; did you mean 'GString'? 469 | bool country_matches(Unit *u, const string &str, size_t minlength = 0) { | ^~~~~~ | GString callbacks.cc: In function 'bool country_matches(Unit*, const int&, size_t)': callbacks.cc:470:15: error: 'string' does not name a type; did you mean 'GString'? 470 | const string &countries = u->countries(); | ^~~~~~ | GString callbacks.cc:474:33: error: 'countries' was not declared in this scope 474 | if(i >= countries.length()) return false; | ^~~~~~~~~ callbacks.cc:475:28: error: 'countries' was not declared in this scope 475 | if(countries[i] != ' ') break; | ^~~~~~~~~ callbacks.cc:478:29: error: 'countries' was not declared in this scope 478 | size_t i2 = countries.find(',', i); | ^~~~~~~~~ callbacks.cc:482:26: error: 'string' has not been declared 482 | if(i2 == string::npos) break; | ^~~~~~ callbacks.cc: At global scope: callbacks.cc:487:29: error: 'string' was not declared in this scope 487 | bool completion_names_match(string name, const string &str, size_t minlength = 0) { | ^~~~~~ callbacks.cc:487:29: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:487:42: error: expected primary-expression before 'const' 487 | bool completion_names_match(string name, const string &str, size_t minlength = 0) { | ^~~~~ callbacks.cc:487:68: error: expected primary-expression before 'minlength' 487 | bool completion_names_match(string name, const string &str, size_t minlength = 0) { | ^~~~~~~~~ callbacks.cc:487:81: error: expression list treated as compound expression in initializer [-fpermissive] 487 | bool completion_names_match(string name, const string &str, size_t minlength = 0) { | ^ callbacks.cc:506:6: error: variable or field 'remove_separator' declared void 506 | void remove_separator(string ©_text) { | ^~~~~~~~~~~~~~~~ callbacks.cc:506:23: error: 'string' was not declared in this scope 506 | void remove_separator(string ©_text) { | ^~~~~~ callbacks.cc:506:23: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:506:31: error: 'copy_text' was not declared in this scope 506 | void remove_separator(string ©_text) { | ^~~~~~~~~ callbacks.cc: In function 'void show_help(const char*, GObject*)': callbacks.cc:525:9: error: 'string' was not declared in this scope 525 | string surl; | ^~~~~~ callbacks.cc:525:9: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:553:9: error: 'surl' was not declared in this scope 553 | surl = "file://" PACKAGE_DOC_DIR "/html/"; | ^~~~ callbacks.cc: At global scope: callbacks.cc:571:6: error: variable or field 'fix_history_string2' declared void 571 | void fix_history_string2(string &str) { | ^~~~~~~~~~~~~~~~~~~ callbacks.cc:571:26: error: 'string' was not declared in this scope 571 | void fix_history_string2(string &str) { | ^~~~~~ callbacks.cc:571:26: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:571:34: error: 'str' was not declared in this scope; did you mean 'std'? 571 | void fix_history_string2(string &str) { | ^~~ | std callbacks.cc:576:1: error: 'string' does not name a type; did you mean 'GString'? 576 | string fix_history_string(const string &str2) { | ^~~~~~ | GString callbacks.cc:583:6: error: variable or field 'unfix_history_string' declared void 583 | void unfix_history_string(string &str) { | ^~~~~~~~~~~~~~~~~~~~ callbacks.cc:583:27: error: 'string' was not declared in this scope 583 | void unfix_history_string(string &str) { | ^~~~~~ callbacks.cc:583:27: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:583:35: error: 'str' was not declared in this scope; did you mean 'std'? 583 | void unfix_history_string(string &str) { | ^~~ | std callbacks.cc:588:6: error: variable or field 'improve_result_text' declared void 588 | void improve_result_text(string &resstr) { | ^~~~~~~~~~~~~~~~~~~ callbacks.cc:588:26: error: 'string' was not declared in this scope 588 | void improve_result_text(string &resstr) { | ^~~~~~ callbacks.cc:588:26: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:588:34: error: 'resstr' was not declared in this scope; did you mean 'wcsstr'? 588 | void improve_result_text(string &resstr) { | ^~~~~~ | wcsstr callbacks.cc:660:1: error: 'string' does not name a type; did you mean 'GString'? 660 | string get_expression_text() { | ^~~~~~ | GString callbacks.cc:669:1: error: 'string' does not name a type; did you mean 'GString'? 669 | string get_selected_expression_text(bool return_all_if_no_sel = false) { | ^~~~~~ | GString callbacks.cc: In function 'void add_expression_to_undo()': callbacks.cc:686:12: error: 'expression_undo_buffer' was not declared in this scope; did you mean 'expressionbuffer'? 686 | if(expression_undo_buffer.size() > 100) expression_undo_buffer.pop_front(); | ^~~~~~~~~~~~~~~~~~~~~~ | expressionbuffer callbacks.cc:688:28: error: 'expression_undo_buffer' was not declared in this scope; did you mean 'expressionbuffer'? 688 | while(undo_index < expression_undo_buffer.size()) { | ^~~~~~~~~~~~~~~~~~~~~~ | expressionbuffer callbacks.cc:691:9: error: 'expression_undo_buffer' was not declared in this scope; did you mean 'expressionbuffer'? 691 | expression_undo_buffer.push_back(get_expression_text()); | ^~~~~~~~~~~~~~~~~~~~~~ | expressionbuffer callbacks.cc:691:42: error: 'get_expression_text' was not declared in this scope; did you mean 'expressiontext'? 691 | expression_undo_buffer.push_back(get_expression_text()); | ^~~~~~~~~~~~~~~~~~~ | expressiontext callbacks.cc: At global scope: callbacks.cc:721:1: error: 'string' does not name a type; did you mean 'GString'? 721 | string sdot, saltdot, sdiv, sslash, stimes, sminus; | ^~~~~~ | GString callbacks.cc:722:1: error: 'string' does not name a type; did you mean 'GString'? 722 | string sdot_s, saltdot_s, sdiv_s, sslash_s, stimes_s, sminus_s; | ^~~~~~ | GString callbacks.cc: In function 'void set_operator_symbols()': callbacks.cc:725:91: error: 'sminus' was not declared in this scope 725 | if(can_display_unicode_string_function_exact(SIGN_MINUS, (void*) expressiontext)) sminus = SIGN_MINUS; | ^~~~~~ callbacks.cc:726:14: error: 'sminus' was not declared in this scope 726 | else sminus = "-"; | ^~~~~~ callbacks.cc:727:88: error: 'sdiv' was not declared in this scope; did you mean 'ldiv'? 727 | if(can_display_unicode_string_function(SIGN_DIVISION, (void*) expressiontext)) sdiv = SIGN_DIVISION; | ^~~~ | ldiv callbacks.cc:728:14: error: 'sdiv' was not declared in this scope; did you mean 'ldiv'? 728 | else sdiv = "/"; | ^~~~ | ldiv callbacks.cc:729:9: error: 'sslash' was not declared in this scope 729 | sslash = "/"; | ^~~~~~ callbacks.cc:730:88: error: 'sdot' was not declared in this scope; did you mean 'stdout'? 730 | if(can_display_unicode_string_function(SIGN_MULTIDOT, (void*) expressiontext)) sdot = SIGN_MULTIDOT; | ^~~~ | stdout callbacks.cc:731:14: error: 'sdot' was not declared in this scope; did you mean 'stdout'? 731 | else sdot = "*"; | ^~~~ | stdout callbacks.cc:732:89: error: 'saltdot' was not declared in this scope 732 | if(can_display_unicode_string_function(SIGN_MIDDLEDOT, (void*) expressiontext)) saltdot = SIGN_MIDDLEDOT; | ^~~~~~~ callbacks.cc:733:14: error: 'saltdot' was not declared in this scope 733 | else saltdot = "*"; | ^~~~~~~ callbacks.cc:734:94: error: 'stimes' was not declared in this scope; did you mean 'utimes'? 734 | if(can_display_unicode_string_function(SIGN_MULTIPLICATION, (void*) expressiontext)) stimes = SIGN_MULTIPLICATION; | ^~~~~~ | utimes callbacks.cc:735:14: error: 'stimes' was not declared in this scope; did you mean 'utimes'? 735 | else stimes = "*"; | ^~~~~~ | utimes callbacks.cc:737:90: error: 'sminus_s' was not declared in this scope 737 | if(can_display_unicode_string_function_exact(SIGN_MINUS, (void*) statuslabel_l)) sminus_s = SIGN_MINUS; | ^~~~~~~~ callbacks.cc:738:14: error: 'sminus_s' was not declared in this scope 738 | else sminus_s = "-"; | ^~~~~~~~ callbacks.cc:739:87: error: 'sdiv_s' was not declared in this scope; did you mean 'ldiv_t'? 739 | if(can_display_unicode_string_function(SIGN_DIVISION, (void*) statuslabel_l)) sdiv_s = SIGN_DIVISION; | ^~~~~~ | ldiv_t callbacks.cc:740:14: error: 'sdiv_s' was not declared in this scope; did you mean 'ldiv_t'? 740 | else sdiv_s = "/"; | ^~~~~~ | ldiv_t callbacks.cc:741:93: error: 'sslash_s' was not declared in this scope 741 | if(can_display_unicode_string_function_exact(SIGN_DIVISION, (void*) statuslabel_l)) sslash_s = SIGN_DIVISION_SLASH; | ^~~~~~~~ callbacks.cc:742:14: error: 'sslash_s' was not declared in this scope 742 | else sslash_s = "/"; | ^~~~~~~~ callbacks.cc:743:87: error: 'sdot_s' was not declared in this scope 743 | if(can_display_unicode_string_function(SIGN_MULTIDOT, (void*) statuslabel_l)) sdot_s = SIGN_MULTIDOT; | ^~~~~~ callbacks.cc:744:14: error: 'sdot_s' was not declared in this scope 744 | else sdot_s = "*"; | ^~~~~~ callbacks.cc:745:88: error: 'saltdot_s' was not declared in this scope 745 | if(can_display_unicode_string_function(SIGN_MIDDLEDOT, (void*) statuslabel_l)) saltdot_s = SIGN_MIDDLEDOT; | ^~~~~~~~~ callbacks.cc:746:14: error: 'saltdot_s' was not declared in this scope 746 | else saltdot_s = "*"; | ^~~~~~~~~ callbacks.cc:747:93: error: 'stimes_s' was not declared in this scope; did you mean 'utimes'? 747 | if(can_display_unicode_string_function(SIGN_MULTIPLICATION, (void*) statuslabel_l)) stimes_s = SIGN_MULTIPLICATION; | ^~~~~~~~ | utimes callbacks.cc:748:14: error: 'stimes_s' was not declared in this scope; did you mean 'utimes'? 748 | else stimes_s = "*"; | ^~~~~~~~ | utimes callbacks.cc: In function 'const char* expression_sub_sign()': callbacks.cc:757:16: error: 'sminus' was not declared in this scope 757 | return sminus.c_str(); | ^~~~~~ callbacks.cc: In function 'const char* expression_times_sign()': callbacks.cc:760:106: error: 'sdot' was not declared in this scope; did you mean 'stdout'? 760 | if(printops.use_unicode_signs && printops.multiplication_sign == MULTIPLICATION_SIGN_DOT) return sdot.c_str(); | ^~~~ | stdout callbacks.cc:761:114: error: 'saltdot' was not declared in this scope 761 | else if(printops.use_unicode_signs && printops.multiplication_sign == MULTIPLICATION_SIGN_ALTDOT) return saltdot.c_str(); | ^~~~~~~ callbacks.cc:762:109: error: 'stimes' was not declared in this scope; did you mean 'utimes'? 762 | else if(printops.use_unicode_signs && printops.multiplication_sign == MULTIPLICATION_SIGN_X) return stimes.c_str(); | ^~~~~~ | utimes callbacks.cc: In function 'const char* expression_divide_sign()': callbacks.cc:767:69: error: 'sdiv' was not declared in this scope; did you mean 'ldiv'? 767 | if(printops.division_sign == DIVISION_SIGN_DIVISION) return sdiv.c_str(); | ^~~~ | ldiv callbacks.cc:768:16: error: 'sslash' was not declared in this scope 768 | return sslash.c_str(); | ^~~~~~ callbacks.cc: In function 'void set_unicode_buttons()': callbacks.cc:897:101: error: 'string' was not declared in this scope 897 | gtk_label_set_markup(GTK_LABEL(gtk_builder_get_object(main_builder, "label_dot")), (string("") + CALCULATOR->getDecimalPoint() + "").c_str()); | ^~~~~~ callbacks.cc:897:101: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:936:101: error: 'string' was not declared in this scope 936 | gtk_label_set_markup(GTK_LABEL(gtk_builder_get_object(main_builder, "label_dot")), (string("") + CALCULATOR->getDecimalPoint() + "").c_str()); | ^~~~~~ callbacks.cc:936:101: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:953:100: error: 'string' was not declared in this scope 953 | gtk_label_set_markup(GTK_LABEL(gtk_builder_get_object(main_builder, "label_history_xy")), (string("x") + SUP_STRING("y")).c_str()); | ^~~~~~ callbacks.cc:953:100: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc: At global scope: callbacks.cc:989:6: error: redefinition of 'bool string_is_less' 989 | bool string_is_less(string str1, string str2) { | ^~~~~~~~~~~~~~ callbacks.h:75:6: note: 'bool string_is_less' previously defined here 75 | bool string_is_less(string str1, string str2); | ^~~~~~~~~~~~~~ callbacks.cc:989:21: error: 'string' was not declared in this scope 989 | bool string_is_less(string str1, string str2) { | ^~~~~~ callbacks.cc:989:21: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:989:34: error: 'string' was not declared in this scope 989 | bool string_is_less(string str1, string str2) { | ^~~~~~ callbacks.cc:989:34: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:1002:9: error: 'string' does not name a type; did you mean 'GString'? 1002 | string item; | ^~~~~~ | GString callbacks.cc:1003:9: error: 'list' does not name a type 1003 | list items; | ^~~~ callbacks.cc:1004:9: error: 'list' does not name a type 1004 | list::iterator it; | ^~~~ callbacks.cc:1005:9: error: 'list' does not name a type 1005 | list::reverse_iterator rit; | ^~~~ callbacks.cc:1006:9: error: 'vector' does not name a type; did you mean 'Vector'? 1006 | vector objects; | ^~~~~~ | Vector callbacks.cc: In member function 'void tree_struct::sort()': callbacks.cc:1009:17: error: 'items' was not declared in this scope 1009 | items.sort(); | ^~~~~ callbacks.cc:1010:21: error: 'list' was not declared in this scope 1010 | for(list::iterator it = items.begin(); it != items.end(); ++it) { | ^~~~ callbacks.cc:1010:21: note: suggested alternatives: In file included from /usr/include/c++/12.2.0/list:63, from /usr/include/libqalculate/includes.h:20: /usr/include/c++/12.2.0/bits/stl_list.h:632:11: note: 'std::__cxx11::list' 632 | class list : protected _List_base<_Tp, _Alloc> | ^~~~ /usr/include/c++/12.2.0/list:78:13: note: 'std::pmr::list' 78 | using list = std::list<_Tp, polymorphic_allocator<_Tp>>; | ^~~~ callbacks.cc:1010:37: error: expected primary-expression before '>' token 1010 | for(list::iterator it = items.begin(); it != items.end(); ++it) { | ^ callbacks.cc:1010:40: error: '::iterator' has not been declared; did you mean 'std::iterator'? 1010 | for(list::iterator it = items.begin(); it != items.end(); ++it) { | ^~~~~~~~ | std::iterator In file included from /usr/include/c++/12.2.0/bits/stl_algobase.h:65, from /usr/include/c++/12.2.0/vector:60, from /usr/include/libqalculate/includes.h:17: /usr/include/c++/12.2.0/bits/stl_iterator_base_types.h:127:34: note: 'std::iterator' declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ callbacks.cc:1010:69: error: 'it' was not declared in this scope; did you mean 'int'? 1010 | for(list::iterator it = items.begin(); it != items.end(); ++it) { | ^~ | int callbacks.cc: In member function 'bool tree_struct::operator<(const tree_struct&) const': callbacks.cc:1015:39: error: 'item' was not declared in this scope; did you mean 'tm'? 1015 | return string_is_less(item, s1.item); | ^~~~ | tm callbacks.cc:1015:48: error: 'const struct tree_struct' has no member named 'item' 1015 | return string_is_less(item, s1.item); | ^~~~ callbacks.cc:1015:52: error: 'string_is_less' cannot be used as a function 1015 | return string_is_less(item, s1.item); | ^ callbacks.cc: At global scope: callbacks.cc:1020:1: error: 'vector' does not name a type; did you mean 'Vector'? 1020 | vector ia_units, ia_variables, ia_functions; | ^~~~~~ | Vector callbacks.cc:1021:1: error: 'vector' does not name a type; did you mean 'Vector'? 1021 | vector recent_functions_pre; | ^~~~~~ | Vector callbacks.cc:1022:1: error: 'vector' does not name a type; did you mean 'Vector'? 1022 | vector recent_variables_pre; | ^~~~~~ | Vector callbacks.cc:1023:1: error: 'vector' does not name a type; did you mean 'Vector'? 1023 | vector recent_units_pre; | ^~~~~~ | Vector callbacks.cc:1024:1: error: 'vector' does not name a type; did you mean 'Vector'? 1024 | vector recent_function_items; | ^~~~~~ | Vector callbacks.cc:1025:1: error: 'vector' does not name a type; did you mean 'Vector'? 1025 | vector recent_variable_items; | ^~~~~~ | Vector callbacks.cc:1026:1: error: 'vector' does not name a type; did you mean 'Vector'? 1026 | vector recent_unit_items; | ^~~~~~ | Vector callbacks.cc:1027:1: error: 'vector' does not name a type; did you mean 'Vector'? 1027 | vector recent_functions; | ^~~~~~ | Vector callbacks.cc:1028:1: error: 'vector' does not name a type; did you mean 'Vector'? 1028 | vector recent_variables; | ^~~~~~ | Vector callbacks.cc:1029:1: error: 'vector' does not name a type; did you mean 'Vector'? 1029 | vector recent_units; | ^~~~~~ | Vector callbacks.cc:1031:1: error: 'string' does not name a type; did you mean 'GString'? 1031 | string latest_button_unit_pre, latest_button_currency_pre; | ^~~~~~ | GString callbacks.cc:1077:6: error: variable or field 'set_status_text' declared void 1077 | void set_status_text(string text, bool break_begin = false, bool had_errors = false, bool had_warnings = false) { | ^~~~~~~~~~~~~~~ callbacks.cc:1077:22: error: 'string' was not declared in this scope 1077 | void set_status_text(string text, bool break_begin = false, bool had_errors = false, bool had_warnings = false) { | ^~~~~~ callbacks.cc:1077:22: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:1077:35: error: expected primary-expression before 'bool' 1077 | void set_status_text(string text, bool break_begin = false, bool had_errors = false, bool had_warnings = false) { | ^~~~ callbacks.cc:1077:61: error: expected primary-expression before 'bool' 1077 | void set_status_text(string text, bool break_begin = false, bool had_errors = false, bool had_warnings = false) { | ^~~~ callbacks.cc:1077:86: error: expected primary-expression before 'bool' 1077 | void set_status_text(string text, bool break_begin = false, bool had_errors = false, bool had_warnings = false) { | ^~~~ callbacks.cc: In function 'void update_status_text()': callbacks.cc:1104:9: error: 'string' was not declared in this scope 1104 | string str = ""; | ^~~~~~ callbacks.cc:1104:9: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:1075:31: error: 'str' was not declared in this scope; did you mean 'std'? 1075 | #define STATUS_SPACE if(b) str += " "; else b = true; | ^~~ callbacks.cc:1075:31: note: in definition of macro 'STATUS_SPACE' 1075 | #define STATUS_SPACE if(b) str += " "; else b = true; | ^~~ callbacks.cc:1109:17: error: 'str' was not declared in this scope; did you mean 'std'? 1109 | str += _("EXACT"); | ^~~ | std callbacks.cc:1075:31: error: 'str' was not declared in this scope; did you mean 'std'? 1075 | #define STATUS_SPACE if(b) str += " "; else b = true; | ^~~ callbacks.cc:1075:31: note: in definition of macro 'STATUS_SPACE' 1075 | #define STATUS_SPACE if(b) str += " "; else b = true; | ^~~ callbacks.cc:1112:17: error: 'str' was not declared in this scope; did you mean 'std'? 1112 | str += _("APPROX"); | ^~~ | std callbacks.cc:1075:31: error: 'str' was not declared in this scope; did you mean 'std'? 1075 | #define STATUS_SPACE if(b) str += " "; else b = true; | ^~~ callbacks.cc:1075:31: note: in definition of macro 'STATUS_SPACE' 1075 | #define STATUS_SPACE if(b) str += " "; else b = true; | ^~~ callbacks.cc:1116:17: error: 'str' was not declared in this scope; did you mean 'std'? 1116 | str += _("RPN"); | ^~~ | std callbacks.cc:1075:31: error: 'str' was not declared in this scope; did you mean 'std'? 1075 | #define STATUS_SPACE if(b) str += " "; else b = true; | ^~~ callbacks.cc:1075:31: note: in definition of macro 'STATUS_SPACE' 1075 | #define STATUS_SPACE if(b) str += " "; else b = true; | ^~~ callbacks.cc:1124:25: error: 'str' was not declared in this scope; did you mean 'std'? 1124 | str += _("BIN"); | ^~~ | std callbacks.cc:1075:31: error: 'str' was not declared in this scope; did you mean 'std'? 1075 | #define STATUS_SPACE if(b) str += " "; else b = true; | ^~~ callbacks.cc:1075:31: note: in definition of macro 'STATUS_SPACE' 1075 | #define STATUS_SPACE if(b) str += " "; else b = true; | ^~~ callbacks.cc:1129:25: error: 'str' was not declared in this scope; did you mean 'std'? 1129 | str += _("OCT"); | ^~~ | std callbacks.cc:1075:31: error: 'str' was not declared in this scope; did you mean 'std'? 1075 | #define STATUS_SPACE if(b) str += " "; else b = true; | ^~~ callbacks.cc:1075:31: note: in definition of macro 'STATUS_SPACE' 1075 | #define STATUS_SPACE if(b) str += " "; else b = true; | ^~~ callbacks.cc:1134:25: error: 'str' was not declared in this scope; did you mean 'std'? 1134 | str += _("DUO"); | ^~~ | std callbacks.cc:1075:31: error: 'str' was not declared in this scope; did you mean 'std'? 1075 | #define STATUS_SPACE if(b) str += " "; else b = true; | ^~~ callbacks.cc:1075:31: note: in definition of macro 'STATUS_SPACE' 1075 | #define STATUS_SPACE if(b) str += " "; else b = true; | ^~~ callbacks.cc:1139:25: error: 'str' was not declared in this scope; did you mean 'std'? 1139 | str += _("HEX"); | ^~~ | std callbacks.cc:1075:31: error: 'str' was not declared in this scope; did you mean 'std'? 1075 | #define STATUS_SPACE if(b) str += " "; else b = true; | ^~~ callbacks.cc:1075:31: note: in definition of macro 'STATUS_SPACE' 1075 | #define STATUS_SPACE if(b) str += " "; else b = true; | ^~~ callbacks.cc:1144:25: error: 'str' was not declared in this scope; did you mean 'std'? 1144 | str += _("ROMAN"); | ^~~ | std callbacks.cc:1075:31: error: 'str' was not declared in this scope; did you mean 'std'? 1075 | #define STATUS_SPACE if(b) str += " "; else b = true; | ^~~ callbacks.cc:1075:31: note: in definition of macro 'STATUS_SPACE' 1075 | #define STATUS_SPACE if(b) str += " "; else b = true; | ^~~ callbacks.cc:1149:25: error: 'str' was not declared in this scope; did you mean 'std'? 1149 | str += i2s(evalops.parse_options.base); | ^~~ | std callbacks.cc:1075:31: error: 'str' was not declared in this scope; did you mean 'std'? 1075 | #define STATUS_SPACE if(b) str += " "; else b = true; | ^~~ callbacks.cc:1075:31: note: in definition of macro 'STATUS_SPACE' 1075 | #define STATUS_SPACE if(b) str += " "; else b = true; | ^~~ callbacks.cc:1156:25: error: 'str' was not declared in this scope; did you mean 'std'? 1156 | str += _("DEG"); | ^~~ | std callbacks.cc:1075:31: error: 'str' was not declared in this scope; did you mean 'std'? 1075 | #define STATUS_SPACE if(b) str += " "; else b = true; | ^~~ callbacks.cc:1075:31: note: in definition of macro 'STATUS_SPACE' 1075 | #define STATUS_SPACE if(b) str += " "; else b = true; | ^~~ callbacks.cc:1161:25: error: 'str' was not declared in this scope; did you mean 'std'? 1161 | str += _("RAD"); | ^~~ | std callbacks.cc:1075:31: error: 'str' was not declared in this scope; did you mean 'std'? 1075 | #define STATUS_SPACE if(b) str += " "; else b = true; | ^~~ callbacks.cc:1075:31: note: in definition of macro 'STATUS_SPACE' 1075 | #define STATUS_SPACE if(b) str += " "; else b = true; | ^~~ callbacks.cc:1166:25: error: 'str' was not declared in this scope; did you mean 'std'? 1166 | str += _("GRA"); | ^~~ | std callbacks.cc:1075:31: error: 'str' was not declared in this scope; did you mean 'std'? 1075 | #define STATUS_SPACE if(b) str += " "; else b = true; | ^~~ callbacks.cc:1075:31: note: in definition of macro 'STATUS_SPACE' 1075 | #define STATUS_SPACE if(b) str += " "; else b = true; | ^~~ callbacks.cc:1173:17: error: 'str' was not declared in this scope; did you mean 'std'? 1173 | str += _("PREC"); | ^~~ | std callbacks.cc:1075:31: error: 'str' was not declared in this scope; did you mean 'std'? 1075 | #define STATUS_SPACE if(b) str += " "; else b = true; | ^~~ callbacks.cc:1075:31: note: in definition of macro 'STATUS_SPACE' 1075 | #define STATUS_SPACE if(b) str += " "; else b = true; | ^~~ callbacks.cc:1177:17: error: 'str' was not declared in this scope; did you mean 'std'? 1177 | str += ""; | ^~~ | std callbacks.cc:1075:31: error: 'str' was not declared in this scope; did you mean 'std'? 1075 | #define STATUS_SPACE if(b) str += " "; else b = true; | ^~~ callbacks.cc:1075:31: note: in definition of macro 'STATUS_SPACE' 1075 | #define STATUS_SPACE if(b) str += " "; else b = true; | ^~~ callbacks.cc:1183:17: error: 'str' was not declared in this scope; did you mean 'std'? 1183 | str += ""; | ^~~ | std callbacks.cc:1075:31: error: 'str' was not declared in this scope; did you mean 'std'? 1075 | #define STATUS_SPACE if(b) str += " "; else b = true; | ^~~ callbacks.cc:1075:31: note: in definition of macro 'STATUS_SPACE' 1075 | #define STATUS_SPACE if(b) str += " "; else b = true; | ^~~ callbacks.cc:1189:17: error: 'str' was not declared in this scope; did you mean 'std'? 1189 | str += ""; | ^~~ | std callbacks.cc:1075:31: error: 'str' was not declared in this scope; did you mean 'std'? 1075 | #define STATUS_SPACE if(b) str += " "; else b = true; | ^~~ callbacks.cc:1075:31: note: in definition of macro 'STATUS_SPACE' 1075 | #define STATUS_SPACE if(b) str += " "; else b = true; | ^~~ callbacks.cc:1195:17: error: 'str' was not declared in this scope; did you mean 'std'? 1195 | str += ""; | ^~~ | std callbacks.cc:1075:31: error: 'str' was not declared in this scope; did you mean 'std'? 1075 | #define STATUS_SPACE if(b) str += " "; else b = true; | ^~~ callbacks.cc:1075:31: note: in definition of macro 'STATUS_SPACE' 1075 | #define STATUS_SPACE if(b) str += " "; else b = true; | ^~~ callbacks.cc:1201:17: error: 'str' was not declared in this scope; did you mean 'std'? 1201 | str += ""; | ^~~ | std callbacks.cc:1206:27: error: 'str' was not declared in this scope; did you mean 'std'? 1206 | remove_blank_ends(str); | ^~~ | std callbacks.cc: In function 'bool check_exchange_rates(GtkWidget*, bool)': callbacks.cc:1253:75: error: invalid conversion from 'const char*' to 'int' [-fpermissive] 1253 | if(!b && set_result) setResult(NULL, false, false, false, "", 0, false); | ^~ | | | const char* callbacks.h:127:121: note: initializing argument 5 of 'void setResult(Prefix*, bool, bool, bool, int, size_t, bool)' 127 | void setResult(Prefix *prefix = NULL, bool update_history = true, bool update_parse = false, bool force = false, string transformation = "", size_t stack_index = 0, bool register_moved = false); | ~~~~~~~^~~~~~~~~~~~~~~~~~~ callbacks.cc: In function 'void display_errors(int*, GtkWidget*, int*, int)': callbacks.cc:1268:9: error: 'string' was not declared in this scope 1268 | string str = ""; | ^~~~~~ callbacks.cc:1268:9: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:1279:48: error: 'str' was not declared in this scope; did you mean 'std'? 1279 | if(index == 1) str = "• " + str; | ^~~ | std callbacks.cc:1280:33: error: 'str' was not declared in this scope; did you mean 'std'? 1280 | str += "\n• "; | ^~~ | std callbacks.cc:1282:25: error: 'str' was not declared in this scope; did you mean 'std'? 1282 | str += CALCULATOR->message()->message(); | ^~~ | std callbacks.cc:1288:41: error: 'inhistory' was not declared in this scope 1288 | inhistory.insert(inhistory.begin() + *inhistory_index, CALCULATOR->message()->message()); | ^~~~~~~~~ callbacks.cc:1289:41: error: 'inhistory_type' was not declared in this scope; did you mean 'inhistory_added'? 1289 | inhistory_type.insert(inhistory_type.begin() + *inhistory_index, QALCULATE_HISTORY_ERROR); | ^~~~~~~~~~~~~~ | inhistory_added callbacks.cc:1290:47: error: expected ';' before 'history_message' 1290 | string history_message = "- "; | ^~~~~~~~~~~~~~~~ | ; callbacks.cc:1291:41: error: 'history_message' was not declared in this scope; did you mean 'show_message'? 1291 | history_message += CALCULATOR->message()->message(); | ^~~~~~~~~~~~~~~ | show_message callbacks.cc:1292:41: error: 'add_line_breaks' was not declared in this scope 1292 | add_line_breaks(history_message, false, 2); | ^~~~~~~~~~~~~~~ callbacks.cc:1293:47: error: expected ';' before 'history_str' 1293 | string history_str = "message()->message()); | ^~~~~~~~~ callbacks.cc:1302:41: error: 'inhistory_type' was not declared in this scope; did you mean 'inhistory_added'? 1302 | inhistory_type.insert(inhistory_type.begin() + *inhistory_index, QALCULATE_HISTORY_WARNING); | ^~~~~~~~~~~~~~ | inhistory_added callbacks.cc:1303:47: error: expected ';' before 'history_message' 1303 | string history_message = "- "; | ^~~~~~~~~~~~~~~~ | ; callbacks.cc:1304:41: error: 'history_message' was not declared in this scope; did you mean 'show_message'? 1304 | history_message += CALCULATOR->message()->message(); | ^~~~~~~~~~~~~~~ | show_message callbacks.cc:1305:41: error: 'add_line_breaks' was not declared in this scope 1305 | add_line_breaks(history_message, false, 2); | ^~~~~~~~~~~~~~~ callbacks.cc:1306:47: error: expected ';' before 'history_str' 1306 | string history_str = " string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:1420:68: error: 'new_version' was not declared in this scope; did you mean 'hb_version'? 1420 | int ret = checkAvailableVersion("qalculate-gtk", VERSION, &new_version, 5); | ^~~~~~~~~~~ | hb_version callbacks.cc:1422:38: error: 'last_found_version' was not declared in this scope 1422 | if(ret > 0 && new_version != last_found_version) { | ^~~~~~~~~~~~~~~~~~ callbacks.cc: In function 'bool display_function_hint(MathFunction*, int)': callbacks.cc:1448:9: error: 'string' was not declared in this scope 1448 | string str, str2, str3; | ^~~~~~ callbacks.cc:1448:9: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:1456:17: error: 'set_status_text' was not declared in this scope; did you mean 'update_status_text'? 1456 | set_status_text(gstr, false, false, true); | ^~~~~~~~~~~~~~~ | update_status_text callbacks.cc:1460:9: error: 'str' was not declared in this scope; did you mean 'std'? 1460 | str += ename->name; | ^~~ | std callbacks.cc:1480:33: error: 'str2' was not declared in this scope 1480 | str2 = arg->name(); | ^~~~ callbacks.cc:1482:33: error: 'str2' was not declared in this scope 1482 | str2 = _("argument"); | ^~~~ callbacks.cc:1488:60: error: 'str3' was not declared in this scope 1488 | if(i_reduced == 2) str3 = arg->print(); | ^~~~ callbacks.cc:1489:46: error: 'str3' was not declared in this scope 1489 | else str3 = arg->printlong(); | ^~~~ callbacks.cc:1492:60: error: 'str3' was not declared in this scope 1492 | if(i_reduced == 2) str3 = arg_default.print(); | ^~~~ callbacks.cc:1493:46: error: 'str3' was not declared in this scope 1493 | else str3 = arg_default.printlong(); | ^~~~ callbacks.cc:1495:37: error: 'str3' was not declared in this scope 1495 | if(!str3.empty()) { | ^~~~ callbacks.cc:1496:41: error: 'str2' was not declared in this scope 1496 | str2 += ": "; | ^~~~ callbacks.cc:1499:52: error: 'str2' was not declared in this scope 1499 | gsub("&", "&", str2); | ^~~~ callbacks.cc:1525:52: error: 'str2' was not declared in this scope 1525 | gsub("&", "&", str2); | ^~~~ callbacks.cc:1540:9: error: 'set_status_text' was not declared in this scope; did you mean 'update_status_text'? 1540 | set_status_text(str); | ^~~~~~~~~~~~~~~ | update_status_text callbacks.cc: In function 'void display_parse_status()': callbacks.cc:1551:9: error: 'string' was not declared in this scope 1551 | string text = gtext; | ^~~~~~ callbacks.cc:1551:9: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:1553:12: error: 'text' was not declared in this scope; did you mean 'gtext'? 1553 | if(text.empty()) { | ^~~~ | gtext callbacks.cc:1554:17: error: 'set_status_text' was not declared in this scope; did you mean 'update_status_text'? 1554 | set_status_text("", true, false, false); | ^~~~~~~~~~~~~~~ | update_status_text callbacks.cc:1555:17: error: 'parsed_expression' was not declared in this scope; did you mean 'f_expression'? 1555 | parsed_expression = ""; | ^~~~~~~~~~~~~~~~~ | f_expression callbacks.cc:1564:15: error: expected ';' before 'str_e' 1564 | string str_e, str_u; | ^~~~~~ | ; callbacks.cc:1572:25: error: 'str_e' was not declared in this scope; did you mean 'strsep'? 1572 | str_e = CALCULATOR->unlocalizeExpression(gtext, evalops.parse_options); | ^~~~~ | strsep callbacks.cc:1573:69: error: 'str_u' was not declared in this scope; did you mean 'strdup'? 1573 | if(!CALCULATOR->separateToExpression(str_e, str_u, evalops, false, true)) { | ^~~~~ | strdup callbacks.cc:1578:25: error: 'str_e' was not declared in this scope; did you mean 'strsep'? 1578 | str_e = CALCULATOR->unlocalizeExpression(text, evalops.parse_options); | ^~~~~ | strsep callbacks.cc:1578:66: error: 'text' was not declared in this scope; did you mean 'gtext'? 1578 | str_e = CALCULATOR->unlocalizeExpression(text, evalops.parse_options); | ^~~~ | gtext callbacks.cc:1579:69: error: 'str_u' was not declared in this scope; did you mean 'strdup'? 1579 | if(!CALCULATOR->separateToExpression(str_e, str_u, evalops, false, true)) { | ^~~~~ | strdup callbacks.cc:1600:25: error: 'str_e' was not declared in this scope; did you mean 'strsep'? 1600 | str_e = CALCULATOR->unlocalizeExpression(text, evalops.parse_options); | ^~~~~ | strsep callbacks.cc:1600:66: error: 'text' was not declared in this scope; did you mean 'gtext'? 1600 | str_e = CALCULATOR->unlocalizeExpression(text, evalops.parse_options); | ^~~~ | gtext callbacks.cc:1601:65: error: 'str_u' was not declared in this scope; did you mean 'strdup'? 1601 | CALCULATOR->separateToExpression(str_e, str_u, evalops, false, true); | ^~~~~ | strdup callbacks.cc:1630:20: error: 'str_e' was not declared in this scope; did you mean 'strsep'? 1630 | if(str_e.empty()) { | ^~~~~ | strsep callbacks.cc:1631:25: error: 'parsed_expression' was not declared in this scope; did you mean 'f_expression'? 1631 | parsed_expression = ""; | ^~~~~~~~~~~~~~~~~ | f_expression callbacks.cc:1634:25: error: 'parsed_expression' was not declared in this scope; did you mean 'f_expression'? 1634 | parsed_expression = mparse.print(po); | ^~~~~~~~~~~~~~~~~ | f_expression callbacks.cc:1636:21: error: 'str_u' was not declared in this scope; did you mean 'strdup'? 1636 | if(!str_u.empty()) { | ^~~~~ | strdup callbacks.cc:1637:28: error: 'parsed_expression' was not declared in this scope; did you mean 'f_expression'? 1637 | if(parsed_expression.empty()) { | ^~~~~~~~~~~~~~~~~ | f_expression callbacks.cc:1644:31: error: expected ';' before 'to_str1' 1644 | string to_str1, to_str2; | ^~~~~~~~ | ; callbacks.cc:1646:38: error: 'string' is not a class, namespace, or enumeration 1646 | if(ispace != string::npos) { | ^~~~~~ callbacks.cc:1647:33: error: 'to_str1' was not declared in this scope 1647 | to_str1 = str_u.substr(0, ispace); | ^~~~~~~ callbacks.cc:1649:33: error: 'to_str2' was not declared in this scope 1649 | to_str2 = str_u.substr(ispace + 1); | ^~~~~~~ callbacks.cc:1653:33: error: 'parsed_expression' was not declared in this scope; did you mean 'f_expression'? 1653 | parsed_expression += _("hexadecimal number"); | ^~~~~~~~~~~~~~~~~ | f_expression callbacks.cc:1655:33: error: 'parsed_expression' was not declared in this scope; did you mean 'f_expression'? 1655 | parsed_expression += _("octal number"); | ^~~~~~~~~~~~~~~~~ | f_expression callbacks.cc:1657:33: error: 'parsed_expression' was not declared in this scope; did you mean 'f_expression'? 1657 | parsed_expression += _("duodecimal number"); | ^~~~~~~~~~~~~~~~~ | f_expression callbacks.cc:1659:33: error: 'parsed_expression' was not declared in this scope; did you mean 'f_expression'? 1659 | parsed_expression += _("binary number"); | ^~~~~~~~~~~~~~~~~ | f_expression callbacks.cc:1661:33: error: 'parsed_expression' was not declared in this scope; did you mean 'f_expression'? 1661 | parsed_expression += _("roman numerals"); | ^~~~~~~~~~~~~~~~~ | f_expression callbacks.cc:1663:33: error: 'parsed_expression' was not declared in this scope; did you mean 'f_expression'? 1663 | parsed_expression += _("sexagesimal number"); | ^~~~~~~~~~~~~~~~~ | f_expression callbacks.cc:1665:33: error: 'parsed_expression' was not declared in this scope; did you mean 'f_expression'? 1665 | parsed_expression += _("time format"); | ^~~~~~~~~~~~~~~~~ | f_expression callbacks.cc:1667:33: error: 'parsed_expression' was not declared in this scope; did you mean 'f_expression'? 1667 | parsed_expression += _("number bases"); | ^~~~~~~~~~~~~~~~~ | f_expression callbacks.cc:1669:33: error: 'parsed_expression' was not declared in this scope; did you mean 'f_expression'? 1669 | parsed_expression += _("calendars"); | ^~~~~~~~~~~~~~~~~ | f_expression callbacks.cc:1671:33: error: 'parsed_expression' was not declared in this scope; did you mean 'f_expression'? 1671 | parsed_expression += _("optimal unit"); | ^~~~~~~~~~~~~~~~~ | f_expression callbacks.cc:1673:33: error: 'parsed_expression' was not declared in this scope; did you mean 'f_expression'? 1673 | parsed_expression += _("base units"); | ^~~~~~~~~~~~~~~~~ | f_expression callbacks.cc:1675:33: error: 'parsed_expression' was not declared in this scope; did you mean 'f_expression'? 1675 | parsed_expression += _("mixed units"); | ^~~~~~~~~~~~~~~~~ | f_expression callbacks.cc:1677:33: error: 'parsed_expression' was not declared in this scope; did you mean 'f_expression'? 1677 | parsed_expression += _("fraction"); | ^~~~~~~~~~~~~~~~~ | f_expression callbacks.cc:1679:33: error: 'parsed_expression' was not declared in this scope; did you mean 'f_expression'? 1679 | parsed_expression += _("factors"); | ^~~~~~~~~~~~~~~~~ | f_expression callbacks.cc:1681:33: error: 'parsed_expression' was not declared in this scope; did you mean 'f_expression'? 1681 | parsed_expression += _("expanded partial fractions"); | ^~~~~~~~~~~~~~~~~ | f_expression callbacks.cc:1683:33: error: 'parsed_expression' was not declared in this scope; did you mean 'f_expression'? 1683 | parsed_expression += _("complex rectangular form"); | ^~~~~~~~~~~~~~~~~ | f_expression callbacks.cc:1685:33: error: 'parsed_expression' was not declared in this scope; did you mean 'f_expression'? 1685 | parsed_expression += _("complex exponential form"); | ^~~~~~~~~~~~~~~~~ | f_expression callbacks.cc:1687:33: error: 'parsed_expression' was not declared in this scope; did you mean 'f_expression'? 1687 | parsed_expression += _("complex polar form"); | ^~~~~~~~~~~~~~~~~ | f_expression callbacks.cc:1689:33: error: 'parsed_expression' was not declared in this scope; did you mean 'f_expression'? 1689 | parsed_expression += _("UTC time zone"); | ^~~~~~~~~~~~~~~~~ | f_expression callbacks.cc:1692:33: error: 'parsed_expression' was not declared in this scope; did you mean 'f_expression'? 1692 | parsed_expression += "UTC"; | ^~~~~~~~~~~~~~~~~ | f_expression callbacks.cc:1727:33: error: 'parsed_expression' was not declared in this scope; did you mean 'f_expression'? 1727 | parsed_expression += "UTC"; | ^~~~~~~~~~~~~~~~~ | f_expression callbacks.cc:1729:53: error: 'to_str1' was not declared in this scope 1729 | } else if((equalsIgnoreCase(to_str1, "base") || equalsIgnoreCase(to_str2, _("base"))) && s2i(to_str2) >= 2 && (s2i(to_str2) <= 36 || s2i(to_str2) == BASE_SEXAGESIMAL)) { | ^~~~~~~ callbacks.cc:1729:90: error: 'to_str2' was not declared in this scope 1729 | } else if((equalsIgnoreCase(to_str1, "base") || equalsIgnoreCase(to_str2, _("base"))) && s2i(to_str2) >= 2 && (s2i(to_str2) <= 36 || s2i(to_str2) == BASE_SEXAGESIMAL)) { | ^~~~~~~ callbacks.cc:1731:33: error: 'parsed_expression' was not declared in this scope; did you mean 'f_expression'? 1731 | parsed_expression += gstr; | ^~~~~~~~~~~~~~~~~ | f_expression callbacks.cc:1748:33: error: 'parsed_expression' was not declared in this scope; did you mean 'f_expression'? 1748 | parsed_expression += mparse.print(po); | ^~~~~~~~~~~~~~~~~ | f_expression callbacks.cc:1752:36: error: 'parsed_expression' was not declared in this scope; did you mean 'f_expression'? 1752 | gsub("&", "&", parsed_expression); | ^~~~~~~~~~~~~~~~~ | f_expression callbacks.cc:1755:29: error: 'set_status_text' was not declared in this scope; did you mean 'update_status_text'? 1755 | if(!b_func) set_status_text(parsed_expression.c_str(), true, had_errors, had_warnings); | ^~~~~~~~~~~~~~~ | update_status_text callbacks.cc:1758:33: error: 'parsed_expression' was not declared in this scope; did you mean 'f_expression'? 1758 | set_status_text(parsed_expression.c_str(), true, parsed_had_errors, parsed_had_warnings); | ^~~~~~~~~~~~~~~~~ | f_expression callbacks.cc:1758:17: error: 'set_status_text' was not declared in this scope; did you mean 'update_status_text'? 1758 | set_status_text(parsed_expression.c_str(), true, parsed_had_errors, parsed_had_warnings); | ^~~~~~~~~~~~~~~ | update_status_text callbacks.cc: In function 'void generate_units_tree_struct()': callbacks.cc:1896:9: error: 'string' was not declared in this scope 1896 | string str, cat, cat_sub; | ^~~~~~ callbacks.cc:1896:9: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:1898:19: error: 'struct tree_struct' has no member named 'items' 1898 | unit_cats.items.clear(); | ^~~~~ callbacks.cc:1899:19: error: 'struct tree_struct' has no member named 'objects' 1899 | unit_cats.objects.clear(); | ^~~~~~~ callbacks.cc:1901:9: error: 'ia_units' was not declared in this scope 1901 | ia_units.clear(); | ^~~~~~~~ callbacks.cc:1902:9: error: 'list' was not declared in this scope 1902 | list::iterator it; | ^~~~ callbacks.cc:1902:9: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stl_list.h:632:11: note: 'std::__cxx11::list' 632 | class list : protected _List_base<_Tp, _Alloc> | ^~~~ /usr/include/c++/12.2.0/list:78:13: note: 'std::pmr::list' 78 | using list = std::list<_Tp, polymorphic_allocator<_Tp>>; | ^~~~ callbacks.cc:1902:25: error: expected primary-expression before '>' token 1902 | list::iterator it; | ^ callbacks.cc:1902:28: error: '::iterator' has not been declared; did you mean 'std::iterator'? 1902 | list::iterator it; | ^~~~~~~~ | std::iterator /usr/include/c++/12.2.0/bits/stl_iterator_base_types.h:127:34: note: 'std::iterator' declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ callbacks.cc:1908:50: error: 'string_is_less' cannot be used as a function 1908 | if(string_is_less(CALCULATOR->units[i]->title(), u->title())) { | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:1918:33: error: 'cat' was not declared in this scope; did you mean 'cat_i'? 1918 | cat = CALCULATOR->units[i]->category(); | ^~~ | cat_i callbacks.cc:1922:53: error: 'string' is not a class, namespace, or enumeration 1922 | if(cat_i == string::npos) { | ^~~~~~ callbacks.cc:1923:49: error: 'cat_sub' was not declared in this scope; did you mean 'cat_i'? 1923 | cat_sub = cat.substr(cat_i_prev, cat.length() - cat_i_prev); | ^~~~~~~ | cat_i callbacks.cc:1925:49: error: 'cat_sub' was not declared in this scope; did you mean 'cat_i'? 1925 | cat_sub = cat.substr(cat_i_prev, cat_i - cat_i_prev); | ^~~~~~~ | cat_i callbacks.cc:1928:45: error: 'it' was not declared in this scope; did you mean 'i'? 1928 | for(it = item->items.begin(); it != item->items.end(); ++it) { | ^~ | i callbacks.cc:1928:56: error: 'struct tree_struct' has no member named 'items' 1928 | for(it = item->items.begin(); it != item->items.end(); ++it) { | ^~~~~ callbacks.cc:1928:83: error: 'struct tree_struct' has no member named 'items' 1928 | for(it = item->items.begin(); it != item->items.end(); ++it) { | ^~~~~ callbacks.cc:1929:52: error: 'cat_sub' was not declared in this scope; did you mean 'cat_i'? 1929 | if(cat_sub == it->item) { | ^~~~~~~ | cat_i callbacks.cc:1937:55: error: 'struct tree_struct' has no member named 'items' 1937 | item->items.push_back(cat); | ^~~~~ callbacks.cc:1938:49: error: 'it' was not declared in this scope; did you mean 'i'? 1938 | it = item->items.end(); | ^~ | i callbacks.cc:1938:60: error: 'struct tree_struct' has no member named 'items' 1938 | it = item->items.end(); | ^~~~~ callbacks.cc:1942:55: error: 'struct tree_struct' has no member named 'item' 1942 | item->item = cat_sub; | ^~~~ callbacks.cc:1942:62: error: 'cat_sub' was not declared in this scope; did you mean 'cat_i'? 1942 | item->item = cat_sub; | ^~~~~~~ | cat_i callbacks.cc:1944:53: error: 'string' is not a class, namespace, or enumeration 1944 | if(cat_i == string::npos) { | ^~~~~~ callbacks.cc:1952:55: error: 'struct tree_struct' has no member named 'objects' 1952 | for(size_t i3 = 0; i3 < item->objects.size(); i3++) { | ^~~~~~~ callbacks.cc:1953:51: error: 'struct tree_struct' has no member named 'objects' 1953 | u = (Unit*) item->objects[i3]; | ^~~~~~~ callbacks.cc:1954:50: error: 'string_is_less' cannot be used as a function 1954 | if(string_is_less(CALCULATOR->units[i]->title(), u->title())) { | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:1956:47: error: 'struct tree_struct' has no member named 'objects' 1956 | item->objects.insert(item->objects.begin() + i3, (void*) CALCULATOR->units[i]); | ^~~~~~~ callbacks.cc:1956:68: error: 'struct tree_struct' has no member named 'objects' 1956 | item->objects.insert(item->objects.begin() + i3, (void*) CALCULATOR->units[i]); | ^~~~~~~ callbacks.cc:1960:38: error: 'struct tree_struct' has no member named 'objects' 1960 | if(!b) item->objects.push_back((void*) CALCULATOR->units[i]); | ^~~~~~~ callbacks.cc: In function 'void generate_variables_tree_struct()': callbacks.cc:1971:9: error: 'string' was not declared in this scope 1971 | string str, cat, cat_sub; | ^~~~~~ callbacks.cc:1971:9: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:1973:23: error: 'struct tree_struct' has no member named 'items' 1973 | variable_cats.items.clear(); | ^~~~~ callbacks.cc:1974:23: error: 'struct tree_struct' has no member named 'objects' 1974 | variable_cats.objects.clear(); | ^~~~~~~ callbacks.cc:1976:9: error: 'ia_variables' was not declared in this scope; did you mean 'tVariables'? 1976 | ia_variables.clear(); | ^~~~~~~~~~~~ | tVariables callbacks.cc:1977:9: error: 'list' was not declared in this scope 1977 | list::iterator it; | ^~~~ callbacks.cc:1977:9: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stl_list.h:632:11: note: 'std::__cxx11::list' 632 | class list : protected _List_base<_Tp, _Alloc> | ^~~~ /usr/include/c++/12.2.0/list:78:13: note: 'std::pmr::list' 78 | using list = std::list<_Tp, polymorphic_allocator<_Tp>>; | ^~~~ callbacks.cc:1977:25: error: expected primary-expression before '>' token 1977 | list::iterator it; | ^ callbacks.cc:1977:28: error: '::iterator' has not been declared; did you mean 'std::iterator'? 1977 | list::iterator it; | ^~~~~~~~ | std::iterator /usr/include/c++/12.2.0/bits/stl_iterator_base_types.h:127:34: note: 'std::iterator' declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ callbacks.cc:1984:50: error: 'string_is_less' cannot be used as a function 1984 | if(string_is_less(CALCULATOR->variables[i]->title(), v->title())) { | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:1994:33: error: 'cat' was not declared in this scope; did you mean 'cat_i'? 1994 | cat = CALCULATOR->variables[i]->category(); | ^~~ | cat_i callbacks.cc:1998:53: error: 'string' is not a class, namespace, or enumeration 1998 | if(cat_i == string::npos) { | ^~~~~~ callbacks.cc:1999:49: error: 'cat_sub' was not declared in this scope; did you mean 'cat_i'? 1999 | cat_sub = cat.substr(cat_i_prev, cat.length() - cat_i_prev); | ^~~~~~~ | cat_i callbacks.cc:2001:49: error: 'cat_sub' was not declared in this scope; did you mean 'cat_i'? 2001 | cat_sub = cat.substr(cat_i_prev, cat_i - cat_i_prev); | ^~~~~~~ | cat_i callbacks.cc:2004:45: error: 'it' was not declared in this scope; did you mean 'i'? 2004 | for(it = item->items.begin(); it != item->items.end(); ++it) { | ^~ | i callbacks.cc:2004:56: error: 'struct tree_struct' has no member named 'items' 2004 | for(it = item->items.begin(); it != item->items.end(); ++it) { | ^~~~~ callbacks.cc:2004:83: error: 'struct tree_struct' has no member named 'items' 2004 | for(it = item->items.begin(); it != item->items.end(); ++it) { | ^~~~~ callbacks.cc:2005:52: error: 'cat_sub' was not declared in this scope; did you mean 'cat_i'? 2005 | if(cat_sub == it->item) { | ^~~~~~~ | cat_i callbacks.cc:2013:55: error: 'struct tree_struct' has no member named 'items' 2013 | item->items.push_back(cat); | ^~~~~ callbacks.cc:2014:49: error: 'it' was not declared in this scope; did you mean 'i'? 2014 | it = item->items.end(); | ^~ | i callbacks.cc:2014:60: error: 'struct tree_struct' has no member named 'items' 2014 | it = item->items.end(); | ^~~~~ callbacks.cc:2018:55: error: 'struct tree_struct' has no member named 'item' 2018 | item->item = cat_sub; | ^~~~ callbacks.cc:2018:62: error: 'cat_sub' was not declared in this scope; did you mean 'cat_i'? 2018 | item->item = cat_sub; | ^~~~~~~ | cat_i callbacks.cc:2020:53: error: 'string' is not a class, namespace, or enumeration 2020 | if(cat_i == string::npos) { | ^~~~~~ callbacks.cc:2028:55: error: 'struct tree_struct' has no member named 'objects' 2028 | for(size_t i3 = 0; i3 < item->objects.size(); i3++) { | ^~~~~~~ callbacks.cc:2029:55: error: 'struct tree_struct' has no member named 'objects' 2029 | v = (Variable*) item->objects[i3]; | ^~~~~~~ callbacks.cc:2030:50: error: 'string_is_less' cannot be used as a function 2030 | if(string_is_less(CALCULATOR->variables[i]->title(), v->title())) { | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:2032:47: error: 'struct tree_struct' has no member named 'objects' 2032 | item->objects.insert(item->objects.begin() + i3, (void*) CALCULATOR->variables[i]); | ^~~~~~~ callbacks.cc:2032:68: error: 'struct tree_struct' has no member named 'objects' 2032 | item->objects.insert(item->objects.begin() + i3, (void*) CALCULATOR->variables[i]); | ^~~~~~~ callbacks.cc:2036:38: error: 'struct tree_struct' has no member named 'objects' 2036 | if(!b) item->objects.push_back((void*) CALCULATOR->variables[i]); | ^~~~~~~ callbacks.cc: In function 'void generate_functions_tree_struct()': callbacks.cc:2047:9: error: 'string' was not declared in this scope 2047 | string str, cat, cat_sub; | ^~~~~~ callbacks.cc:2047:9: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:2049:23: error: 'struct tree_struct' has no member named 'items' 2049 | function_cats.items.clear(); | ^~~~~ callbacks.cc:2050:23: error: 'struct tree_struct' has no member named 'objects' 2050 | function_cats.objects.clear(); | ^~~~~~~ callbacks.cc:2052:9: error: 'ia_functions' was not declared in this scope; did you mean 'tFunctions'? 2052 | ia_functions.clear(); | ^~~~~~~~~~~~ | tFunctions callbacks.cc:2053:9: error: 'list' was not declared in this scope 2053 | list::iterator it; | ^~~~ callbacks.cc:2053:9: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stl_list.h:632:11: note: 'std::__cxx11::list' 632 | class list : protected _List_base<_Tp, _Alloc> | ^~~~ /usr/include/c++/12.2.0/list:78:13: note: 'std::pmr::list' 78 | using list = std::list<_Tp, polymorphic_allocator<_Tp>>; | ^~~~ callbacks.cc:2053:25: error: expected primary-expression before '>' token 2053 | list::iterator it; | ^ callbacks.cc:2053:28: error: '::iterator' has not been declared; did you mean 'std::iterator'? 2053 | list::iterator it; | ^~~~~~~~ | std::iterator /usr/include/c++/12.2.0/bits/stl_iterator_base_types.h:127:34: note: 'std::iterator' declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ callbacks.cc:2061:50: error: 'string_is_less' cannot be used as a function 2061 | if(string_is_less(CALCULATOR->functions[i]->title(), f->title())) { | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:2071:33: error: 'cat' was not declared in this scope; did you mean 'cat_i'? 2071 | cat = CALCULATOR->functions[i]->category(); | ^~~ | cat_i callbacks.cc:2075:53: error: 'string' is not a class, namespace, or enumeration 2075 | if(cat_i == string::npos) { | ^~~~~~ callbacks.cc:2076:49: error: 'cat_sub' was not declared in this scope; did you mean 'cat_i'? 2076 | cat_sub = cat.substr(cat_i_prev, cat.length() - cat_i_prev); | ^~~~~~~ | cat_i callbacks.cc:2078:49: error: 'cat_sub' was not declared in this scope; did you mean 'cat_i'? 2078 | cat_sub = cat.substr(cat_i_prev, cat_i - cat_i_prev); | ^~~~~~~ | cat_i callbacks.cc:2081:45: error: 'it' was not declared in this scope; did you mean 'i'? 2081 | for(it = item->items.begin(); it != item->items.end(); ++it) { | ^~ | i callbacks.cc:2081:56: error: 'struct tree_struct' has no member named 'items' 2081 | for(it = item->items.begin(); it != item->items.end(); ++it) { | ^~~~~ callbacks.cc:2081:83: error: 'struct tree_struct' has no member named 'items' 2081 | for(it = item->items.begin(); it != item->items.end(); ++it) { | ^~~~~ callbacks.cc:2082:52: error: 'cat_sub' was not declared in this scope; did you mean 'cat_i'? 2082 | if(cat_sub == it->item) { | ^~~~~~~ | cat_i callbacks.cc:2090:55: error: 'struct tree_struct' has no member named 'items' 2090 | item->items.push_back(cat); | ^~~~~ callbacks.cc:2091:49: error: 'it' was not declared in this scope; did you mean 'i'? 2091 | it = item->items.end(); | ^~ | i callbacks.cc:2091:60: error: 'struct tree_struct' has no member named 'items' 2091 | it = item->items.end(); | ^~~~~ callbacks.cc:2095:55: error: 'struct tree_struct' has no member named 'item' 2095 | item->item = cat_sub; | ^~~~ callbacks.cc:2095:62: error: 'cat_sub' was not declared in this scope; did you mean 'cat_i'? 2095 | item->item = cat_sub; | ^~~~~~~ | cat_i callbacks.cc:2097:53: error: 'string' is not a class, namespace, or enumeration 2097 | if(cat_i == string::npos) { | ^~~~~~ callbacks.cc:2105:55: error: 'struct tree_struct' has no member named 'objects' 2105 | for(size_t i3 = 0; i3 < item->objects.size(); i3++) { | ^~~~~~~ callbacks.cc:2106:59: error: 'struct tree_struct' has no member named 'objects' 2106 | f = (MathFunction*) item->objects[i3]; | ^~~~~~~ callbacks.cc:2107:50: error: 'string_is_less' cannot be used as a function 2107 | if(string_is_less(CALCULATOR->functions[i]->title(), f->title())) { | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:2109:47: error: 'struct tree_struct' has no member named 'objects' 2109 | item->objects.insert(item->objects.begin() + i3, (void*) CALCULATOR->functions[i]); | ^~~~~~~ callbacks.cc:2109:68: error: 'struct tree_struct' has no member named 'objects' 2109 | item->objects.insert(item->objects.begin() + i3, (void*) CALCULATOR->functions[i]); | ^~~~~~~ callbacks.cc:2113:38: error: 'struct tree_struct' has no member named 'objects' 2113 | if(!b) item->objects.push_back((void*) CALCULATOR->functions[i]); | ^~~~~~~ callbacks.cc: In function 'void update_functions_tree()': callbacks.cc:2134:9: error: 'string' was not declared in this scope 2134 | string str; | ^~~~~~ callbacks.cc:2134:9: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:2136:23: error: 'struct tree_struct' has no member named 'it' 2136 | function_cats.it = function_cats.items.begin(); | ^~ callbacks.cc:2136:42: error: 'struct tree_struct' has no member named 'items' 2136 | function_cats.it = function_cats.items.begin(); | ^~~~~ callbacks.cc:2137:26: error: 'struct tree_struct' has no member named 'it' 2137 | if(function_cats.it != function_cats.items.end()) { | ^~ callbacks.cc:2137:46: error: 'struct tree_struct' has no member named 'items' 2137 | if(function_cats.it != function_cats.items.end()) { | ^~~~~ callbacks.cc:2138:40: error: 'struct tree_struct' has no member named 'it' 2138 | item = &*function_cats.it; | ^~ callbacks.cc:2139:33: error: 'struct tree_struct' has no member named 'it' 2139 | ++function_cats.it; | ^~ callbacks.cc:2140:23: error: 'struct tree_struct' has no member named 'it' 2140 | item->it = item->items.begin(); | ^~ callbacks.cc:2140:34: error: 'struct tree_struct' has no member named 'items' 2140 | item->it = item->items.begin(); | ^~~~~ callbacks.cc:2144:9: error: 'str' was not declared in this scope; did you mean 'std'? 2144 | str = ""; | ^~~ | std callbacks.cc:2149:30: error: 'struct tree_struct' has no member named 'item' 2149 | str += item->item; | ^~~~ callbacks.cc:2150:79: error: 'struct tree_struct' has no member named 'item' 2150 | gtk_tree_store_set(tFunctionCategories_store, &iter, 0, item->item.c_str(), 1, str.c_str(), -1); | ^~~~ callbacks.cc:2151:27: error: 'selected_function_category' was not declared in this scope; did you mean 'selected_function'? 2151 | if(str == selected_function_category) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | selected_function callbacks.cc:2155:37: error: 'struct tree_struct' has no member named 'it' 2155 | while(item && item->it == item->items.end()) { | ^~ callbacks.cc:2155:49: error: 'struct tree_struct' has no member named 'items' 2155 | while(item && item->it == item->items.end()) { | ^~~~~ callbacks.cc:2157:37: error: 'string' is not a class, namespace, or enumeration 2157 | if(str_i == string::npos) { | ^~~~~~ callbacks.cc:2167:41: error: 'struct tree_struct' has no member named 'it' 2167 | item2 = &*item->it; | ^~ callbacks.cc:2168:34: error: 'struct tree_struct' has no member named 'it' 2168 | if(item->it == item->items.begin()) iter2 = iter; | ^~ callbacks.cc:2168:46: error: 'struct tree_struct' has no member named 'items' 2168 | if(item->it == item->items.begin()) iter2 = iter; | ^~~~~ callbacks.cc:2169:33: error: 'struct tree_struct' has no member named 'it' 2169 | ++item->it; | ^~ callbacks.cc:2171:31: error: 'struct tree_struct' has no member named 'it' 2171 | item->it = item->items.begin(); | ^~ callbacks.cc:2171:42: error: 'struct tree_struct' has no member named 'items' 2171 | item->it = item->items.begin(); | ^~~~~ callbacks.cc:2174:27: error: 'struct tree_struct' has no member named 'objects' 2174 | if(!function_cats.objects.empty()) { | ^~~~~~~ callbacks.cc:2179:20: error: 'selected_function_category' was not declared in this scope; did you mean 'selected_function'? 2179 | if(selected_function_category == _("Uncategorized")) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | selected_function callbacks.cc:2183:13: error: 'ia_functions' was not declared in this scope; did you mean 'tFunctions'? 2183 | if(!ia_functions.empty()) { | ^~~~~~~~~~~~ | tFunctions callbacks.cc:2188:20: error: 'selected_function_category' was not declared in this scope; did you mean 'selected_function'? 2188 | if(selected_function_category == _("Inactive")) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | selected_function callbacks.cc:2194:17: error: 'selected_function_category' was not declared in this scope; did you mean 'selected_function'? 2194 | selected_function_category = _("All"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | selected_function callbacks.cc: In function 'void on_tFunctionCategories_selection_changed(GtkTreeSelection*, gpointer)': callbacks.cc:2232:17: error: 'selected_function_category' was not declared in this scope; did you mean 'selected_function'? 2232 | selected_function_category = gstr; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | selected_function callbacks.cc:2241:25: error: 'string' was not declared in this scope 2241 | string str = selected_function_category.substr(1, selected_function_category.length() - 1); | ^~~~~~ callbacks.cc:2241:25: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:2243:167: error: 'str' was not declared in this scope; did you mean 'gstr'? 2243 | if(CALCULATOR->functions[i]->isActive() && CALCULATOR->functions[i]->category().substr(0, selected_function_category.length() - 1) == str) { | ^~~ | gstr callbacks.cc:2261:17: error: 'selected_function_category' was not declared in this scope; did you mean 'selected_function'? 2261 | selected_function_category = ""; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | selected_function callbacks.cc: In function 'void on_tFunctions_selection_changed(GtkTreeSelection*, gpointer)': callbacks.cc:2284:33: error: 'string' was not declared in this scope 2284 | string str, str2; | ^~~~~~ callbacks.cc:2284:33: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:2286:33: error: 'str' was not declared in this scope; did you mean 'std'? 2286 | str += ename->name; | ^~~ | std callbacks.cc:2306:57: error: 'str2' was not declared in this scope 2306 | str2 = arg->name(); | ^~~~ callbacks.cc:2308:57: error: 'str2' was not declared in this scope 2308 | str2 = _("argument"); | ^~~~ callbacks.cc:2312:56: error: 'str2' was not declared in this scope 2312 | str += str2; | ^~~~ callbacks.cc:2374:57: error: 'str2' was not declared in this scope 2374 | str2 = arg->printlong(); | ^~~~ callbacks.cc:2376:57: error: 'str2' was not declared in this scope 2376 | str2 = default_arg.printlong(); | ^~~~ callbacks.cc:2379:57: error: 'str2' was not declared in this scope 2379 | str2 += " ("; | ^~~~ callbacks.cc:2390:49: error: 'str2' was not declared in this scope 2390 | str2 += "\n"; | ^~~~ callbacks.cc: In function 'void update_variables_tree()': callbacks.cc:2480:9: error: 'string' was not declared in this scope 2480 | string str; | ^~~~~~ callbacks.cc:2480:9: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:2482:23: error: 'struct tree_struct' has no member named 'it' 2482 | variable_cats.it = variable_cats.items.begin(); | ^~ callbacks.cc:2482:42: error: 'struct tree_struct' has no member named 'items' 2482 | variable_cats.it = variable_cats.items.begin(); | ^~~~~ callbacks.cc:2483:26: error: 'struct tree_struct' has no member named 'it' 2483 | if(variable_cats.it != variable_cats.items.end()) { | ^~ callbacks.cc:2483:46: error: 'struct tree_struct' has no member named 'items' 2483 | if(variable_cats.it != variable_cats.items.end()) { | ^~~~~ callbacks.cc:2484:40: error: 'struct tree_struct' has no member named 'it' 2484 | item = &*variable_cats.it; | ^~ callbacks.cc:2485:33: error: 'struct tree_struct' has no member named 'it' 2485 | ++variable_cats.it; | ^~ callbacks.cc:2486:23: error: 'struct tree_struct' has no member named 'it' 2486 | item->it = item->items.begin(); | ^~ callbacks.cc:2486:34: error: 'struct tree_struct' has no member named 'items' 2486 | item->it = item->items.begin(); | ^~~~~ callbacks.cc:2490:9: error: 'str' was not declared in this scope; did you mean 'std'? 2490 | str = ""; | ^~~ | std callbacks.cc:2495:30: error: 'struct tree_struct' has no member named 'item' 2495 | str += item->item; | ^~~~ callbacks.cc:2496:79: error: 'struct tree_struct' has no member named 'item' 2496 | gtk_tree_store_set(tVariableCategories_store, &iter, 0, item->item.c_str(), 1, str.c_str(), -1); | ^~~~ callbacks.cc:2497:27: error: 'selected_variable_category' was not declared in this scope; did you mean 'selected_variable'? 2497 | if(str == selected_variable_category) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | selected_variable callbacks.cc:2502:37: error: 'struct tree_struct' has no member named 'it' 2502 | while(item && item->it == item->items.end()) { | ^~ callbacks.cc:2502:49: error: 'struct tree_struct' has no member named 'items' 2502 | while(item && item->it == item->items.end()) { | ^~~~~ callbacks.cc:2504:37: error: 'string' is not a class, namespace, or enumeration 2504 | if(str_i == string::npos) { | ^~~~~~ callbacks.cc:2514:41: error: 'struct tree_struct' has no member named 'it' 2514 | item2 = &*item->it; | ^~ callbacks.cc:2515:34: error: 'struct tree_struct' has no member named 'it' 2515 | if(item->it == item->items.begin()) iter2 = iter; | ^~ callbacks.cc:2515:46: error: 'struct tree_struct' has no member named 'items' 2515 | if(item->it == item->items.begin()) iter2 = iter; | ^~~~~ callbacks.cc:2516:33: error: 'struct tree_struct' has no member named 'it' 2516 | ++item->it; | ^~ callbacks.cc:2518:31: error: 'struct tree_struct' has no member named 'it' 2518 | item->it = item->items.begin(); | ^~ callbacks.cc:2518:42: error: 'struct tree_struct' has no member named 'items' 2518 | item->it = item->items.begin(); | ^~~~~ callbacks.cc:2522:27: error: 'struct tree_struct' has no member named 'objects' 2522 | if(!variable_cats.objects.empty()) { | ^~~~~~~ callbacks.cc:2527:20: error: 'selected_variable_category' was not declared in this scope; did you mean 'selected_variable'? 2527 | if(selected_variable_category == _("Uncategorized")) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | selected_variable callbacks.cc:2531:13: error: 'ia_variables' was not declared in this scope; did you mean 'tVariables'? 2531 | if(!ia_variables.empty()) { | ^~~~~~~~~~~~ | tVariables callbacks.cc:2536:20: error: 'selected_variable_category' was not declared in this scope; did you mean 'selected_variable'? 2536 | if(selected_variable_category == _("Inactive")) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | selected_variable callbacks.cc:2542:17: error: 'selected_variable_category' was not declared in this scope; did you mean 'selected_variable'? 2542 | selected_variable_category = _("All"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | selected_variable callbacks.cc: In function 'void setVariableTreeItem(GtkTreeIter&, Variable*)': callbacks.cc:2551:9: error: 'string' was not declared in this scope 2551 | string value = ""; | ^~~~~~ callbacks.cc:2551:9: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:2553:17: error: 'value' was not declared in this scope; did you mean 'GValue'? 2553 | value = _("a previous result"); | ^~~~~ | GValue callbacks.cc:2556:25: error: 'value' was not declared in this scope; did you mean 'GValue'? 2556 | value = CALCULATOR->localizeExpression(((KnownVariable*) v)->expression()); | ^~~~~ | GValue callbacks.cc:2575:33: error: 'value' was not declared in this scope; did you mean 'GValue'? 2575 | value = _("matrix"); | ^~~~~ | GValue callbacks.cc:2577:33: error: 'value' was not declared in this scope; did you mean 'GValue'? 2577 | value = _("vector"); | ^~~~~ | GValue callbacks.cc:2581:33: error: 'value' was not declared in this scope; did you mean 'GValue'? 2581 | value = CALCULATOR->print(((KnownVariable*) v)->get(), 30, po); | ^~~~~ | GValue callbacks.cc:2587:65: error: 'value' was not declared in this scope; did you mean 'GValue'? 2587 | case ASSUMPTION_SIGN_POSITIVE: {value = _("positive"); break;} | ^~~~~ | GValue callbacks.cc:2588:68: error: 'value' was not declared in this scope; did you mean 'GValue'? 2588 | case ASSUMPTION_SIGN_NONPOSITIVE: {value = _("non-positive"); break;} | ^~~~~ | GValue callbacks.cc:2589:65: error: 'value' was not declared in this scope; did you mean 'GValue'? 2589 | case ASSUMPTION_SIGN_NEGATIVE: {value = _("negative"); break;} | ^~~~~ | GValue callbacks.cc:2590:68: error: 'value' was not declared in this scope; did you mean 'GValue'? 2590 | case ASSUMPTION_SIGN_NONNEGATIVE: {value = _("non-negative"); break;} | ^~~~~ | GValue callbacks.cc:2591:64: error: 'value' was not declared in this scope; did you mean 'GValue'? 2591 | case ASSUMPTION_SIGN_NONZERO: {value = _("non-zero"); break;} | ^~~~~ | GValue callbacks.cc:2594:29: error: 'value' was not declared in this scope; did you mean 'GValue'? 2594 | if(!value.empty() && ((UnknownVariable*) v)->assumptions()->type() != ASSUMPTION_TYPE_NONE) value += " "; | ^~~~~ | GValue callbacks.cc:2596:64: error: 'value' was not declared in this scope; did you mean 'GValue'? 2596 | case ASSUMPTION_TYPE_INTEGER: {value += _("integer"); break;} | ^~~~~ | GValue callbacks.cc:2597:65: error: 'value' was not declared in this scope; did you mean 'GValue'? 2597 | case ASSUMPTION_TYPE_RATIONAL: {value += _("rational"); break;} | ^~~~~ | GValue callbacks.cc:2598:61: error: 'value' was not declared in this scope; did you mean 'GValue'? 2598 | case ASSUMPTION_TYPE_REAL: {value += _("real"); break;} | ^~~~~ | GValue callbacks.cc:2599:64: error: 'value' was not declared in this scope; did you mean 'GValue'? 2599 | case ASSUMPTION_TYPE_COMPLEX: {value += _("complex"); break;} | ^~~~~ | GValue callbacks.cc:2600:63: error: 'value' was not declared in this scope; did you mean 'GValue'? 2600 | case ASSUMPTION_TYPE_NUMBER: {value += _("number"); break;} | ^~~~~ | GValue callbacks.cc:2601:66: error: 'value' was not declared in this scope; did you mean 'GValue'? 2601 | case ASSUMPTION_TYPE_NONMATRIX: {value += _("(not matrix)"); break;} | ^~~~~ | GValue callbacks.cc:2604:28: error: 'value' was not declared in this scope; did you mean 'GValue'? 2604 | if(value.empty()) value = _("unknown"); | ^~~~~ | GValue callbacks.cc:2606:25: error: 'value' was not declared in this scope; did you mean 'GValue'? 2606 | value = _("default assumptions"); | ^~~~~ | GValue callbacks.cc:2609:84: error: 'value' was not declared in this scope; did you mean 'GValue'? 2609 | gtk_list_store_set(tVariables_store, &iter2, 0, v->title(true).c_str(), 1, value.c_str(), 2, (gpointer) v, 3, TRUE, -1); | ^~~~~ | GValue callbacks.cc: In function 'void on_tVariableCategories_selection_changed(GtkTreeSelection*, gpointer)': callbacks.cc:2639:17: error: 'selected_variable_category' was not declared in this scope; did you mean 'selected_variable'? 2639 | selected_variable_category = gstr; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | selected_variable callbacks.cc:2649:25: error: 'string' was not declared in this scope 2649 | string str = selected_variable_category.substr(1, selected_variable_category.length() - 1); | ^~~~~~ callbacks.cc:2649:25: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:2651:167: error: 'str' was not declared in this scope; did you mean 'gstr'? 2651 | if(CALCULATOR->variables[i]->isActive() && CALCULATOR->variables[i]->category().substr(0, selected_variable_category.length() - 1) == str) { | ^~~ | gstr callbacks.cc:2671:17: error: 'selected_variable_category' was not declared in this scope; did you mean 'selected_variable'? 2671 | selected_variable_category = ""; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | selected_variable callbacks.cc: In function 'void update_units_tree()': callbacks.cc:2732:9: error: 'string' was not declared in this scope 2732 | string str; | ^~~~~~ callbacks.cc:2732:9: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:2734:19: error: 'struct tree_struct' has no member named 'it' 2734 | unit_cats.it = unit_cats.items.begin(); | ^~ callbacks.cc:2734:34: error: 'struct tree_struct' has no member named 'items' 2734 | unit_cats.it = unit_cats.items.begin(); | ^~~~~ callbacks.cc:2735:22: error: 'struct tree_struct' has no member named 'it' 2735 | if(unit_cats.it != unit_cats.items.end()) { | ^~ callbacks.cc:2735:38: error: 'struct tree_struct' has no member named 'items' 2735 | if(unit_cats.it != unit_cats.items.end()) { | ^~~~~ callbacks.cc:2736:36: error: 'struct tree_struct' has no member named 'it' 2736 | item = &*unit_cats.it; | ^~ callbacks.cc:2737:29: error: 'struct tree_struct' has no member named 'it' 2737 | ++unit_cats.it; | ^~ callbacks.cc:2738:23: error: 'struct tree_struct' has no member named 'it' 2738 | item->it = item->items.begin(); | ^~ callbacks.cc:2738:34: error: 'struct tree_struct' has no member named 'items' 2738 | item->it = item->items.begin(); | ^~~~~ callbacks.cc:2742:9: error: 'str' was not declared in this scope; did you mean 'std'? 2742 | str = ""; | ^~~ | std callbacks.cc:2747:30: error: 'struct tree_struct' has no member named 'item' 2747 | str += item->item; | ^~~~ callbacks.cc:2748:75: error: 'struct tree_struct' has no member named 'item' 2748 | gtk_tree_store_set(tUnitCategories_store, &iter, 0, item->item.c_str(), 1, str.c_str(), -1); | ^~~~ callbacks.cc:2749:27: error: 'selected_unit_category' was not declared in this scope 2749 | if(str == selected_unit_category) { | ^~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:2753:37: error: 'struct tree_struct' has no member named 'it' 2753 | while(item && item->it == item->items.end()) { | ^~ callbacks.cc:2753:49: error: 'struct tree_struct' has no member named 'items' 2753 | while(item && item->it == item->items.end()) { | ^~~~~ callbacks.cc:2755:37: error: 'string' is not a class, namespace, or enumeration 2755 | if(str_i == string::npos) { | ^~~~~~ callbacks.cc:2765:41: error: 'struct tree_struct' has no member named 'it' 2765 | item2 = &*item->it; | ^~ callbacks.cc:2766:34: error: 'struct tree_struct' has no member named 'it' 2766 | if(item->it == item->items.begin()) iter2 = iter; | ^~ callbacks.cc:2766:46: error: 'struct tree_struct' has no member named 'items' 2766 | if(item->it == item->items.begin()) iter2 = iter; | ^~~~~ callbacks.cc:2767:33: error: 'struct tree_struct' has no member named 'it' 2767 | ++item->it; | ^~ callbacks.cc:2769:31: error: 'struct tree_struct' has no member named 'it' 2769 | item->it = item->items.begin(); | ^~ callbacks.cc:2769:42: error: 'struct tree_struct' has no member named 'items' 2769 | item->it = item->items.begin(); | ^~~~~ callbacks.cc:2772:23: error: 'struct tree_struct' has no member named 'objects' 2772 | if(!unit_cats.objects.empty()) { | ^~~~~~~ callbacks.cc:2776:20: error: 'selected_unit_category' was not declared in this scope 2776 | if(selected_unit_category == _("Uncategorized")) { | ^~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:2781:13: error: 'ia_units' was not declared in this scope 2781 | if(!ia_units.empty()) { | ^~~~~~~~ callbacks.cc:2784:20: error: 'selected_unit_category' was not declared in this scope 2784 | if(selected_unit_category == _("Inactive")) { | ^~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:2791:17: error: 'selected_unit_category' was not declared in this scope 2791 | selected_unit_category = _("All"); | ^~~~~~~~~~~~~~~~~~~~~~ callbacks.cc: In function 'void setUnitTreeItem(GtkTreeIter&, Unit*)': callbacks.cc:2800:9: error: 'string' was not declared in this scope 2800 | string snames, sbase; | ^~~~~~ callbacks.cc:2800:9: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:2804:27: error: 'snames' was not declared in this scope; did you mean 'tNames'? 2804 | if(i > 1) snames += " / "; | ^~~~~~ | tNames callbacks.cc:2805:17: error: 'snames' was not declared in this scope; did you mean 'tNames'? 2805 | snames += u->getName(i).name; | ^~~~~~ | tNames callbacks.cc:2810:25: error: 'snames' was not declared in this scope; did you mean 'tNames'? 2810 | snames = ""; | ^~~~~~ | tNames callbacks.cc:2811:25: error: 'sbase' was not declared in this scope 2811 | sbase = ((CompositeUnit*) u)->print(false, true, printops.use_unicode_signs, &can_display_unicode_string_function, (void*) tUnits); | ^~~~~ callbacks.cc:2816:25: error: 'sbase' was not declared in this scope 2816 | sbase = au->firstBaseUnit()->preferredDisplayName(printops.abbreviate_names, printops.use_unicode_signs, false, false, &can_display_unicode_string_function, (void*) tUnits).name; | ^~~~~ callbacks.cc:2824:25: error: 'sbase' was not declared in this scope 2824 | sbase = ""; | ^~~~~ callbacks.cc:2829:114: error: 'snames' was not declared in this scope; did you mean 'tNames'? 2829 | gtk_list_store_set(tUnits_store, &iter2, UNITS_TITLE_COLUMN, u->title(true).c_str(), UNITS_NAMES_COLUMN, snames.c_str(), UNITS_BASE_COLUMN, sbase.c_str(), UNITS_POINTER_COLUMN, (gpointer) u, UNITS_VISIBLE_COLUMN, TRUE, UNITS_VISIBLE_COLUMN_CONVERT, TRUE, -1); | ^~~~~~ | tNames callbacks.cc:2829:149: error: 'sbase' was not declared in this scope 2829 | gtk_list_store_set(tUnits_store, &iter2, UNITS_TITLE_COLUMN, u->title(true).c_str(), UNITS_NAMES_COLUMN, snames.c_str(), UNITS_BASE_COLUMN, sbase.c_str(), UNITS_POINTER_COLUMN, (gpointer) u, UNITS_VISIBLE_COLUMN, TRUE, UNITS_VISIBLE_COLUMN_CONVERT, TRUE, -1); | ^~~~~ callbacks.cc:2831:17: error: 'unordered_map' was not declared in this scope 2831 | unordered_map::const_iterator it_flag = flag_images.find(u->referenceName()); | ^~~~~~~~~~~~~ callbacks.cc:2831:17: note: suggested alternatives: In file included from /usr/include/c++/12.2.0/unordered_map:47, from callbacks.cc:34: /usr/include/c++/12.2.0/bits/unordered_map.h:102:11: note: 'std::unordered_map' 102 | class unordered_map | ^~~~~~~~~~~~~ /usr/include/c++/12.2.0/unordered_map:64:13: note: 'std::pmr::unordered_map' 64 | using unordered_map | ^~~~~~~~~~~~~ callbacks.cc:2831:48: error: expected primary-expression before '*' token 2831 | unordered_map::const_iterator it_flag = flag_images.find(u->referenceName()); | ^ callbacks.cc:2831:49: error: expected primary-expression before '>' token 2831 | unordered_map::const_iterator it_flag = flag_images.find(u->referenceName()); | ^ callbacks.cc:2831:52: error: '::const_iterator' has not been declared 2831 | unordered_map::const_iterator it_flag = flag_images.find(u->referenceName()); | ^~~~~~~~~~~~~~ callbacks.cc:2832:20: error: 'it_flag' was not declared in this scope 2832 | if(it_flag != flag_images.end()) { | ^~~~~~~ callbacks.cc:2832:31: error: 'flag_images' was not declared in this scope 2832 | if(it_flag != flag_images.end()) { | ^~~~~~~~~~~ callbacks.cc: In function 'void on_tUnitCategories_selection_changed(GtkTreeSelection*, gpointer)': callbacks.cc:2872:17: error: 'selected_unit_category' was not declared in this scope 2872 | selected_unit_category = gstr; | ^~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:2881:25: error: 'string' was not declared in this scope 2881 | string str = selected_unit_category.substr(1, selected_unit_category.length() - 1); | ^~~~~~ callbacks.cc:2881:25: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:2883:155: error: 'str' was not declared in this scope; did you mean 'gstr'? 2883 | if(CALCULATOR->units[i]->isActive() && CALCULATOR->units[i]->category().substr(0, selected_unit_category.length() - 1) == str) { | ^~~ | gstr callbacks.cc:2907:17: error: 'selected_unit_category' was not declared in this scope 2907 | selected_unit_category = ""; | ^~~~~~~~~~~~~~~~~~~~~~ callbacks.cc: In function 'void update_unit_selector_tree()': callbacks.cc:2969:9: error: 'string' was not declared in this scope 2969 | string str; | ^~~~~~ callbacks.cc:2969:9: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:2971:19: error: 'struct tree_struct' has no member named 'it' 2971 | unit_cats.it = unit_cats.items.begin(); | ^~ callbacks.cc:2971:34: error: 'struct tree_struct' has no member named 'items' 2971 | unit_cats.it = unit_cats.items.begin(); | ^~~~~ callbacks.cc:2972:22: error: 'struct tree_struct' has no member named 'it' 2972 | if(unit_cats.it != unit_cats.items.end()) { | ^~ callbacks.cc:2972:38: error: 'struct tree_struct' has no member named 'items' 2972 | if(unit_cats.it != unit_cats.items.end()) { | ^~~~~ callbacks.cc:2973:36: error: 'struct tree_struct' has no member named 'it' 2973 | item = &*unit_cats.it; | ^~ callbacks.cc:2974:29: error: 'struct tree_struct' has no member named 'it' 2974 | ++unit_cats.it; | ^~ callbacks.cc:2975:23: error: 'struct tree_struct' has no member named 'it' 2975 | item->it = item->items.begin(); | ^~ callbacks.cc:2975:34: error: 'struct tree_struct' has no member named 'items' 2975 | item->it = item->items.begin(); | ^~~~~ callbacks.cc:2979:9: error: 'str' was not declared in this scope; did you mean 'std'? 2979 | str = ""; | ^~~ | std callbacks.cc:2981:9: error: 'convert_category_map' was not declared in this scope 2981 | convert_category_map.clear(); | ^~~~~~~~~~~~~~~~~~~~ callbacks.cc:2985:30: error: 'struct tree_struct' has no member named 'item' 2985 | str += item->item; | ^~~~ callbacks.cc:2986:83: error: 'struct tree_struct' has no member named 'item' 2986 | gtk_tree_store_set(tUnitSelectorCategories_store, &iter, 0, item->item.c_str(), 1, str.c_str(), -1); | ^~~~ callbacks.cc:2987:27: error: 'selected_unit_category' was not declared in this scope 2987 | if(str == selected_unit_category) { | ^~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:2992:37: error: 'struct tree_struct' has no member named 'it' 2992 | while(item && item->it == item->items.end()) { | ^~ callbacks.cc:2992:49: error: 'struct tree_struct' has no member named 'items' 2992 | while(item && item->it == item->items.end()) { | ^~~~~ callbacks.cc:2994:37: error: 'string' is not a class, namespace, or enumeration 2994 | if(str_i == string::npos) { | ^~~~~~ callbacks.cc:3004:41: error: 'struct tree_struct' has no member named 'it' 3004 | item2 = &*item->it; | ^~ callbacks.cc:3005:34: error: 'struct tree_struct' has no member named 'it' 3005 | if(item->it == item->items.begin()) iter2 = iter; | ^~ callbacks.cc:3005:46: error: 'struct tree_struct' has no member named 'items' 3005 | if(item->it == item->items.begin()) iter2 = iter; | ^~~~~ callbacks.cc:3006:33: error: 'struct tree_struct' has no member named 'it' 3006 | ++item->it; | ^~ callbacks.cc:3008:31: error: 'struct tree_struct' has no member named 'it' 3008 | item->it = item->items.begin(); | ^~ callbacks.cc:3008:42: error: 'struct tree_struct' has no member named 'items' 3008 | item->it = item->items.begin(); | ^~~~~ callbacks.cc:3011:23: error: 'struct tree_struct' has no member named 'objects' 3011 | if(!unit_cats.objects.empty()) { | ^~~~~~~ callbacks.cc:3016:20: error: 'selected_unit_category' was not declared in this scope 3016 | if(selected_unit_category == _("Uncategorized")) { | ^~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:3023:17: error: 'selected_unit_category' was not declared in this scope 3023 | selected_unit_category = _("All"); | ^~~~~~~~~~~~~~~~~~~~~~ callbacks.cc: In function 'void on_functions_entry_search_changed(GtkEntry*, gpointer)': callbacks.cc:3035:9: error: 'string' was not declared in this scope 3035 | string str = gtk_entry_get_text(w); | ^~~~~~ callbacks.cc:3035:9: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:3036:27: error: 'str' was not declared in this scope; did you mean 'std'? 3036 | remove_blank_ends(str); | ^~~ | std callbacks.cc:3042:31: error: expected ';' before 'title' 3042 | string title = u->title(true); | ^~~~~~ | ; callbacks.cc:3043:43: error: 'title' was not declared in this scope 3043 | remove_blank_ends(title); | ^~~~~ callbacks.cc:3050:41: error: 'string' is not a class, namespace, or enumeration 3050 | if(i == string::npos) break; | ^~~~~~ callbacks.cc: In function 'void on_variables_entry_search_changed(GtkEntry*, gpointer)': callbacks.cc:3090:9: error: 'string' was not declared in this scope 3090 | string str = gtk_entry_get_text(w); | ^~~~~~ callbacks.cc:3090:9: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:3091:27: error: 'str' was not declared in this scope; did you mean 'std'? 3091 | remove_blank_ends(str); | ^~~ | std callbacks.cc:3097:31: error: expected ';' before 'title' 3097 | string title = u->title(true); | ^~~~~~ | ; callbacks.cc:3098:43: error: 'title' was not declared in this scope 3098 | remove_blank_ends(title); | ^~~~~ callbacks.cc:3105:41: error: 'string' is not a class, namespace, or enumeration 3105 | if(i == string::npos) break; | ^~~~~~ callbacks.cc: In function 'void on_units_entry_search_changed(GtkEntry*, gpointer)': callbacks.cc:3146:9: error: 'string' was not declared in this scope 3146 | string str = gtk_entry_get_text(w); | ^~~~~~ callbacks.cc:3146:9: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:3147:27: error: 'str' was not declared in this scope; did you mean 'std'? 3147 | remove_blank_ends(str); | ^~~ | std callbacks.cc: In function 'void on_units_convert_search_changed(GtkEntry*, gpointer)': callbacks.cc:3178:9: error: 'string' was not declared in this scope 3178 | string str = gtk_entry_get_text(w); | ^~~~~~ callbacks.cc:3178:9: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:3179:27: error: 'str' was not declared in this scope; did you mean 'std'? 3179 | remove_blank_ends(str); | ^~~ | std callbacks.cc: In function 'void on_convert_entry_search_changed(GtkEntry*, gpointer)': callbacks.cc:3207:9: error: 'string' was not declared in this scope 3207 | string str = gtk_entry_get_text(w); | ^~~~~~ callbacks.cc:3207:9: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:3208:27: error: 'str' was not declared in this scope; did you mean 'std'? 3208 | remove_blank_ends(str); | ^~~ | std callbacks.cc: In function 'void setUnitSelectorTreeItem(GtkTreeIter&, Unit*)': callbacks.cc:3241:9: error: 'string' was not declared in this scope 3241 | string snames, sbase; | ^~~~~~ callbacks.cc:3241:9: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:3243:17: error: 'unordered_map' was not declared in this scope 3243 | unordered_map::const_iterator it_flag = flag_images.find(u->referenceName()); | ^~~~~~~~~~~~~ callbacks.cc:3243:17: note: suggested alternatives: /usr/include/c++/12.2.0/bits/unordered_map.h:102:11: note: 'std::unordered_map' 102 | class unordered_map | ^~~~~~~~~~~~~ /usr/include/c++/12.2.0/unordered_map:64:13: note: 'std::pmr::unordered_map' 64 | using unordered_map | ^~~~~~~~~~~~~ callbacks.cc:3243:48: error: expected primary-expression before '*' token 3243 | unordered_map::const_iterator it_flag = flag_images.find(u->referenceName()); | ^ callbacks.cc:3243:49: error: expected primary-expression before '>' token 3243 | unordered_map::const_iterator it_flag = flag_images.find(u->referenceName()); | ^ callbacks.cc:3243:52: error: '::const_iterator' has not been declared 3243 | unordered_map::const_iterator it_flag = flag_images.find(u->referenceName()); | ^~~~~~~~~~~~~~ callbacks.cc:3244:112: error: 'it_flag' was not declared in this scope 3244 | gtk_list_store_set(tUnitSelector_store, &iter2, 0, u->title(true).c_str(), 1, (gpointer) u, 2, it_flag == flag_images.end() ? NULL : it_flag->second, 3, TRUE, -1); | ^~~~~~~ callbacks.cc:3244:123: error: 'flag_images' was not declared in this scope 3244 | gtk_list_store_set(tUnitSelector_store, &iter2, 0, u->title(true).c_str(), 1, (gpointer) u, 2, it_flag == flag_images.end() ? NULL : it_flag->second, 3, TRUE, -1); | ^~~~~~~~~~~ callbacks.cc: In function 'void on_tUnitSelectorCategories_selection_changed(GtkTreeSelection*, gpointer)': callbacks.cc:3272:17: error: 'selected_unit_selector_category' was not declared in this scope 3272 | selected_unit_selector_category = gstr; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:3280:25: error: 'string' was not declared in this scope 3280 | string str = selected_unit_selector_category.substr(1, selected_unit_selector_category.length() - 1); | ^~~~~~ callbacks.cc:3280:25: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:3282:241: error: 'str' was not declared in this scope; did you mean 'gstr'? 3282 | if(CALCULATOR->units[i]->isActive() && (!CALCULATOR->units[i]->isHidden() || CALCULATOR->units[i]->isCurrency()) && CALCULATOR->units[i]->category().substr(0, selected_unit_selector_category.length() - 1) == str) { | ^~~ | gstr callbacks.cc:3332:17: error: 'selected_unit_selector_category' was not declared in this scope 3332 | selected_unit_selector_category = ""; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc: In function 'void on_tDatasets_selection_changed(GtkTreeSelection*, gpointer)': callbacks.cc:3436:17: error: 'string' was not declared in this scope 3436 | string str, str2; | ^~~~~~ callbacks.cc:3436:17: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:3438:25: error: 'str' was not declared in this scope; did you mean 'std'? 3438 | str = ds->description(); | ^~~ | std callbacks.cc:3444:17: error: 'str' was not declared in this scope; did you mean 'std'? 3444 | str = _("Properties"); | ^~~ | std callbacks.cc:3505:41: error: 'str2' was not declared in this scope 3505 | str2 = arg->name(); | ^~~~ callbacks.cc:3507:41: error: 'str2' was not declared in this scope 3507 | str2 = _("argument"); | ^~~~ callbacks.cc:3511:40: error: 'str2' was not declared in this scope 3511 | str += str2; | ^~~~ callbacks.cc: In function 'void on_dataset_button_function_clicked(GtkButton*, gpointer)': callbacks.cc:3562:17: error: 'string' was not declared in this scope 3562 | string str = ds->preferredDisplayName(printops.abbreviate_names, printops.use_unicode_signs, false, false, &can_display_unicode_string_function, (void*) w).name; | ^~~~~~ callbacks.cc:3562:17: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:3563:17: error: 'str' was not declared in this scope; did you mean 'std'? 3563 | str += "("; | ^~~ | std callbacks.cc: In function 'void on_tDataObjects_selection_changed(GtkTreeSelection*, gpointer)': callbacks.cc:3592:17: error: 'string' was not declared in this scope 3592 | string sval; | ^~~~~~ callbacks.cc:3592:17: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:3598:23: error: expected ';' before 'str' 3598 | string str; | ^~~~ | ; callbacks.cc:3601:33: error: 'sval' was not declared in this scope 3601 | sval = o->getPropertyDisplayString(dp); | ^~~~ callbacks.cc:3604:41: error: 'str' was not declared in this scope; did you mean 'std'? 3604 | str = ""; str += dp->title(); str += ":"; str += ""; | ^~~ | std callbacks.cc: In function 'void update_function_arguments_list(MathFunction*)': callbacks.cc:3809:17: error: 'string' was not declared in this scope 3809 | string str, str2; | ^~~~~~ callbacks.cc:3809:17: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:3815:33: error: 'str' was not declared in this scope; did you mean 'std'? 3815 | str = arg->printlong(); | ^~~ | std callbacks.cc:3816:33: error: 'str2' was not declared in this scope 3816 | str2 = arg->name(); | ^~~~ callbacks.cc:3818:33: error: 'str' was not declared in this scope; did you mean 'std'? 3818 | str = defarg.printlong(); | ^~~ | std callbacks.cc:3819:33: error: 'str2' was not declared in this scope 3819 | str2 = ""; | ^~~~ callbacks.cc:3821:80: error: 'str2' was not declared in this scope 3821 | gtk_list_store_set(tFunctionArguments_store, &iter, 0, str2.c_str(), 1, str.c_str(), 2, (gpointer) arg, -1); | ^~~~ callbacks.cc:3821:97: error: 'str' was not declared in this scope; did you mean 'std'? 3821 | gtk_list_store_set(tFunctionArguments_store, &iter, 0, str2.c_str(), 1, str.c_str(), 2, (gpointer) arg, -1); | ^~~ | std callbacks.cc: In function 'void create_umenu()': callbacks.cc:3867:19: error: 'struct tree_struct' has no member named 'rit' 3867 | unit_cats.rit = unit_cats.items.rbegin(); | ^~~ callbacks.cc:3867:35: error: 'struct tree_struct' has no member named 'items' 3867 | unit_cats.rit = unit_cats.items.rbegin(); | ^~~~~ callbacks.cc:3868:22: error: 'struct tree_struct' has no member named 'rit' 3868 | if(unit_cats.rit != unit_cats.items.rend()) { | ^~~ callbacks.cc:3868:39: error: 'struct tree_struct' has no member named 'items' 3868 | if(unit_cats.rit != unit_cats.items.rend()) { | ^~~~~ callbacks.cc:3869:37: error: 'struct tree_struct' has no member named 'rit' 3869 | titem = &*unit_cats.rit; | ^~~ callbacks.cc:3870:29: error: 'struct tree_struct' has no member named 'rit' 3870 | ++unit_cats.rit; | ^~~ callbacks.cc:3871:24: error: 'struct tree_struct' has no member named 'rit' 3871 | titem->rit = titem->items.rbegin(); | ^~~ callbacks.cc:3871:37: error: 'struct tree_struct' has no member named 'items' 3871 | titem->rit = titem->items.rbegin(); | ^~~~~ callbacks.cc:3875:9: error: 'stack' was not declared in this scope; did you mean 'std::stack'? 3875 | stack menus; | ^~~~~ | std::stack In file included from /usr/include/c++/12.2.0/stack:61, from /usr/include/libqalculate/includes.h:19: /usr/include/c++/12.2.0/bits/stl_stack.h:99:11: note: 'std::stack' declared here 99 | class stack | ^~~~~ callbacks.cc:3875:24: error: expected primary-expression before '*' token 3875 | stack menus; | ^ callbacks.cc:3875:25: error: expected primary-expression before '>' token 3875 | stack menus; | ^ callbacks.cc:3875:27: error: 'menus' was not declared in this scope 3875 | stack menus; | ^~~~~ callbacks.cc:3879:39: error: 'struct tree_struct' has no member named 'items' 3879 | bool b_empty = titem->items.size() == 0; | ^~~~~ callbacks.cc:3881:54: error: 'struct tree_struct' has no member named 'objects' 3881 | for(size_t i = 0; i < titem->objects.size(); i++) { | ^~~~~~~ callbacks.cc:3882:52: error: 'struct tree_struct' has no member named 'objects' 3882 | u = (Unit*) titem->objects[i]; | ^~~~~~~ In file included from callbacks.cc:28: callbacks.cc:3890:53: error: 'struct tree_struct' has no member named 'item' 3890 | SUBMENU_ITEM_PREPEND(titem->item.c_str(), sub3) | ^~~~ interface.h:35:85: note: in definition of macro 'SUBMENU_ITEM_PREPEND' 35 | #define SUBMENU_ITEM_PREPEND(x,y) item = gtk_menu_item_new_with_label(x); gtk_widget_show (item); gtk_menu_shell_prepend(GTK_MENU_SHELL(y), item); sub = gtk_menu_new(); gtk_widget_show (sub); gtk_menu_item_set_submenu(GTK_MENU_ITEM(item), sub); | ^ callbacks.cc:3894:54: error: 'struct tree_struct' has no member named 'objects' 3894 | for(size_t i = 0; i < titem->objects.size(); i++) { | ^~~~~~~ callbacks.cc:3895:52: error: 'struct tree_struct' has no member named 'objects' 3895 | u = (Unit*) titem->objects[i]; | ^~~~~~~ interface.h:18:111: error: 'unordered_map' was not declared in this scope 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~ interface.h:18:111: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~ interface.h:18:111: note: suggested alternatives: 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~ interface.h:18:111: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~ /usr/include/c++/12.2.0/bits/unordered_map.h:102:11: note: 'std::unordered_map' 102 | class unordered_map | ^~~~~~~~~~~~~ /usr/include/c++/12.2.0/unordered_map:64:13: note: 'std::pmr::unordered_map' 64 | using unordered_map | ^~~~~~~~~~~~~ interface.h:18:125: error: 'string' was not declared in this scope 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~ interface.h:18:125: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~ interface.h:18:125: note: suggested alternatives: 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~ interface.h:18:125: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~ /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ interface.h:18:142: error: expected primary-expression before '*' token 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^ callbacks.cc:3898:60: note: in expansion of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 3898 | if(is_currencies) {MENU_ITEM_WITH_POINTER_AND_FLAG(u->title(true).c_str(), insert_unit, u)} | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ interface.h:18:143: error: expected primary-expression before '>' token 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^ callbacks.cc:3898:60: note: in expansion of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 3898 | if(is_currencies) {MENU_ITEM_WITH_POINTER_AND_FLAG(u->title(true).c_str(), insert_unit, u)} | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ interface.h:18:146: error: '::const_iterator' has not been declared 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~~ interface.h:18:146: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~~ interface.h:18:212: error: 'it_flag' was not declared in this scope 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~ interface.h:18:212: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~ interface.h:18:223: error: 'flag_images' was not declared in this scope 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~ interface.h:18:223: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~ callbacks.cc:3904:62: error: 'struct tree_struct' has no member named 'objects' 3904 | for(size_t i = 0; i < titem->objects.size(); i++) { | ^~~~~~~ callbacks.cc:3905:60: error: 'struct tree_struct' has no member named 'objects' 3905 | u = (Unit*) titem->objects[i]; | ^~~~~~~ interface.h:18:111: error: 'unordered_map' was not declared in this scope 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~ interface.h:18:111: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~ interface.h:18:111: note: suggested alternatives: 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~ interface.h:18:111: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~ /usr/include/c++/12.2.0/bits/unordered_map.h:102:11: note: 'std::unordered_map' 102 | class unordered_map | ^~~~~~~~~~~~~ /usr/include/c++/12.2.0/unordered_map:64:13: note: 'std::pmr::unordered_map' 64 | using unordered_map | ^~~~~~~~~~~~~ interface.h:18:125: error: 'string' was not declared in this scope 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~ interface.h:18:125: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~ interface.h:18:125: note: suggested alternatives: 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~ interface.h:18:125: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~ /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ interface.h:18:142: error: expected primary-expression before '*' token 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^ callbacks.cc:3907:49: note: in expansion of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 3907 | MENU_ITEM_WITH_POINTER_AND_FLAG(u->title(true).c_str(), insert_unit, u) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ interface.h:18:143: error: expected primary-expression before '>' token 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^ callbacks.cc:3907:49: note: in expansion of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 3907 | MENU_ITEM_WITH_POINTER_AND_FLAG(u->title(true).c_str(), insert_unit, u) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ interface.h:18:146: error: '::const_iterator' has not been declared 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~~ interface.h:18:146: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~~ interface.h:18:212: error: 'it_flag' was not declared in this scope 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~ interface.h:18:212: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~ interface.h:18:223: error: 'flag_images' was not declared in this scope 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~ interface.h:18:223: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~ callbacks.cc:3914:39: error: 'struct tree_struct' has no member named 'rit' 3914 | while(titem && titem->rit == titem->items.rend()) { | ^~~ callbacks.cc:3914:53: error: 'struct tree_struct' has no member named 'items' 3914 | while(titem && titem->rit == titem->items.rend()) { | ^~~~~ callbacks.cc:3920:43: error: 'struct tree_struct' has no member named 'rit' 3920 | titem2 = &*titem->rit; | ^~~ callbacks.cc:3921:34: error: 'struct tree_struct' has no member named 'rit' 3921 | ++titem->rit; | ^~~ callbacks.cc:3923:32: error: 'struct tree_struct' has no member named 'rit' 3923 | titem->rit = titem->items.rbegin(); | ^~~ callbacks.cc:3923:45: error: 'struct tree_struct' has no member named 'items' 3923 | titem->rit = titem->items.rbegin(); | ^~~~~ callbacks.cc:3927:41: error: 'struct tree_struct' has no member named 'objects' 3927 | for(size_t i = 0; i < unit_cats.objects.size(); i++) { | ^~~~~~~ callbacks.cc:3928:39: error: 'struct tree_struct' has no member named 'objects' 3928 | u = (Unit*) unit_cats.objects[i]; | ^~~~~~~ callbacks.cc: In function 'void create_umenu2()': callbacks.cc:3954:19: error: 'struct tree_struct' has no member named 'rit' 3954 | unit_cats.rit = unit_cats.items.rbegin(); | ^~~ callbacks.cc:3954:35: error: 'struct tree_struct' has no member named 'items' 3954 | unit_cats.rit = unit_cats.items.rbegin(); | ^~~~~ callbacks.cc:3955:22: error: 'struct tree_struct' has no member named 'rit' 3955 | if(unit_cats.rit != unit_cats.items.rend()) { | ^~~ callbacks.cc:3955:39: error: 'struct tree_struct' has no member named 'items' 3955 | if(unit_cats.rit != unit_cats.items.rend()) { | ^~~~~ callbacks.cc:3956:37: error: 'struct tree_struct' has no member named 'rit' 3956 | titem = &*unit_cats.rit; | ^~~ callbacks.cc:3957:29: error: 'struct tree_struct' has no member named 'rit' 3957 | ++unit_cats.rit; | ^~~ callbacks.cc:3958:24: error: 'struct tree_struct' has no member named 'rit' 3958 | titem->rit = titem->items.rbegin(); | ^~~ callbacks.cc:3958:37: error: 'struct tree_struct' has no member named 'items' 3958 | titem->rit = titem->items.rbegin(); | ^~~~~ callbacks.cc:3962:9: error: 'stack' was not declared in this scope; did you mean 'std::stack'? 3962 | stack menus; | ^~~~~ | std::stack /usr/include/c++/12.2.0/bits/stl_stack.h:99:11: note: 'std::stack' declared here 99 | class stack | ^~~~~ callbacks.cc:3962:24: error: expected primary-expression before '*' token 3962 | stack menus; | ^ callbacks.cc:3962:25: error: expected primary-expression before '>' token 3962 | stack menus; | ^ callbacks.cc:3962:27: error: 'menus' was not declared in this scope 3962 | stack menus; | ^~~~~ callbacks.cc:3966:39: error: 'struct tree_struct' has no member named 'items' 3966 | bool b_empty = titem->items.size() == 0; | ^~~~~ callbacks.cc:3968:54: error: 'struct tree_struct' has no member named 'objects' 3968 | for(size_t i = 0; i < titem->objects.size(); i++) { | ^~~~~~~ callbacks.cc:3969:52: error: 'struct tree_struct' has no member named 'objects' 3969 | u = (Unit*) titem->objects[i]; | ^~~~~~~ callbacks.cc:3977:53: error: 'struct tree_struct' has no member named 'item' 3977 | SUBMENU_ITEM_PREPEND(titem->item.c_str(), sub3) | ^~~~ interface.h:35:85: note: in definition of macro 'SUBMENU_ITEM_PREPEND' 35 | #define SUBMENU_ITEM_PREPEND(x,y) item = gtk_menu_item_new_with_label(x); gtk_widget_show (item); gtk_menu_shell_prepend(GTK_MENU_SHELL(y), item); sub = gtk_menu_new(); gtk_widget_show (sub); gtk_menu_item_set_submenu(GTK_MENU_ITEM(item), sub); | ^ callbacks.cc:3981:54: error: 'struct tree_struct' has no member named 'objects' 3981 | for(size_t i = 0; i < titem->objects.size(); i++) { | ^~~~~~~ callbacks.cc:3982:52: error: 'struct tree_struct' has no member named 'objects' 3982 | u = (Unit*) titem->objects[i]; | ^~~~~~~ interface.h:18:111: error: 'unordered_map' was not declared in this scope 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~ interface.h:18:111: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~ interface.h:18:111: note: suggested alternatives: 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~ interface.h:18:111: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~ /usr/include/c++/12.2.0/bits/unordered_map.h:102:11: note: 'std::unordered_map' 102 | class unordered_map | ^~~~~~~~~~~~~ /usr/include/c++/12.2.0/unordered_map:64:13: note: 'std::pmr::unordered_map' 64 | using unordered_map | ^~~~~~~~~~~~~ interface.h:18:125: error: 'string' was not declared in this scope 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~ interface.h:18:125: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~ interface.h:18:125: note: suggested alternatives: 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~ interface.h:18:125: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~ /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ interface.h:18:142: error: expected primary-expression before '*' token 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^ callbacks.cc:3985:60: note: in expansion of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 3985 | if(is_currencies) {MENU_ITEM_WITH_POINTER_AND_FLAG(u->title(true).c_str(), convert_to_unit, u)} | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ interface.h:18:143: error: expected primary-expression before '>' token 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^ callbacks.cc:3985:60: note: in expansion of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 3985 | if(is_currencies) {MENU_ITEM_WITH_POINTER_AND_FLAG(u->title(true).c_str(), convert_to_unit, u)} | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ interface.h:18:146: error: '::const_iterator' has not been declared 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~~ interface.h:18:146: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~~ interface.h:18:212: error: 'it_flag' was not declared in this scope 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~ interface.h:18:212: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~ interface.h:18:223: error: 'flag_images' was not declared in this scope 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~ interface.h:18:223: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~ callbacks.cc:3991:62: error: 'struct tree_struct' has no member named 'objects' 3991 | for(size_t i = 0; i < titem->objects.size(); i++) { | ^~~~~~~ callbacks.cc:3992:60: error: 'struct tree_struct' has no member named 'objects' 3992 | u = (Unit*) titem->objects[i]; | ^~~~~~~ interface.h:18:111: error: 'unordered_map' was not declared in this scope 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~ interface.h:18:111: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~ interface.h:18:111: note: suggested alternatives: 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~ interface.h:18:111: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~ /usr/include/c++/12.2.0/bits/unordered_map.h:102:11: note: 'std::unordered_map' 102 | class unordered_map | ^~~~~~~~~~~~~ /usr/include/c++/12.2.0/unordered_map:64:13: note: 'std::pmr::unordered_map' 64 | using unordered_map | ^~~~~~~~~~~~~ interface.h:18:125: error: 'string' was not declared in this scope 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~ interface.h:18:125: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~ interface.h:18:125: note: suggested alternatives: 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~ interface.h:18:125: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~ /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ interface.h:18:142: error: expected primary-expression before '*' token 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^ callbacks.cc:3994:49: note: in expansion of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 3994 | MENU_ITEM_WITH_POINTER_AND_FLAG(u->title(true).c_str(), convert_to_unit, u) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ interface.h:18:143: error: expected primary-expression before '>' token 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^ callbacks.cc:3994:49: note: in expansion of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 3994 | MENU_ITEM_WITH_POINTER_AND_FLAG(u->title(true).c_str(), convert_to_unit, u) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ interface.h:18:146: error: '::const_iterator' has not been declared 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~~ interface.h:18:146: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~~ interface.h:18:212: error: 'it_flag' was not declared in this scope 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~ interface.h:18:212: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~ interface.h:18:223: error: 'flag_images' was not declared in this scope 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~ interface.h:18:223: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~ callbacks.cc:4001:39: error: 'struct tree_struct' has no member named 'rit' 4001 | while(titem && titem->rit == titem->items.rend()) { | ^~~ callbacks.cc:4001:53: error: 'struct tree_struct' has no member named 'items' 4001 | while(titem && titem->rit == titem->items.rend()) { | ^~~~~ callbacks.cc:4007:43: error: 'struct tree_struct' has no member named 'rit' 4007 | titem2 = &*titem->rit; | ^~~ callbacks.cc:4008:34: error: 'struct tree_struct' has no member named 'rit' 4008 | ++titem->rit; | ^~~ callbacks.cc:4010:32: error: 'struct tree_struct' has no member named 'rit' 4010 | titem->rit = titem->items.rbegin(); | ^~~ callbacks.cc:4010:45: error: 'struct tree_struct' has no member named 'items' 4010 | titem->rit = titem->items.rbegin(); | ^~~~~ callbacks.cc:4014:41: error: 'struct tree_struct' has no member named 'objects' 4014 | for(size_t i = 0; i < unit_cats.objects.size(); i++) { | ^~~~~~~ callbacks.cc:4015:39: error: 'struct tree_struct' has no member named 'objects' 4015 | u = (Unit*) unit_cats.objects[i]; | ^~~~~~~ callbacks.cc: In function 'void create_vmenu()': callbacks.cc:4051:23: error: 'struct tree_struct' has no member named 'rit' 4051 | variable_cats.rit = variable_cats.items.rbegin(); | ^~~ callbacks.cc:4051:43: error: 'struct tree_struct' has no member named 'items' 4051 | variable_cats.rit = variable_cats.items.rbegin(); | ^~~~~ callbacks.cc:4052:26: error: 'struct tree_struct' has no member named 'rit' 4052 | if(variable_cats.rit != variable_cats.items.rend()) { | ^~~ callbacks.cc:4052:47: error: 'struct tree_struct' has no member named 'items' 4052 | if(variable_cats.rit != variable_cats.items.rend()) { | ^~~~~ callbacks.cc:4053:41: error: 'struct tree_struct' has no member named 'rit' 4053 | titem = &*variable_cats.rit; | ^~~ callbacks.cc:4054:33: error: 'struct tree_struct' has no member named 'rit' 4054 | ++variable_cats.rit; | ^~~ callbacks.cc:4055:24: error: 'struct tree_struct' has no member named 'rit' 4055 | titem->rit = titem->items.rbegin(); | ^~~ callbacks.cc:4055:37: error: 'struct tree_struct' has no member named 'items' 4055 | titem->rit = titem->items.rbegin(); | ^~~~~ callbacks.cc:4060:9: error: 'stack' was not declared in this scope; did you mean 'std::stack'? 4060 | stack menus; | ^~~~~ | std::stack /usr/include/c++/12.2.0/bits/stl_stack.h:99:11: note: 'std::stack' declared here 99 | class stack | ^~~~~ callbacks.cc:4060:24: error: expected primary-expression before '*' token 4060 | stack menus; | ^ callbacks.cc:4060:25: error: expected primary-expression before '>' token 4060 | stack menus; | ^ callbacks.cc:4060:27: error: 'menus' was not declared in this scope 4060 | stack menus; | ^~~~~ callbacks.cc:4064:39: error: 'struct tree_struct' has no member named 'items' 4064 | bool b_empty = titem->items.size() == 0; | ^~~~~ callbacks.cc:4066:54: error: 'struct tree_struct' has no member named 'objects' 4066 | for(size_t i = 0; i < titem->objects.size(); i++) { | ^~~~~~~ callbacks.cc:4067:56: error: 'struct tree_struct' has no member named 'objects' 4067 | v = (Variable*) titem->objects[i]; | ^~~~~~~ callbacks.cc:4075:53: error: 'struct tree_struct' has no member named 'item' 4075 | SUBMENU_ITEM_PREPEND(titem->item.c_str(), sub3) | ^~~~ interface.h:35:85: note: in definition of macro 'SUBMENU_ITEM_PREPEND' 35 | #define SUBMENU_ITEM_PREPEND(x,y) item = gtk_menu_item_new_with_label(x); gtk_widget_show (item); gtk_menu_shell_prepend(GTK_MENU_SHELL(y), item); sub = gtk_menu_new(); gtk_widget_show (sub); gtk_menu_item_set_submenu(GTK_MENU_ITEM(item), sub); | ^ callbacks.cc:4078:54: error: 'struct tree_struct' has no member named 'objects' 4078 | for(size_t i = 0; i < titem->objects.size(); i++) { | ^~~~~~~ callbacks.cc:4079:56: error: 'struct tree_struct' has no member named 'objects' 4079 | v = (Variable*) titem->objects[i]; | ^~~~~~~ callbacks.cc:4087:39: error: 'struct tree_struct' has no member named 'rit' 4087 | while(titem && titem->rit == titem->items.rend()) { | ^~~ callbacks.cc:4087:53: error: 'struct tree_struct' has no member named 'items' 4087 | while(titem && titem->rit == titem->items.rend()) { | ^~~~~ callbacks.cc:4093:43: error: 'struct tree_struct' has no member named 'rit' 4093 | titem2 = &*titem->rit; | ^~~ callbacks.cc:4094:34: error: 'struct tree_struct' has no member named 'rit' 4094 | ++titem->rit; | ^~~ callbacks.cc:4096:32: error: 'struct tree_struct' has no member named 'rit' 4096 | titem->rit = titem->items.rbegin(); | ^~~ callbacks.cc:4096:45: error: 'struct tree_struct' has no member named 'items' 4096 | titem->rit = titem->items.rbegin(); | ^~~~~ callbacks.cc:4101:45: error: 'struct tree_struct' has no member named 'objects' 4101 | for(size_t i = 0; i < variable_cats.objects.size(); i++) { | ^~~~~~~ callbacks.cc:4102:47: error: 'struct tree_struct' has no member named 'objects' 4102 | v = (Variable*) variable_cats.objects[i]; | ^~~~~~~ callbacks.cc: In function 'void create_fmenu()': callbacks.cc:4209:23: error: 'struct tree_struct' has no member named 'rit' 4209 | function_cats.rit = function_cats.items.rbegin(); | ^~~ callbacks.cc:4209:43: error: 'struct tree_struct' has no member named 'items' 4209 | function_cats.rit = function_cats.items.rbegin(); | ^~~~~ callbacks.cc:4210:26: error: 'struct tree_struct' has no member named 'rit' 4210 | if(function_cats.rit != function_cats.items.rend()) { | ^~~ callbacks.cc:4210:47: error: 'struct tree_struct' has no member named 'items' 4210 | if(function_cats.rit != function_cats.items.rend()) { | ^~~~~ callbacks.cc:4211:41: error: 'struct tree_struct' has no member named 'rit' 4211 | titem = &*function_cats.rit; | ^~~ callbacks.cc:4212:33: error: 'struct tree_struct' has no member named 'rit' 4212 | ++function_cats.rit; | ^~~ callbacks.cc:4213:24: error: 'struct tree_struct' has no member named 'rit' 4213 | titem->rit = titem->items.rbegin(); | ^~~ callbacks.cc:4213:37: error: 'struct tree_struct' has no member named 'items' 4213 | titem->rit = titem->items.rbegin(); | ^~~~~ callbacks.cc:4217:9: error: 'stack' was not declared in this scope; did you mean 'std::stack'? 4217 | stack menus; | ^~~~~ | std::stack /usr/include/c++/12.2.0/bits/stl_stack.h:99:11: note: 'std::stack' declared here 99 | class stack | ^~~~~ callbacks.cc:4217:24: error: expected primary-expression before '*' token 4217 | stack menus; | ^ callbacks.cc:4217:25: error: expected primary-expression before '>' token 4217 | stack menus; | ^ callbacks.cc:4217:27: error: 'menus' was not declared in this scope 4217 | stack menus; | ^~~~~ callbacks.cc:4221:39: error: 'struct tree_struct' has no member named 'items' 4221 | bool b_empty = titem->items.size() == 0; | ^~~~~ callbacks.cc:4223:54: error: 'struct tree_struct' has no member named 'objects' 4223 | for(size_t i = 0; i < titem->objects.size(); i++) { | ^~~~~~~ callbacks.cc:4224:60: error: 'struct tree_struct' has no member named 'objects' 4224 | f = (MathFunction*) titem->objects[i]; | ^~~~~~~ callbacks.cc:4232:53: error: 'struct tree_struct' has no member named 'item' 4232 | SUBMENU_ITEM_PREPEND(titem->item.c_str(), sub3) | ^~~~ interface.h:35:85: note: in definition of macro 'SUBMENU_ITEM_PREPEND' 35 | #define SUBMENU_ITEM_PREPEND(x,y) item = gtk_menu_item_new_with_label(x); gtk_widget_show (item); gtk_menu_shell_prepend(GTK_MENU_SHELL(y), item); sub = gtk_menu_new(); gtk_widget_show (sub); gtk_menu_item_set_submenu(GTK_MENU_ITEM(item), sub); | ^ callbacks.cc:4233:54: error: 'struct tree_struct' has no member named 'objects' 4233 | for(size_t i = 0; i < titem->objects.size(); i++) { | ^~~~~~~ callbacks.cc:4234:60: error: 'struct tree_struct' has no member named 'objects' 4234 | f = (MathFunction*) titem->objects[i]; | ^~~~~~~ callbacks.cc:4244:39: error: 'struct tree_struct' has no member named 'rit' 4244 | while(titem && titem->rit == titem->items.rend()) { | ^~~ callbacks.cc:4244:53: error: 'struct tree_struct' has no member named 'items' 4244 | while(titem && titem->rit == titem->items.rend()) { | ^~~~~ callbacks.cc:4250:43: error: 'struct tree_struct' has no member named 'rit' 4250 | titem2 = &*titem->rit; | ^~~ callbacks.cc:4251:34: error: 'struct tree_struct' has no member named 'rit' 4251 | ++titem->rit; | ^~~ callbacks.cc:4253:32: error: 'struct tree_struct' has no member named 'rit' 4253 | titem->rit = titem->items.rbegin(); | ^~~ callbacks.cc:4253:45: error: 'struct tree_struct' has no member named 'items' 4253 | titem->rit = titem->items.rbegin(); | ^~~~~ callbacks.cc:4257:45: error: 'struct tree_struct' has no member named 'objects' 4257 | for(size_t i = 0; i < function_cats.objects.size(); i++) { | ^~~~~~~ callbacks.cc:4258:51: error: 'struct tree_struct' has no member named 'objects' 4258 | f = (MathFunction*) function_cats.objects[i]; | ^~~~~~~ callbacks.cc: At global scope: callbacks.cc:4265:1: error: 'string' does not name a type; did you mean 'GString'? 4265 | string sub_suffix(const ExpressionName *ename) { | ^~~~~~ | GString callbacks.cc: In function 'void update_completion()': callbacks.cc:4297:9: error: 'string' was not declared in this scope 4297 | string str; | ^~~~~~ callbacks.cc:4297:9: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:4304:33: error: 'str' was not declared in this scope; did you mean 'std'? 4304 | str = sub_suffix(ename_r); | ^~~ | std callbacks.cc:4304:50: error: invalid initialization of reference of type 'const std::string&' {aka 'const std::__cxx11::basic_string&'} from expression of type 'const ExpressionName*' 4304 | str = sub_suffix(ename_r); | ^~~~~~~ In file included from /usr/include/libqalculate/qalculate.h:16: /usr/include/libqalculate/util.h:89:43: note: in passing argument 1 of 'std::string sub_suffix(const std::string&, const std::string&, const std::string&)' 89 | std::string sub_suffix(const std::string &name, const std::string &tag_begin, const std::string &tag_end); | ~~~~~~~~~~~~~~~~~~~^~~~ callbacks.cc:4306:33: error: 'str' was not declared in this scope; did you mean 'std'? 4306 | str = ename_r->name; | ^~~ | std callbacks.cc:4308:25: error: 'str' was not declared in this scope; did you mean 'std'? 4308 | str += "()"; | ^~~ | std callbacks.cc:4314:67: error: invalid initialization of reference of type 'const std::string&' {aka 'const std::__cxx11::basic_string&'} from expression of type 'const ExpressionName*' 4314 | str += sub_suffix(ename); | ^~~~~ /usr/include/libqalculate/util.h:89:43: note: in passing argument 1 of 'std::string sub_suffix(const std::string&, const std::string&, const std::string&)' 89 | std::string sub_suffix(const std::string &name, const std::string &tag_begin, const std::string &tag_end); | ~~~~~~~~~~~~~~~~~~~^~~~ callbacks.cc:4335:57: error: 'str' was not declared in this scope; did you mean 'std'? 4335 | str = sub_suffix(ename_r); | ^~~ | std callbacks.cc:4335:74: error: invalid initialization of reference of type 'const std::string&' {aka 'const std::__cxx11::basic_string&'} from expression of type 'const ExpressionName*' 4335 | str = sub_suffix(ename_r); | ^~~~~~~ /usr/include/libqalculate/util.h:89:43: note: in passing argument 1 of 'std::string sub_suffix(const std::string&, const std::string&, const std::string&)' 89 | std::string sub_suffix(const std::string &name, const std::string &tag_begin, const std::string &tag_end); | ~~~~~~~~~~~~~~~~~~~^~~~ callbacks.cc:4337:57: error: 'str' was not declared in this scope; did you mean 'std'? 4337 | str = ename_r->name; | ^~~ | std callbacks.cc:4341:41: error: 'str' was not declared in this scope; did you mean 'std'? 4341 | str += " "; | ^~~ | std callbacks.cc:4343:67: error: invalid initialization of reference of type 'const std::string&' {aka 'const std::__cxx11::basic_string&'} from expression of type 'const ExpressionName*' 4343 | str += sub_suffix(ename); | ^~~~~ /usr/include/libqalculate/util.h:89:43: note: in passing argument 1 of 'std::string sub_suffix(const std::string&, const std::string&, const std::string&)' 89 | std::string sub_suffix(const std::string &name, const std::string &tag_begin, const std::string &tag_end); | ~~~~~~~~~~~~~~~~~~~^~~~ callbacks.cc:4351:33: error: 'str' was not declared in this scope; did you mean 'std'? 4351 | str = sub_suffix(ename_r); | ^~~ | std callbacks.cc:4351:50: error: invalid initialization of reference of type 'const std::string&' {aka 'const std::__cxx11::basic_string&'} from expression of type 'const ExpressionName*' 4351 | str = sub_suffix(ename_r); | ^~~~~~~ /usr/include/libqalculate/util.h:89:43: note: in passing argument 1 of 'std::string sub_suffix(const std::string&, const std::string&, const std::string&)' 89 | std::string sub_suffix(const std::string &name, const std::string &tag_begin, const std::string &tag_end); | ~~~~~~~~~~~~~~~~~~~^~~~ callbacks.cc:4357:47: error: 'str' was not declared in this scope; did you mean 'std'? 4357 | pos = str.find("_to_"); | ^~~ | std callbacks.cc:4360:51: error: 'string' is not a class, namespace, or enumeration 4360 | if(pos != string::npos) { | ^~~~~~ callbacks.cc:4361:49: error: 'str' was not declared in this scope; did you mean 'std'? 4361 | str = ename_r->name; | ^~~ | std callbacks.cc:4366:54: error: 'string' is not a class, namespace, or enumeration 4366 | while(pos != string::npos) { | ^~~~~~ callbacks.cc:4367:65: error: 'str' was not declared in this scope; did you mean 'std'? 4367 | if((pos == 1 && str[0] == 'm') || (pos > 1 && str[pos - 1] == 'm' && str[pos - 2] == '>')) { | ^~~ | std callbacks.cc:4372:55: error: 'str' was not declared in this scope; did you mean 'std'? 4372 | pos = str.find("_to_", pos); | ^~~ | std callbacks.cc:4377:86: error: 'str' was not declared in this scope; did you mean 'std'? 4377 | if(b) gtk_list_store_set(completion_store, &iter, 0, str.c_str(), 1, CALCULATOR->variables[i]->title().c_str(), 2, CALCULATOR->variables[i], 3, FALSE, 4, 0, 6, PANGO_WEIGHT_NORMAL, 7, 0, 8, NULL, -1); | ^~~ | std callbacks.cc:4381:39: error: expected ';' before 'title' 4381 | string title; | ^~~~~~ | ; callbacks.cc:4383:41: error: 'title' was not declared in this scope 4383 | title = _("a previous result"); | ^~~~~ callbacks.cc:4386:49: error: 'title' was not declared in this scope 4386 | title = CALCULATOR->localizeExpression(((KnownVariable*) v)->expression()); | ^~~~~ callbacks.cc:4390:57: error: 'title' was not declared in this scope 4390 | title = _("matrix"); | ^~~~~ callbacks.cc:4392:57: error: 'title' was not declared in this scope 4392 | title = _("vector"); | ^~~~~ callbacks.cc:4396:57: error: 'title' was not declared in this scope 4396 | title = CALCULATOR->print(((KnownVariable*) v)->get(), 30, po); | ^~~~~ callbacks.cc:4402:89: error: 'title' was not declared in this scope 4402 | case ASSUMPTION_SIGN_POSITIVE: {title = _("positive"); break;} | ^~~~~ callbacks.cc:4403:92: error: 'title' was not declared in this scope 4403 | case ASSUMPTION_SIGN_NONPOSITIVE: {title = _("non-positive"); break;} | ^~~~~ callbacks.cc:4404:89: error: 'title' was not declared in this scope 4404 | case ASSUMPTION_SIGN_NEGATIVE: {title = _("negative"); break;} | ^~~~~ callbacks.cc:4405:92: error: 'title' was not declared in this scope 4405 | case ASSUMPTION_SIGN_NONNEGATIVE: {title = _("non-negative"); break;} | ^~~~~ callbacks.cc:4406:88: error: 'title' was not declared in this scope 4406 | case ASSUMPTION_SIGN_NONZERO: {title = _("non-zero"); break;} | ^~~~~ callbacks.cc:4409:53: error: 'title' was not declared in this scope 4409 | if(!title.empty() && ((UnknownVariable*) v)->assumptions()->type() != ASSUMPTION_TYPE_NONE) title += " "; | ^~~~~ callbacks.cc:4411:88: error: 'title' was not declared in this scope 4411 | case ASSUMPTION_TYPE_INTEGER: {title += _("integer"); break;} | ^~~~~ callbacks.cc:4412:89: error: 'title' was not declared in this scope 4412 | case ASSUMPTION_TYPE_RATIONAL: {title += _("rational"); break;} | ^~~~~ callbacks.cc:4413:85: error: 'title' was not declared in this scope 4413 | case ASSUMPTION_TYPE_REAL: {title += _("real"); break;} | ^~~~~ callbacks.cc:4414:88: error: 'title' was not declared in this scope 4414 | case ASSUMPTION_TYPE_COMPLEX: {title += _("complex"); break;} | ^~~~~ callbacks.cc:4415:87: error: 'title' was not declared in this scope 4415 | case ASSUMPTION_TYPE_NUMBER: {title += _("number"); break;} | ^~~~~ callbacks.cc:4416:90: error: 'title' was not declared in this scope 4416 | case ASSUMPTION_TYPE_NONMATRIX: {title += _("(not matrix)"); break;} | ^~~~~ callbacks.cc:4419:52: error: 'title' was not declared in this scope 4419 | if(title.empty()) title = _("unknown"); | ^~~~~ callbacks.cc:4421:49: error: 'title' was not declared in this scope 4421 | title = _("default assumptions"); | ^~~~~ callbacks.cc:4424:86: error: 'str' was not declared in this scope; did you mean 'std'? 4424 | if(b) gtk_list_store_set(completion_store, &iter, 0, str.c_str(), 1, title.c_str(), 2, CALCULATOR->variables[i], 3, FALSE, 4, 0, 6, PANGO_WEIGHT_NORMAL, 7, 0, 8, NULL, -1); | ^~~ | std callbacks.cc:4424:102: error: 'title' was not declared in this scope 4424 | if(b) gtk_list_store_set(completion_store, &iter, 0, str.c_str(), 1, title.c_str(), 2, CALCULATOR->variables[i], 3, FALSE, 4, 0, 6, PANGO_WEIGHT_NORMAL, 7, 0, 8, NULL, -1); | ^~~~~ callbacks.cc:4425:111: error: 'title' was not declared in this scope 4425 | else gtk_list_store_set(completion_store, &iter, 0, ename_r->name.c_str(), 1, title.c_str(), 2, CALCULATOR->variables[i], 3, FALSE, 4, 0, 6, PANGO_WEIGHT_NORMAL, 7, 0, 8, NULL, -1); | ^~~~~ callbacks.cc:4441:57: error: 'str' was not declared in this scope; did you mean 'std'? 4441 | str = sub_suffix(ename_r); | ^~~ | std callbacks.cc:4441:74: error: invalid initialization of reference of type 'const std::string&' {aka 'const std::__cxx11::basic_string&'} from expression of type 'const ExpressionName*' 4441 | str = sub_suffix(ename_r); | ^~~~~~~ /usr/include/libqalculate/util.h:89:43: note: in passing argument 1 of 'std::string sub_suffix(const std::string&, const std::string&, const std::string&)' 89 | std::string sub_suffix(const std::string &name, const std::string &tag_begin, const std::string &tag_end); | ~~~~~~~~~~~~~~~~~~~^~~~ callbacks.cc:4443:57: error: 'str' was not declared in this scope; did you mean 'std'? 4443 | str = ename_r->name; | ^~~ | std callbacks.cc:4447:41: error: 'str' was not declared in this scope; did you mean 'std'? 4447 | str += " "; | ^~~ | std callbacks.cc:4449:67: error: invalid initialization of reference of type 'const std::string&' {aka 'const std::__cxx11::basic_string&'} from expression of type 'const ExpressionName*' 4449 | str += sub_suffix(ename); | ^~~~~ /usr/include/libqalculate/util.h:89:43: note: in passing argument 1 of 'std::string sub_suffix(const std::string&, const std::string&, const std::string&)' 89 | std::string sub_suffix(const std::string &name, const std::string &tag_begin, const std::string &tag_end); | ~~~~~~~~~~~~~~~~~~~^~~~ callbacks.cc:4457:33: error: 'str' was not declared in this scope; did you mean 'std'? 4457 | str = sub_suffix(ename_r); | ^~~ | std callbacks.cc:4457:50: error: invalid initialization of reference of type 'const std::string&' {aka 'const std::__cxx11::basic_string&'} from expression of type 'const ExpressionName*' 4457 | str = sub_suffix(ename_r); | ^~~~~~~ /usr/include/libqalculate/util.h:89:43: note: in passing argument 1 of 'std::string sub_suffix(const std::string&, const std::string&, const std::string&)' 89 | std::string sub_suffix(const std::string &name, const std::string &tag_begin, const std::string &tag_end); | ~~~~~~~~~~~~~~~~~~~^~~~ callbacks.cc:4460:25: error: 'unordered_map' was not declared in this scope 4460 | unordered_map::const_iterator it_flag = flag_images.end(); | ^~~~~~~~~~~~~ callbacks.cc:4460:25: note: suggested alternatives: /usr/include/c++/12.2.0/bits/unordered_map.h:102:11: note: 'std::unordered_map' 102 | class unordered_map | ^~~~~~~~~~~~~ /usr/include/c++/12.2.0/unordered_map:64:13: note: 'std::pmr::unordered_map' 64 | using unordered_map | ^~~~~~~~~~~~~ callbacks.cc:4460:56: error: expected primary-expression before '*' token 4460 | unordered_map::const_iterator it_flag = flag_images.end(); | ^ callbacks.cc:4460:57: error: expected primary-expression before '>' token 4460 | unordered_map::const_iterator it_flag = flag_images.end(); | ^ callbacks.cc:4460:60: error: '::const_iterator' has not been declared 4460 | unordered_map::const_iterator it_flag = flag_images.end(); | ^~~~~~~~~~~~~~ callbacks.cc:4461:45: error: 'it_flag' was not declared in this scope 4461 | if(u->isCurrency()) it_flag = flag_images.find(u->referenceName()); | ^~~~~~~ callbacks.cc:4461:55: error: 'flag_images' was not declared in this scope 4461 | if(u->isCurrency()) it_flag = flag_images.find(u->referenceName()); | ^~~~~~~~~~~ callbacks.cc:4462:78: error: 'str' was not declared in this scope; did you mean 'std'? 4462 | if(b) gtk_list_store_set(completion_store, &iter, 0, str.c_str(), 1, u->title().c_str(), 2, u, 3, FALSE, 4, 0, 5, it_flag == flag_images.end() ? NULL : it_flag->second, 6, PANGO_WEIGHT_NORMAL, 7, 0, 8, NULL, -1); | ^~~ | std callbacks.cc:4462:139: error: 'it_flag' was not declared in this scope 4462 | if(b) gtk_list_store_set(completion_store, &iter, 0, str.c_str(), 1, u->title().c_str(), 2, u, 3, FALSE, 4, 0, 5, it_flag == flag_images.end() ? NULL : it_flag->second, 6, PANGO_WEIGHT_NORMAL, 7, 0, 8, NULL, -1); | ^~~~~~~ callbacks.cc:4462:150: error: 'flag_images' was not declared in this scope 4462 | if(b) gtk_list_store_set(completion_store, &iter, 0, str.c_str(), 1, u->title().c_str(), 2, u, 3, FALSE, 4, 0, 5, it_flag == flag_images.end() ? NULL : it_flag->second, 6, PANGO_WEIGHT_NORMAL, 7, 0, 8, NULL, -1); | ^~~~~~~~~~~ callbacks.cc:4463:148: error: 'it_flag' was not declared in this scope 4463 | else gtk_list_store_set(completion_store, &iter, 0, ename_r->name.c_str(), 1, u->title().c_str(), 2, u, 3, FALSE, 4, 0, 5, it_flag == flag_images.end() ? NULL : it_flag->second, 6, PANGO_WEIGHT_NORMAL, 7, 0, 8, NULL, -1); | ^~~~~~~ callbacks.cc:4463:159: error: 'flag_images' was not declared in this scope 4463 | else gtk_list_store_set(completion_store, &iter, 0, ename_r->name.c_str(), 1, u->title().c_str(), 2, u, 3, FALSE, 4, 0, 5, it_flag == flag_images.end() ? NULL : it_flag->second, 6, PANGO_WEIGHT_NORMAL, 7, 0, 8, NULL, -1); | ^~~~~~~~~~~ callbacks.cc:4472:17: error: 'str' was not declared in this scope; did you mean 'std'? 4472 | str = ""; | ^~~ | std callbacks.cc:4474:31: error: 'string' does not name a type; did you mean 'GString'? 4474 | const string *pstr; | ^~~~~~ | GString callbacks.cc:4475:41: error: 'pstr' was not declared in this scope 4475 | if(name_i == 1) pstr = &p->longName(false); | ^~~~ callbacks.cc:4476:46: error: 'pstr' was not declared in this scope 4476 | else if(name_i == 2) pstr = &p->unicodeName(false); | ^~~~ callbacks.cc:4477:30: error: 'pstr' was not declared in this scope 4477 | else pstr = &p->shortName(false); | ^~~~ callbacks.cc:4478:29: error: 'pstr' was not declared in this scope 4478 | if(!pstr->empty()) { | ^~~~ callbacks.cc:4507:15: error: expected ';' before 'str2' 4507 | string str2; | ^~~~~ | ; callbacks.cc:4508:38: error: 'str' was not declared in this scope; did you mean 'std'? 4508 | #define COMPLETION_CONVERT_STRING(x) str = _(x); if(str != x) {str += " "; str += x; str += "";} | ^~~ callbacks.cc:4508:38: note: in definition of macro 'COMPLETION_CONVERT_STRING' 4508 | #define COMPLETION_CONVERT_STRING(x) str = _(x); if(str != x) {str += " "; str += x; str += "";} | ^~~ callbacks.cc:4509:94: error: 'str2' was not declared in this scope 4509 | #define COMPLETION_CONVERT_STRING2(x, y) str = _(x); str += " "; if(str != x) {str += x;} str2 = _(y); if(str2 != y) {str += " "; str += y;} str += " "; str += str2; str += ""; | ^~~~ callbacks.cc:4509:94: note: in definition of macro 'COMPLETION_CONVERT_STRING2' 4509 | #define COMPLETION_CONVERT_STRING2(x, y) str = _(x); str += " "; if(str != x) {str += x;} str2 = _(y); if(str2 != y) {str += " "; str += y;} str += " "; str += str2; str += ""; | ^~~~ callbacks.cc: At global scope: callbacks.cc:4565:1: error: 'string' does not name a type; did you mean 'GString'? 4565 | string get_value_string(const MathStructure &mstruct_, bool rlabel = false, Prefix *prefix = NULL) { | ^~~~~~ | GString callbacks.cc: In function 'cairo_surface_t* draw_structure(MathStructure&, PrintOptions, InternalPrintStruct, gint*, int, GdkRGBA*)': callbacks.cc:4640:25: error: 'string' was not declared in this scope 4640 | string str; | ^~~~~~ callbacks.cc:4640:25: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:4641:31: error: expected ';' before 'exp' 4641 | string exp = ""; | ^~~~ | ; callbacks.cc:4643:38: error: cannot resolve overloaded function 'exp' based on conversion to type 'std::string*' {aka 'std::__cxx11::basic_string*'} 4643 | ips_n.exp = &exp; | ^~~ callbacks.cc:4645:30: error: 'str' was not declared in this scope; did you mean 'std'? 4645 | TTBP(str) | ^~~ callbacks.cc:307:61: note: in definition of macro 'TTB_SMALL' 307 | #define TTB_SMALL(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} | ^~~ callbacks.cc:4645:25: note: in expansion of macro 'TTBP' 4645 | TTBP(str) | ^~~~ callbacks.cc:4645:30: error: 'str' was not declared in this scope; did you mean 'std'? 4645 | TTBP(str) | ^~~ callbacks.cc:307:119: note: in definition of macro 'TTB_SMALL' 307 | #define TTB_SMALL(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} | ^~~ callbacks.cc:4645:25: note: in expansion of macro 'TTBP' 4645 | TTBP(str) | ^~~~ callbacks.cc:4645:30: error: 'str' was not declared in this scope; did you mean 'std'? 4645 | TTBP(str) | ^~~ callbacks.cc:307:178: note: in definition of macro 'TTB_SMALL' 307 | #define TTB_SMALL(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} | ^~~ callbacks.cc:4645:25: note: in expansion of macro 'TTBP' 4645 | TTBP(str) | ^~~~ callbacks.cc:4645:30: error: 'str' was not declared in this scope; did you mean 'std'? 4645 | TTBP(str) | ^~~ callbacks.cc:307:217: note: in definition of macro 'TTB_SMALL' 307 | #define TTB_SMALL(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} | ^~~ callbacks.cc:4645:25: note: in expansion of macro 'TTBP' 4645 | TTBP(str) | ^~~~ callbacks.cc:4645:30: error: 'str' was not declared in this scope; did you mean 'std'? 4645 | TTBP(str) | ^~~ callbacks.cc:306:61: note: in definition of macro 'TTB' 306 | #define TTB(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} | ^~~ callbacks.cc:4645:25: note: in expansion of macro 'TTBP' 4645 | TTBP(str) | ^~~~ callbacks.cc:4645:30: error: 'str' was not declared in this scope; did you mean 'std'? 4645 | TTBP(str) | ^~~ callbacks.cc:306:122: note: in definition of macro 'TTB' 306 | #define TTB(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} | ^~~ callbacks.cc:4645:25: note: in expansion of macro 'TTBP' 4645 | TTBP(str) | ^~~~ callbacks.cc:4645:30: error: 'str' was not declared in this scope; did you mean 'std'? 4645 | TTBP(str) | ^~~ callbacks.cc:306:182: note: in definition of macro 'TTB' 306 | #define TTB(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} | ^~~ callbacks.cc:4645:25: note: in expansion of macro 'TTBP' 4645 | TTBP(str) | ^~~~ callbacks.cc:4645:30: error: 'str' was not declared in this scope; did you mean 'std'? 4645 | TTBP(str) | ^~~ callbacks.cc:306:221: note: in definition of macro 'TTB' 306 | #define TTB(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} | ^~~ callbacks.cc:4645:25: note: in expansion of macro 'TTBP' 4645 | TTBP(str) | ^~~~ callbacks.cc:4646:25: error: 'unordered_map' was not declared in this scope 4646 | unordered_map::iterator it = number_map.find((void*) &m.number()); | ^~~~~~~~~~~~~ callbacks.cc:4646:25: note: suggested alternatives: /usr/include/c++/12.2.0/bits/unordered_map.h:102:11: note: 'std::unordered_map' 102 | class unordered_map | ^~~~~~~~~~~~~ /usr/include/c++/12.2.0/unordered_map:64:13: note: 'std::pmr::unordered_map' 64 | using unordered_map | ^~~~~~~~~~~~~ callbacks.cc:4646:39: error: expected primary-expression before 'void' 4646 | unordered_map::iterator it = number_map.find((void*) &m.number()); | ^~~~ callbacks.cc:4647:31: error: expected ';' before 'value_str' 4647 | string value_str; | ^~~~~~~~~~ | ; callbacks.cc:4648:28: error: 'it' was not declared in this scope; did you mean 'int'? 4648 | if(it != number_map.end()) { | ^~ | int callbacks.cc:4648:34: error: 'number_map' was not declared in this scope 4648 | if(it != number_map.end()) { | ^~~~~~~~~~ callbacks.cc:4649:33: error: 'value_str' was not declared in this scope 4649 | value_str += it->second; | ^~~~~~~~~ callbacks.cc:4650:36: error: 'number_approx_map' was not declared in this scope 4650 | if(number_approx_map.find((void*) &m.number()) != number_approx_map.end()) { | ^~~~~~~~~~~~~~~~~ callbacks.cc:4653:36: error: 'number_exp_map' was not declared in this scope 4653 | if(number_exp_map.find((void*) &m.number()) != number_exp_map.end()) { | ^~~~~~~~~~~~~~ callbacks.cc:4655:53: error: 'number_exp_minus_map' was not declared in this scope 4655 | exp_minus = number_exp_minus_map[(void*) &m.number()]; | ^~~~~~~~~~~~~~~~~~~~ callbacks.cc:4658:33: error: 'value_str' was not declared in this scope 4658 | value_str = m.number().print(po, ips_n); | ^~~~~~~~~ callbacks.cc:4660:33: error: 'number_exp_map' was not declared in this scope 4660 | number_exp_map[(void*) &m.number()] = exp; | ^~~~~~~~~~~~~~ callbacks.cc:4661:33: error: 'number_exp_minus_map' was not declared in this scope 4661 | number_exp_minus_map[(void*) &m.number()] = exp_minus; | ^~~~~~~~~~~~~~~~~~~~ callbacks.cc:4663:41: error: 'number_approx_map' was not declared in this scope 4663 | number_approx_map[(void*) &m.number()] = *po.is_approximate; | ^~~~~~~~~~~~~~~~~ callbacks.cc:4665:41: error: 'number_approx_map' was not declared in this scope 4665 | number_approx_map[(void*) &m.number()] = FALSE; | ^~~~~~~~~~~~~~~~~ callbacks.cc:4701:116: error: overloaded function with no contextual type information 4701 | if((!use_e_notation || (po.base != BASE_DECIMAL && po.base >= 2 && po.base <= 36)) && !exp.empty()) { | ^~~~~ callbacks.cc:4702:36: error: 'value_str' was not declared in this scope 4702 | if(value_str == "1") { | ^~~~~~~~~ callbacks.cc:4705:41: error: 'number_map' was not declared in this scope 4705 | number_map[(void*) &mnr[0].number()] = (po.base != BASE_DECIMAL && po.base >= 2 && po.base <= 36) ? i2s(po.base) : "10"; | ^~~~~~~~~~ callbacks.cc:4720:41: error: 'number_map' was not declared in this scope 4720 | number_map[(void*) &mnr[0].number()] = value_str; | ^~~~~~~~~~ callbacks.cc:4721:41: error: 'number_approx_map' was not declared in this scope 4721 | number_approx_map[(void*) &mnr[0].number()] = number_approx_map[(void*) &m.number()]; | ^~~~~~~~~~~~~~~~~ callbacks.cc:4739:25: error: 'str' was not declared in this scope; did you mean 'std'? 4739 | str += value_str; | ^~~ | std callbacks.cc:4739:32: error: 'value_str' was not declared in this scope 4739 | str += value_str; | ^~~~~~~~~ callbacks.cc:4741:33: error: overloaded function with no contextual type information 4741 | if(!exp.empty()) { | ^~~~~ callbacks.cc:4749:39: error: expected ';' before 'estr' 4749 | string estr; | ^~~~~ | ; callbacks.cc:4750:58: error: 'estr' was not declared in this scope; did you mean 'eqstr'? 4750 | if(po.lower_case_e) {TTP(estr, "e");} | ^~~~ callbacks.cc:313:62: note: in definition of macro 'TT_SMALL' 313 | #define TT_SMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:4750:54: note: in expansion of macro 'TTP' 4750 | if(po.lower_case_e) {TTP(estr, "e");} | ^~~ callbacks.cc:4750:58: error: 'estr' was not declared in this scope; did you mean 'eqstr'? 4750 | if(po.lower_case_e) {TTP(estr, "e");} | ^~~~ callbacks.cc:313:120: note: in definition of macro 'TT_SMALL' 313 | #define TT_SMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:4750:54: note: in expansion of macro 'TTP' 4750 | if(po.lower_case_e) {TTP(estr, "e");} | ^~~ callbacks.cc:4750:58: error: 'estr' was not declared in this scope; did you mean 'eqstr'? 4750 | if(po.lower_case_e) {TTP(estr, "e");} | ^~~~ callbacks.cc:313:179: note: in definition of macro 'TT_SMALL' 313 | #define TT_SMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:4750:54: note: in expansion of macro 'TTP' 4750 | if(po.lower_case_e) {TTP(estr, "e");} | ^~~ callbacks.cc:4750:58: error: 'estr' was not declared in this scope; did you mean 'eqstr'? 4750 | if(po.lower_case_e) {TTP(estr, "e");} | ^~~~ callbacks.cc:313:218: note: in definition of macro 'TT_SMALL' 313 | #define TT_SMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:4750:54: note: in expansion of macro 'TTP' 4750 | if(po.lower_case_e) {TTP(estr, "e");} | ^~~ callbacks.cc:4750:58: error: 'estr' was not declared in this scope; did you mean 'eqstr'? 4750 | if(po.lower_case_e) {TTP(estr, "e");} | ^~~~ callbacks.cc:313:253: note: in definition of macro 'TT_SMALL' 313 | #define TT_SMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:4750:54: note: in expansion of macro 'TTP' 4750 | if(po.lower_case_e) {TTP(estr, "e");} | ^~~ callbacks.cc:4750:58: error: 'estr' was not declared in this scope; did you mean 'eqstr'? 4750 | if(po.lower_case_e) {TTP(estr, "e");} | ^~~~ callbacks.cc:312:62: note: in definition of macro 'TT' 312 | #define TT(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:4750:54: note: in expansion of macro 'TTP' 4750 | if(po.lower_case_e) {TTP(estr, "e");} | ^~~ callbacks.cc:4750:58: error: 'estr' was not declared in this scope; did you mean 'eqstr'? 4750 | if(po.lower_case_e) {TTP(estr, "e");} | ^~~~ callbacks.cc:312:123: note: in definition of macro 'TT' 312 | #define TT(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:4750:54: note: in expansion of macro 'TTP' 4750 | if(po.lower_case_e) {TTP(estr, "e");} | ^~~ callbacks.cc:4750:58: error: 'estr' was not declared in this scope; did you mean 'eqstr'? 4750 | if(po.lower_case_e) {TTP(estr, "e");} | ^~~~ callbacks.cc:312:183: note: in definition of macro 'TT' 312 | #define TT(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:4750:54: note: in expansion of macro 'TTP' 4750 | if(po.lower_case_e) {TTP(estr, "e");} | ^~~ callbacks.cc:4750:58: error: 'estr' was not declared in this scope; did you mean 'eqstr'? 4750 | if(po.lower_case_e) {TTP(estr, "e");} | ^~~~ callbacks.cc:312:222: note: in definition of macro 'TT' 312 | #define TT(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:4750:54: note: in expansion of macro 'TTP' 4750 | if(po.lower_case_e) {TTP(estr, "e");} | ^~~ callbacks.cc:4750:58: error: 'estr' was not declared in this scope; did you mean 'eqstr'? 4750 | if(po.lower_case_e) {TTP(estr, "e");} | ^~~~ callbacks.cc:312:256: note: in definition of macro 'TT' 312 | #define TT(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:4750:54: note: in expansion of macro 'TTP' 4750 | if(po.lower_case_e) {TTP(estr, "e");} | ^~~ callbacks.cc:4751:49: error: 'estr' was not declared in this scope; did you mean 'eqstr'? 4751 | else {TTP_SMALL(estr, "E");} | ^~~~ callbacks.cc:314:62: note: in definition of macro 'TT_XSMALL' 314 | #define TT_XSMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:4751:39: note: in expansion of macro 'TTP_SMALL' 4751 | else {TTP_SMALL(estr, "E");} | ^~~~~~~~~ callbacks.cc:4751:49: error: 'estr' was not declared in this scope; did you mean 'eqstr'? 4751 | else {TTP_SMALL(estr, "E");} | ^~~~ callbacks.cc:314:121: note: in definition of macro 'TT_XSMALL' 314 | #define TT_XSMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:4751:39: note: in expansion of macro 'TTP_SMALL' 4751 | else {TTP_SMALL(estr, "E");} | ^~~~~~~~~ callbacks.cc:4751:49: error: 'estr' was not declared in this scope; did you mean 'eqstr'? 4751 | else {TTP_SMALL(estr, "E");} | ^~~~ callbacks.cc:314:160: note: in definition of macro 'TT_XSMALL' 314 | #define TT_XSMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:4751:39: note: in expansion of macro 'TTP_SMALL' 4751 | else {TTP_SMALL(estr, "E");} | ^~~~~~~~~ callbacks.cc:4751:49: error: 'estr' was not declared in this scope; did you mean 'eqstr'? 4751 | else {TTP_SMALL(estr, "E");} | ^~~~ callbacks.cc:314:195: note: in definition of macro 'TT_XSMALL' 314 | #define TT_XSMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:4751:39: note: in expansion of macro 'TTP_SMALL' 4751 | else {TTP_SMALL(estr, "E");} | ^~~~~~~~~ callbacks.cc:4751:49: error: 'estr' was not declared in this scope; did you mean 'eqstr'? 4751 | else {TTP_SMALL(estr, "E");} | ^~~~ callbacks.cc:313:62: note: in definition of macro 'TT_SMALL' 313 | #define TT_SMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:4751:39: note: in expansion of macro 'TTP_SMALL' 4751 | else {TTP_SMALL(estr, "E");} | ^~~~~~~~~ callbacks.cc:4751:49: error: 'estr' was not declared in this scope; did you mean 'eqstr'? 4751 | else {TTP_SMALL(estr, "E");} | ^~~~ callbacks.cc:313:120: note: in definition of macro 'TT_SMALL' 313 | #define TT_SMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:4751:39: note: in expansion of macro 'TTP_SMALL' 4751 | else {TTP_SMALL(estr, "E");} | ^~~~~~~~~ callbacks.cc:4751:49: error: 'estr' was not declared in this scope; did you mean 'eqstr'? 4751 | else {TTP_SMALL(estr, "E");} | ^~~~ callbacks.cc:313:179: note: in definition of macro 'TT_SMALL' 313 | #define TT_SMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:4751:39: note: in expansion of macro 'TTP_SMALL' 4751 | else {TTP_SMALL(estr, "E");} | ^~~~~~~~~ callbacks.cc:4751:49: error: 'estr' was not declared in this scope; did you mean 'eqstr'? 4751 | else {TTP_SMALL(estr, "E");} | ^~~~ callbacks.cc:313:218: note: in definition of macro 'TT_SMALL' 313 | #define TT_SMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:4751:39: note: in expansion of macro 'TTP_SMALL' 4751 | else {TTP_SMALL(estr, "E");} | ^~~~~~~~~ callbacks.cc:4751:49: error: 'estr' was not declared in this scope; did you mean 'eqstr'? 4751 | else {TTP_SMALL(estr, "E");} | ^~~~ callbacks.cc:313:253: note: in definition of macro 'TT_SMALL' 313 | #define TT_SMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:4751:39: note: in expansion of macro 'TTP_SMALL' 4751 | else {TTP_SMALL(estr, "E");} | ^~~~~~~~~ callbacks.cc:4752:63: error: 'estr' was not declared in this scope; did you mean 'eqstr'? 4752 | if(po.lower_case_e) gsub("e", estr, str); | ^~~~ | eqstr callbacks.cc:4753:48: error: 'estr' was not declared in this scope; did you mean 'eqstr'? 4753 | else gsub("E", estr, str); | ^~~~ | eqstr callbacks.cc:4755:190: error: 'string' is not a class, namespace, or enumeration 4755 | bool twos = (((po.base == 2 && po.twos_complement) || (po.base == 16 && po.hexadecimal_twos_complement)) && m.number().isNegative() && value_str.find(SIGN_MINUS) == string::npos && value_str.find("-") == string::npos); | ^~~~~~ callbacks.cc:4755:229: error: 'string' is not a class, namespace, or enumeration 4755 | bool twos = (((po.base == 2 && po.twos_complement) || (po.base == 16 && po.hexadecimal_twos_complement)) && m.number().isNegative() && value_str.find(SIGN_MINUS) == string::npos && value_str.find("-") == string::npos); | ^~~~~~ callbacks.cc:4784:25: error: 'string' was not declared in this scope 4784 | string str; | ^~~~~~ callbacks.cc:4784:25: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:4785:25: error: 'str' was not declared in this scope; did you mean 'std'? 4785 | str = ""; | ^~~ | std callbacks.cc:4808:25: error: 'string' was not declared in this scope 4808 | string str; | ^~~~~~ callbacks.cc:4808:25: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:4809:30: error: 'str' was not declared in this scope; did you mean 'std'? 4809 | TTBP(str) | ^~~ callbacks.cc:307:61: note: in definition of macro 'TTB_SMALL' 307 | #define TTB_SMALL(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} | ^~~ callbacks.cc:4809:25: note: in expansion of macro 'TTBP' 4809 | TTBP(str) | ^~~~ callbacks.cc:4809:30: error: 'str' was not declared in this scope; did you mean 'std'? 4809 | TTBP(str) | ^~~ callbacks.cc:307:119: note: in definition of macro 'TTB_SMALL' 307 | #define TTB_SMALL(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} | ^~~ callbacks.cc:4809:25: note: in expansion of macro 'TTBP' 4809 | TTBP(str) | ^~~~ callbacks.cc:4809:30: error: 'str' was not declared in this scope; did you mean 'std'? 4809 | TTBP(str) | ^~~ callbacks.cc:307:178: note: in definition of macro 'TTB_SMALL' 307 | #define TTB_SMALL(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} | ^~~ callbacks.cc:4809:25: note: in expansion of macro 'TTBP' 4809 | TTBP(str) | ^~~~ callbacks.cc:4809:30: error: 'str' was not declared in this scope; did you mean 'std'? 4809 | TTBP(str) | ^~~ callbacks.cc:307:217: note: in definition of macro 'TTB_SMALL' 307 | #define TTB_SMALL(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} | ^~~ callbacks.cc:4809:25: note: in expansion of macro 'TTBP' 4809 | TTBP(str) | ^~~~ callbacks.cc:4809:30: error: 'str' was not declared in this scope; did you mean 'std'? 4809 | TTBP(str) | ^~~ callbacks.cc:306:61: note: in definition of macro 'TTB' 306 | #define TTB(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} | ^~~ callbacks.cc:4809:25: note: in expansion of macro 'TTBP' 4809 | TTBP(str) | ^~~~ callbacks.cc:4809:30: error: 'str' was not declared in this scope; did you mean 'std'? 4809 | TTBP(str) | ^~~ callbacks.cc:306:122: note: in definition of macro 'TTB' 306 | #define TTB(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} | ^~~ callbacks.cc:4809:25: note: in expansion of macro 'TTBP' 4809 | TTBP(str) | ^~~~ callbacks.cc:4809:30: error: 'str' was not declared in this scope; did you mean 'std'? 4809 | TTBP(str) | ^~~ callbacks.cc:306:182: note: in definition of macro 'TTB' 306 | #define TTB(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} | ^~~ callbacks.cc:4809:25: note: in expansion of macro 'TTBP' 4809 | TTBP(str) | ^~~~ callbacks.cc:4809:30: error: 'str' was not declared in this scope; did you mean 'std'? 4809 | TTBP(str) | ^~~ callbacks.cc:306:221: note: in definition of macro 'TTB' 306 | #define TTB(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} | ^~~ callbacks.cc:4809:25: note: in expansion of macro 'TTBP' 4809 | TTBP(str) | ^~~~ callbacks.cc:4810:25: error: 'unordered_map' was not declared in this scope 4810 | unordered_map::iterator it = date_map.find((void*) m.datetime()); | ^~~~~~~~~~~~~ callbacks.cc:4810:25: note: suggested alternatives: /usr/include/c++/12.2.0/bits/unordered_map.h:102:11: note: 'std::unordered_map' 102 | class unordered_map | ^~~~~~~~~~~~~ /usr/include/c++/12.2.0/unordered_map:64:13: note: 'std::pmr::unordered_map' 64 | using unordered_map | ^~~~~~~~~~~~~ callbacks.cc:4810:39: error: expected primary-expression before 'void' 4810 | unordered_map::iterator it = date_map.find((void*) m.datetime()); | ^~~~ callbacks.cc:4811:28: error: 'it' was not declared in this scope; did you mean 'int'? 4811 | if(it != date_map.end()) { | ^~ | int callbacks.cc:4811:34: error: 'date_map' was not declared in this scope 4811 | if(it != date_map.end()) { | ^~~~~~~~ callbacks.cc:4812:33: error: 'str' was not declared in this scope; did you mean 'std'? 4812 | str += it->second; | ^~~ | std callbacks.cc:4814:39: error: expected ';' before 'value_str' 4814 | string value_str = m.datetime()->print(po); | ^~~~~~~~~~ | ; callbacks.cc:4815:66: error: 'value_str' was not declared in this scope 4815 | date_map[(void*) m.datetime()] = value_str; | ^~~~~~~~~ callbacks.cc:4816:33: error: 'str' was not declared in this scope; did you mean 'std'? 4816 | str += value_str; | ^~~ | std callbacks.cc:4818:29: error: 'str' was not declared in this scope; did you mean 'std'? 4818 | TTE(str) | ^~~ callbacks.cc:311:41: note: in definition of macro 'TTE' 311 | #define TTE(str) str += ""; | ^~~ callbacks.cc:4838:25: error: 'vector' was not declared in this scope 4838 | vector surface_terms; | ^~~~~~ callbacks.cc:4838:25: note: suggested alternatives: In file included from /usr/include/c++/12.2.0/vector:64: /usr/include/c++/12.2.0/bits/stl_vector.h:423:11: note: 'std::vector' 423 | class vector : protected _Vector_base<_Tp, _Alloc> | ^~~~~~ /usr/include/c++/12.2.0/vector:84:13: note: 'std::pmr::vector' 84 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>; | ^~~~~~ callbacks.cc:4838:47: error: expected primary-expression before '*' token 4838 | vector surface_terms; | ^ callbacks.cc:4838:48: error: expected primary-expression before '>' token 4838 | vector surface_terms; | ^ callbacks.cc:4838:50: error: 'surface_terms' was not declared in this scope 4838 | vector surface_terms; | ^~~~~~~~~~~~~ callbacks.cc:4839:36: error: expected primary-expression before '>' token 4839 | vector hpt; | ^ callbacks.cc:4839:38: error: 'hpt' was not declared in this scope 4839 | vector hpt; | ^~~ callbacks.cc:4840:36: error: expected primary-expression before '>' token 4840 | vector wpt; | ^ callbacks.cc:4840:38: error: 'wpt' was not declared in this scope 4840 | vector wpt; | ^~~ callbacks.cc:4841:36: error: expected primary-expression before '>' token 4841 | vector cpt; | ^ callbacks.cc:4841:38: error: 'cpt' was not declared in this scope 4841 | vector cpt; | ^~~ callbacks.cc:5032:25: error: 'vector' was not declared in this scope 5032 | vector surface_terms; | ^~~~~~ callbacks.cc:5032:25: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stl_vector.h:423:11: note: 'std::vector' 423 | class vector : protected _Vector_base<_Tp, _Alloc> | ^~~~~~ /usr/include/c++/12.2.0/vector:84:13: note: 'std::pmr::vector' 84 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>; | ^~~~~~ callbacks.cc:5032:47: error: expected primary-expression before '*' token 5032 | vector surface_terms; | ^ callbacks.cc:5032:48: error: expected primary-expression before '>' token 5032 | vector surface_terms; | ^ callbacks.cc:5032:50: error: 'surface_terms' was not declared in this scope 5032 | vector surface_terms; | ^~~~~~~~~~~~~ callbacks.cc:5033:36: error: expected primary-expression before '>' token 5033 | vector hpt; | ^ callbacks.cc:5033:38: error: 'hpt' was not declared in this scope 5033 | vector hpt; | ^~~ callbacks.cc:5034:36: error: expected primary-expression before '>' token 5034 | vector wpt; | ^ callbacks.cc:5034:38: error: 'wpt' was not declared in this scope 5034 | vector wpt; | ^~~ callbacks.cc:5035:36: error: expected primary-expression before '>' token 5035 | vector cpt; | ^ callbacks.cc:5035:38: error: 'cpt' was not declared in this scope 5035 | vector cpt; | ^~~ callbacks.cc:5040:25: error: 'string' was not declared in this scope 5040 | string str; | ^~~~~~ callbacks.cc:5040:25: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:5042:43: error: 'str' was not declared in this scope; did you mean 'std'? 5042 | TTP_SMALL(str, SIGN_MULTIDOT); | ^~~ callbacks.cc:314:62: note: in definition of macro 'TT_XSMALL' 314 | #define TT_XSMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:5042:33: note: in expansion of macro 'TTP_SMALL' 5042 | TTP_SMALL(str, SIGN_MULTIDOT); | ^~~~~~~~~ callbacks.cc:5042:43: error: 'str' was not declared in this scope; did you mean 'std'? 5042 | TTP_SMALL(str, SIGN_MULTIDOT); | ^~~ callbacks.cc:314:121: note: in definition of macro 'TT_XSMALL' 314 | #define TT_XSMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:5042:33: note: in expansion of macro 'TTP_SMALL' 5042 | TTP_SMALL(str, SIGN_MULTIDOT); | ^~~~~~~~~ callbacks.cc:5042:43: error: 'str' was not declared in this scope; did you mean 'std'? 5042 | TTP_SMALL(str, SIGN_MULTIDOT); | ^~~ callbacks.cc:314:160: note: in definition of macro 'TT_XSMALL' 314 | #define TT_XSMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:5042:33: note: in expansion of macro 'TTP_SMALL' 5042 | TTP_SMALL(str, SIGN_MULTIDOT); | ^~~~~~~~~ callbacks.cc:5042:43: error: 'str' was not declared in this scope; did you mean 'std'? 5042 | TTP_SMALL(str, SIGN_MULTIDOT); | ^~~ callbacks.cc:314:195: note: in definition of macro 'TT_XSMALL' 314 | #define TT_XSMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:5042:33: note: in expansion of macro 'TTP_SMALL' 5042 | TTP_SMALL(str, SIGN_MULTIDOT); | ^~~~~~~~~ callbacks.cc:5042:43: error: 'str' was not declared in this scope; did you mean 'std'? 5042 | TTP_SMALL(str, SIGN_MULTIDOT); | ^~~ callbacks.cc:313:62: note: in definition of macro 'TT_SMALL' 313 | #define TT_SMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:5042:33: note: in expansion of macro 'TTP_SMALL' 5042 | TTP_SMALL(str, SIGN_MULTIDOT); | ^~~~~~~~~ callbacks.cc:5042:43: error: 'str' was not declared in this scope; did you mean 'std'? 5042 | TTP_SMALL(str, SIGN_MULTIDOT); | ^~~ callbacks.cc:313:120: note: in definition of macro 'TT_SMALL' 313 | #define TT_SMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:5042:33: note: in expansion of macro 'TTP_SMALL' 5042 | TTP_SMALL(str, SIGN_MULTIDOT); | ^~~~~~~~~ callbacks.cc:5042:43: error: 'str' was not declared in this scope; did you mean 'std'? 5042 | TTP_SMALL(str, SIGN_MULTIDOT); | ^~~ callbacks.cc:313:179: note: in definition of macro 'TT_SMALL' 313 | #define TT_SMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:5042:33: note: in expansion of macro 'TTP_SMALL' 5042 | TTP_SMALL(str, SIGN_MULTIDOT); | ^~~~~~~~~ callbacks.cc:5042:43: error: 'str' was not declared in this scope; did you mean 'std'? 5042 | TTP_SMALL(str, SIGN_MULTIDOT); | ^~~ callbacks.cc:313:218: note: in definition of macro 'TT_SMALL' 313 | #define TT_SMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:5042:33: note: in expansion of macro 'TTP_SMALL' 5042 | TTP_SMALL(str, SIGN_MULTIDOT); | ^~~~~~~~~ callbacks.cc:5042:43: error: 'str' was not declared in this scope; did you mean 'std'? 5042 | TTP_SMALL(str, SIGN_MULTIDOT); | ^~~ callbacks.cc:313:253: note: in definition of macro 'TT_SMALL' 313 | #define TT_SMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:5042:33: note: in expansion of macro 'TTP_SMALL' 5042 | TTP_SMALL(str, SIGN_MULTIDOT); | ^~~~~~~~~ callbacks.cc:5044:43: error: 'str' was not declared in this scope; did you mean 'std'? 5044 | TTP_SMALL(str, SIGN_MIDDLEDOT); | ^~~ callbacks.cc:314:62: note: in definition of macro 'TT_XSMALL' 314 | #define TT_XSMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:5044:33: note: in expansion of macro 'TTP_SMALL' 5044 | TTP_SMALL(str, SIGN_MIDDLEDOT); | ^~~~~~~~~ callbacks.cc:5044:43: error: 'str' was not declared in this scope; did you mean 'std'? 5044 | TTP_SMALL(str, SIGN_MIDDLEDOT); | ^~~ callbacks.cc:314:121: note: in definition of macro 'TT_XSMALL' 314 | #define TT_XSMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:5044:33: note: in expansion of macro 'TTP_SMALL' 5044 | TTP_SMALL(str, SIGN_MIDDLEDOT); | ^~~~~~~~~ callbacks.cc:5044:43: error: 'str' was not declared in this scope; did you mean 'std'? 5044 | TTP_SMALL(str, SIGN_MIDDLEDOT); | ^~~ callbacks.cc:314:160: note: in definition of macro 'TT_XSMALL' 314 | #define TT_XSMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:5044:33: note: in expansion of macro 'TTP_SMALL' 5044 | TTP_SMALL(str, SIGN_MIDDLEDOT); | ^~~~~~~~~ callbacks.cc:5044:43: error: 'str' was not declared in this scope; did you mean 'std'? 5044 | TTP_SMALL(str, SIGN_MIDDLEDOT); | ^~~ callbacks.cc:314:195: note: in definition of macro 'TT_XSMALL' 314 | #define TT_XSMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:5044:33: note: in expansion of macro 'TTP_SMALL' 5044 | TTP_SMALL(str, SIGN_MIDDLEDOT); | ^~~~~~~~~ callbacks.cc:5044:43: error: 'str' was not declared in this scope; did you mean 'std'? 5044 | TTP_SMALL(str, SIGN_MIDDLEDOT); | ^~~ callbacks.cc:313:62: note: in definition of macro 'TT_SMALL' 313 | #define TT_SMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:5044:33: note: in expansion of macro 'TTP_SMALL' 5044 | TTP_SMALL(str, SIGN_MIDDLEDOT); | ^~~~~~~~~ callbacks.cc:5044:43: error: 'str' was not declared in this scope; did you mean 'std'? 5044 | TTP_SMALL(str, SIGN_MIDDLEDOT); | ^~~ callbacks.cc:313:120: note: in definition of macro 'TT_SMALL' 313 | #define TT_SMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:5044:33: note: in expansion of macro 'TTP_SMALL' 5044 | TTP_SMALL(str, SIGN_MIDDLEDOT); | ^~~~~~~~~ callbacks.cc:5044:43: error: 'str' was not declared in this scope; did you mean 'std'? 5044 | TTP_SMALL(str, SIGN_MIDDLEDOT); | ^~~ callbacks.cc:313:179: note: in definition of macro 'TT_SMALL' 313 | #define TT_SMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:5044:33: note: in expansion of macro 'TTP_SMALL' 5044 | TTP_SMALL(str, SIGN_MIDDLEDOT); | ^~~~~~~~~ callbacks.cc:5044:43: error: 'str' was not declared in this scope; did you mean 'std'? 5044 | TTP_SMALL(str, SIGN_MIDDLEDOT); | ^~~ callbacks.cc:313:218: note: in definition of macro 'TT_SMALL' 313 | #define TT_SMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:5044:33: note: in expansion of macro 'TTP_SMALL' 5044 | TTP_SMALL(str, SIGN_MIDDLEDOT); | ^~~~~~~~~ callbacks.cc:5044:43: error: 'str' was not declared in this scope; did you mean 'std'? 5044 | TTP_SMALL(str, SIGN_MIDDLEDOT); | ^~~ callbacks.cc:313:253: note: in definition of macro 'TT_SMALL' 313 | #define TT_SMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:5044:33: note: in expansion of macro 'TTP_SMALL' 5044 | TTP_SMALL(str, SIGN_MIDDLEDOT); | ^~~~~~~~~ callbacks.cc:5046:43: error: 'str' was not declared in this scope; did you mean 'std'? 5046 | TTP_SMALL(str, SIGN_MULTIPLICATION); | ^~~ callbacks.cc:314:62: note: in definition of macro 'TT_XSMALL' 314 | #define TT_XSMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:5046:33: note: in expansion of macro 'TTP_SMALL' 5046 | TTP_SMALL(str, SIGN_MULTIPLICATION); | ^~~~~~~~~ callbacks.cc:5046:43: error: 'str' was not declared in this scope; did you mean 'std'? 5046 | TTP_SMALL(str, SIGN_MULTIPLICATION); | ^~~ callbacks.cc:314:121: note: in definition of macro 'TT_XSMALL' 314 | #define TT_XSMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:5046:33: note: in expansion of macro 'TTP_SMALL' 5046 | TTP_SMALL(str, SIGN_MULTIPLICATION); | ^~~~~~~~~ callbacks.cc:5046:43: error: 'str' was not declared in this scope; did you mean 'std'? 5046 | TTP_SMALL(str, SIGN_MULTIPLICATION); | ^~~ callbacks.cc:314:160: note: in definition of macro 'TT_XSMALL' 314 | #define TT_XSMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:5046:33: note: in expansion of macro 'TTP_SMALL' 5046 | TTP_SMALL(str, SIGN_MULTIPLICATION); | ^~~~~~~~~ callbacks.cc:5046:43: error: 'str' was not declared in this scope; did you mean 'std'? 5046 | TTP_SMALL(str, SIGN_MULTIPLICATION); | ^~~ callbacks.cc:314:195: note: in definition of macro 'TT_XSMALL' 314 | #define TT_XSMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:5046:33: note: in expansion of macro 'TTP_SMALL' 5046 | TTP_SMALL(str, SIGN_MULTIPLICATION); | ^~~~~~~~~ callbacks.cc:5046:43: error: 'str' was not declared in this scope; did you mean 'std'? 5046 | TTP_SMALL(str, SIGN_MULTIPLICATION); | ^~~ callbacks.cc:313:62: note: in definition of macro 'TT_SMALL' 313 | #define TT_SMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:5046:33: note: in expansion of macro 'TTP_SMALL' 5046 | TTP_SMALL(str, SIGN_MULTIPLICATION); | ^~~~~~~~~ callbacks.cc:5046:43: error: 'str' was not declared in this scope; did you mean 'std'? 5046 | TTP_SMALL(str, SIGN_MULTIPLICATION); | ^~~ callbacks.cc:313:120: note: in definition of macro 'TT_SMALL' 313 | #define TT_SMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:5046:33: note: in expansion of macro 'TTP_SMALL' 5046 | TTP_SMALL(str, SIGN_MULTIPLICATION); | ^~~~~~~~~ callbacks.cc:5046:43: error: 'str' was not declared in this scope; did you mean 'std'? 5046 | TTP_SMALL(str, SIGN_MULTIPLICATION); | ^~~ callbacks.cc:313:179: note: in definition of macro 'TT_SMALL' 313 | #define TT_SMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:5046:33: note: in expansion of macro 'TTP_SMALL' 5046 | TTP_SMALL(str, SIGN_MULTIPLICATION); | ^~~~~~~~~ callbacks.cc:5046:43: error: 'str' was not declared in this scope; did you mean 'std'? 5046 | TTP_SMALL(str, SIGN_MULTIPLICATION); | ^~~ callbacks.cc:313:218: note: in definition of macro 'TT_SMALL' 313 | #define TT_SMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:5046:33: note: in expansion of macro 'TTP_SMALL' 5046 | TTP_SMALL(str, SIGN_MULTIPLICATION); | ^~~~~~~~~ callbacks.cc:5046:43: error: 'str' was not declared in this scope; did you mean 'std'? 5046 | TTP_SMALL(str, SIGN_MULTIPLICATION); | ^~~ callbacks.cc:313:253: note: in definition of macro 'TT_SMALL' 313 | #define TT_SMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:5046:33: note: in expansion of macro 'TTP_SMALL' 5046 | TTP_SMALL(str, SIGN_MULTIPLICATION); | ^~~~~~~~~ callbacks.cc:5048:37: error: 'str' was not declared in this scope; did you mean 'std'? 5048 | TTP(str, "*"); | ^~~ callbacks.cc:313:62: note: in definition of macro 'TT_SMALL' 313 | #define TT_SMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:5048:33: note: in expansion of macro 'TTP' 5048 | TTP(str, "*"); | ^~~ callbacks.cc:5048:37: error: 'str' was not declared in this scope; did you mean 'std'? 5048 | TTP(str, "*"); | ^~~ callbacks.cc:313:120: note: in definition of macro 'TT_SMALL' 313 | #define TT_SMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:5048:33: note: in expansion of macro 'TTP' 5048 | TTP(str, "*"); | ^~~ callbacks.cc:5048:37: error: 'str' was not declared in this scope; did you mean 'std'? 5048 | TTP(str, "*"); | ^~~ callbacks.cc:313:179: note: in definition of macro 'TT_SMALL' 313 | #define TT_SMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:5048:33: note: in expansion of macro 'TTP' 5048 | TTP(str, "*"); | ^~~ callbacks.cc:5048:37: error: 'str' was not declared in this scope; did you mean 'std'? 5048 | TTP(str, "*"); | ^~~ callbacks.cc:313:218: note: in definition of macro 'TT_SMALL' 313 | #define TT_SMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:5048:33: note: in expansion of macro 'TTP' 5048 | TTP(str, "*"); | ^~~ callbacks.cc:5048:37: error: 'str' was not declared in this scope; did you mean 'std'? 5048 | TTP(str, "*"); | ^~~ callbacks.cc:313:253: note: in definition of macro 'TT_SMALL' 313 | #define TT_SMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:5048:33: note: in expansion of macro 'TTP' 5048 | TTP(str, "*"); | ^~~ callbacks.cc:5048:37: error: 'str' was not declared in this scope; did you mean 'std'? 5048 | TTP(str, "*"); | ^~~ callbacks.cc:312:62: note: in definition of macro 'TT' 312 | #define TT(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:5048:33: note: in expansion of macro 'TTP' 5048 | TTP(str, "*"); | ^~~ callbacks.cc:5048:37: error: 'str' was not declared in this scope; did you mean 'std'? 5048 | TTP(str, "*"); | ^~~ callbacks.cc:312:123: note: in definition of macro 'TT' 312 | #define TT(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:5048:33: note: in expansion of macro 'TTP' 5048 | TTP(str, "*"); | ^~~ callbacks.cc:5048:37: error: 'str' was not declared in this scope; did you mean 'std'? 5048 | TTP(str, "*"); | ^~~ callbacks.cc:312:183: note: in definition of macro 'TT' 312 | #define TT(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:5048:33: note: in expansion of macro 'TTP' 5048 | TTP(str, "*"); | ^~~ callbacks.cc:5048:37: error: 'str' was not declared in this scope; did you mean 'std'? 5048 | TTP(str, "*"); | ^~~ callbacks.cc:312:222: note: in definition of macro 'TT' 312 | #define TT(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:5048:33: note: in expansion of macro 'TTP' 5048 | TTP(str, "*"); | ^~~ callbacks.cc:5048:37: error: 'str' was not declared in this scope; did you mean 'std'? 5048 | TTP(str, "*"); | ^~~ callbacks.cc:312:256: note: in definition of macro 'TT' 312 | #define TT(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:5048:33: note: in expansion of macro 'TTP' 5048 | TTP(str, "*"); | ^~~ callbacks.cc:5050:61: error: 'str' was not declared in this scope; did you mean 'std'? 5050 | pango_layout_set_markup(layout_mul, str.c_str(), -1); | ^~~ | std callbacks.cc:5053:32: error: expected primary-expression before 'int' 5053 | vector nm; | ^~~ callbacks.cc:5079:41: error: 'nm' was not declared in this scope; did you mean 'm'? 5079 | nm.push_back(-1); | ^~ | m callbacks.cc:5081:41: error: 'nm' was not declared in this scope; did you mean 'm'? 5081 | nm.push_back(m[i].neededMultiplicationSign(po, ips_n, m, i + 1, ips_n.wrap || (m[i].isPower() && m[i][0].needsParenthesis(po, ips_n, m[i], 1, ips.division_depth > 0 || ips.power_depth > 0, ips.power_depth > 0)), par_prev, ips.division_depth > 0 || ips.power_depth > 0, ips.power_depth > 0)); | ^~ | m callbacks.cc:5112:41: error: 'nm' was not declared in this scope; did you mean 'm'? 5112 | nm.push_back(-1); | ^~ | m callbacks.cc:5130:43: error: 'nm' was not declared in this scope; did you mean 'm'? 5130 | } else if(nm[1] == MULTIPLICATION_SIGN_NONE) { | ^~ | m callbacks.cc:5133:39: error: expected ';' before 'imagefile' 5133 | string imagefile = "/qalculate-gtk/flags/"; imagefile += m[i_unit].unit()->referenceName(); imagefile += ".png"; | ^~~~~~~~~~ | ; callbacks.cc:5133:77: error: 'imagefile' was not declared in this scope 5133 | string imagefile = "/qalculate-gtk/flags/"; imagefile += m[i_unit].unit()->referenceName(); imagefile += ".png"; | ^~~~~~~~~ callbacks.cc:5161:56: error: 'nm' was not declared in this scope; did you mean 'm'? 5161 | switch(nm[i]) { | ^~ | m callbacks.cc:5411:33: error: 'vector' was not declared in this scope 5411 | vector surface_terms; | ^~~~~~ callbacks.cc:5411:33: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stl_vector.h:423:11: note: 'std::vector' 423 | class vector : protected _Vector_base<_Tp, _Alloc> | ^~~~~~ /usr/include/c++/12.2.0/vector:84:13: note: 'std::pmr::vector' 84 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>; | ^~~~~~ callbacks.cc:5411:55: error: expected primary-expression before '*' token 5411 | vector surface_terms; | ^ callbacks.cc:5411:56: error: expected primary-expression before '>' token 5411 | vector surface_terms; | ^ callbacks.cc:5411:58: error: 'surface_terms' was not declared in this scope 5411 | vector surface_terms; | ^~~~~~~~~~~~~ callbacks.cc:5412:44: error: expected primary-expression before '>' token 5412 | vector hpt; | ^ callbacks.cc:5412:46: error: 'hpt' was not declared in this scope 5412 | vector hpt; | ^~~ callbacks.cc:5413:44: error: expected primary-expression before '>' token 5413 | vector wpt; | ^ callbacks.cc:5413:46: error: 'wpt' was not declared in this scope 5413 | vector wpt; | ^~~ callbacks.cc:5414:44: error: expected primary-expression before '>' token 5414 | vector cpt; | ^ callbacks.cc:5414:46: error: 'cpt' was not declared in this scope 5414 | vector cpt; | ^~~ callbacks.cc:5477:33: error: 'string' was not declared in this scope 5477 | string str; | ^~~~~~ callbacks.cc:5477:33: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:5478:38: error: 'str' was not declared in this scope; did you mean 'std'? 5478 | TTBP(str); | ^~~ callbacks.cc:307:61: note: in definition of macro 'TTB_SMALL' 307 | #define TTB_SMALL(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} | ^~~ callbacks.cc:5478:33: note: in expansion of macro 'TTBP' 5478 | TTBP(str); | ^~~~ callbacks.cc:5478:38: error: 'str' was not declared in this scope; did you mean 'std'? 5478 | TTBP(str); | ^~~ callbacks.cc:307:119: note: in definition of macro 'TTB_SMALL' 307 | #define TTB_SMALL(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} | ^~~ callbacks.cc:5478:33: note: in expansion of macro 'TTBP' 5478 | TTBP(str); | ^~~~ callbacks.cc:5478:38: error: 'str' was not declared in this scope; did you mean 'std'? 5478 | TTBP(str); | ^~~ callbacks.cc:307:178: note: in definition of macro 'TTB_SMALL' 307 | #define TTB_SMALL(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} | ^~~ callbacks.cc:5478:33: note: in expansion of macro 'TTBP' 5478 | TTBP(str); | ^~~~ callbacks.cc:5478:38: error: 'str' was not declared in this scope; did you mean 'std'? 5478 | TTBP(str); | ^~~ callbacks.cc:307:217: note: in definition of macro 'TTB_SMALL' 307 | #define TTB_SMALL(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} | ^~~ callbacks.cc:5478:33: note: in expansion of macro 'TTBP' 5478 | TTBP(str); | ^~~~ callbacks.cc:5478:38: error: 'str' was not declared in this scope; did you mean 'std'? 5478 | TTBP(str); | ^~~ callbacks.cc:306:61: note: in definition of macro 'TTB' 306 | #define TTB(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} | ^~~ callbacks.cc:5478:33: note: in expansion of macro 'TTBP' 5478 | TTBP(str); | ^~~~ callbacks.cc:5478:38: error: 'str' was not declared in this scope; did you mean 'std'? 5478 | TTBP(str); | ^~~ callbacks.cc:306:122: note: in definition of macro 'TTB' 306 | #define TTB(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} | ^~~ callbacks.cc:5478:33: note: in expansion of macro 'TTBP' 5478 | TTBP(str); | ^~~~ callbacks.cc:5478:38: error: 'str' was not declared in this scope; did you mean 'std'? 5478 | TTBP(str); | ^~~ callbacks.cc:306:182: note: in definition of macro 'TTB' 306 | #define TTB(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} | ^~~ callbacks.cc:5478:33: note: in expansion of macro 'TTBP' 5478 | TTBP(str); | ^~~~ callbacks.cc:5478:38: error: 'str' was not declared in this scope; did you mean 'std'? 5478 | TTBP(str); | ^~~ callbacks.cc:306:221: note: in definition of macro 'TTB' 306 | #define TTB(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} | ^~~ callbacks.cc:5478:33: note: in expansion of macro 'TTBP' 5478 | TTBP(str); | ^~~~ callbacks.cc:5481:49: error: 'str' was not declared in this scope; did you mean 'std'? 5481 | str += ">"; | ^~~ | std callbacks.cc:5485:49: error: 'str' was not declared in this scope; did you mean 'std'? 5485 | str += "<"; | ^~~ | std callbacks.cc:5490:57: error: 'str' was not declared in this scope; did you mean 'std'? 5490 | str += SIGN_GREATER_OR_EQUAL; | ^~~ | std callbacks.cc:5492:57: error: 'str' was not declared in this scope; did you mean 'std'? 5492 | str += ">="; | ^~~ | std callbacks.cc:5498:57: error: 'str' was not declared in this scope; did you mean 'std'? 5498 | str += SIGN_LESS_OR_EQUAL; | ^~~ | std callbacks.cc:5500:57: error: 'str' was not declared in this scope; did you mean 'std'? 5500 | str += "<="; | ^~~ | std callbacks.cc:5506:37: error: 'str' was not declared in this scope; did you mean 'std'? 5506 | TTE(str); | ^~~ callbacks.cc:311:41: note: in definition of macro 'TTE' 311 | #define TTE(str) str += ""; | ^~~ callbacks.cc:5601:25: error: 'vector' was not declared in this scope 5601 | vector surface_terms; | ^~~~~~ callbacks.cc:5601:25: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stl_vector.h:423:11: note: 'std::vector' 423 | class vector : protected _Vector_base<_Tp, _Alloc> | ^~~~~~ /usr/include/c++/12.2.0/vector:84:13: note: 'std::pmr::vector' 84 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>; | ^~~~~~ callbacks.cc:5601:47: error: expected primary-expression before '*' token 5601 | vector surface_terms; | ^ callbacks.cc:5601:48: error: expected primary-expression before '>' token 5601 | vector surface_terms; | ^ callbacks.cc:5601:50: error: 'surface_terms' was not declared in this scope 5601 | vector surface_terms; | ^~~~~~~~~~~~~ callbacks.cc:5602:36: error: expected primary-expression before '>' token 5602 | vector hpt; | ^ callbacks.cc:5602:38: error: 'hpt' was not declared in this scope 5602 | vector hpt; | ^~~ callbacks.cc:5603:36: error: expected primary-expression before '>' token 5603 | vector wpt; | ^ callbacks.cc:5603:38: error: 'wpt' was not declared in this scope 5603 | vector wpt; | ^~~ callbacks.cc:5604:36: error: expected primary-expression before '>' token 5604 | vector cpt; | ^ callbacks.cc:5604:38: error: 'cpt' was not declared in this scope 5604 | vector cpt; | ^~~ callbacks.cc:5633:25: error: 'string' was not declared in this scope 5633 | string str; | ^~~~~~ callbacks.cc:5633:25: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:5634:30: error: 'str' was not declared in this scope; did you mean 'std'? 5634 | TTBP(str); | ^~~ callbacks.cc:307:61: note: in definition of macro 'TTB_SMALL' 307 | #define TTB_SMALL(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} | ^~~ callbacks.cc:5634:25: note: in expansion of macro 'TTBP' 5634 | TTBP(str); | ^~~~ callbacks.cc:5634:30: error: 'str' was not declared in this scope; did you mean 'std'? 5634 | TTBP(str); | ^~~ callbacks.cc:307:119: note: in definition of macro 'TTB_SMALL' 307 | #define TTB_SMALL(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} | ^~~ callbacks.cc:5634:25: note: in expansion of macro 'TTBP' 5634 | TTBP(str); | ^~~~ callbacks.cc:5634:30: error: 'str' was not declared in this scope; did you mean 'std'? 5634 | TTBP(str); | ^~~ callbacks.cc:307:178: note: in definition of macro 'TTB_SMALL' 307 | #define TTB_SMALL(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} | ^~~ callbacks.cc:5634:25: note: in expansion of macro 'TTBP' 5634 | TTBP(str); | ^~~~ callbacks.cc:5634:30: error: 'str' was not declared in this scope; did you mean 'std'? 5634 | TTBP(str); | ^~~ callbacks.cc:307:217: note: in definition of macro 'TTB_SMALL' 307 | #define TTB_SMALL(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} | ^~~ callbacks.cc:5634:25: note: in expansion of macro 'TTBP' 5634 | TTBP(str); | ^~~~ callbacks.cc:5634:30: error: 'str' was not declared in this scope; did you mean 'std'? 5634 | TTBP(str); | ^~~ callbacks.cc:306:61: note: in definition of macro 'TTB' 306 | #define TTB(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} | ^~~ callbacks.cc:5634:25: note: in expansion of macro 'TTBP' 5634 | TTBP(str); | ^~~~ callbacks.cc:5634:30: error: 'str' was not declared in this scope; did you mean 'std'? 5634 | TTBP(str); | ^~~ callbacks.cc:306:122: note: in definition of macro 'TTB' 306 | #define TTB(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} | ^~~ callbacks.cc:5634:25: note: in expansion of macro 'TTBP' 5634 | TTBP(str); | ^~~~ callbacks.cc:5634:30: error: 'str' was not declared in this scope; did you mean 'std'? 5634 | TTBP(str); | ^~~ callbacks.cc:306:182: note: in definition of macro 'TTB' 306 | #define TTB(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} | ^~~ callbacks.cc:5634:25: note: in expansion of macro 'TTBP' 5634 | TTBP(str); | ^~~~ callbacks.cc:5634:30: error: 'str' was not declared in this scope; did you mean 'std'? 5634 | TTBP(str); | ^~~ callbacks.cc:306:221: note: in definition of macro 'TTB' 306 | #define TTB(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} | ^~~ callbacks.cc:5634:25: note: in expansion of macro 'TTBP' 5634 | TTBP(str); | ^~~~ callbacks.cc:5639:57: error: 'str' was not declared in this scope; did you mean 'std'? 5639 | str += SIGN_ALMOST_EQUAL; | ^~~ | std callbacks.cc:5641:57: error: 'str' was not declared in this scope; did you mean 'std'? 5641 | str += "="; | ^~~ | std callbacks.cc:5647:57: error: 'str' was not declared in this scope; did you mean 'std'? 5647 | str += SIGN_NOT_EQUAL; | ^~~ | std callbacks.cc:5649:57: error: 'str' was not declared in this scope; did you mean 'std'? 5649 | str += "!="; | ^~~ | std callbacks.cc:5654:49: error: 'str' was not declared in this scope; did you mean 'std'? 5654 | str += ">"; | ^~~ | std callbacks.cc:5658:49: error: 'str' was not declared in this scope; did you mean 'std'? 5658 | str += "<"; | ^~~ | std callbacks.cc:5663:57: error: 'str' was not declared in this scope; did you mean 'std'? 5663 | str += SIGN_GREATER_OR_EQUAL; | ^~~ | std callbacks.cc:5665:57: error: 'str' was not declared in this scope; did you mean 'std'? 5665 | str += ">="; | ^~~ | std callbacks.cc:5671:57: error: 'str' was not declared in this scope; did you mean 'std'? 5671 | str += SIGN_LESS_OR_EQUAL; | ^~~ | std callbacks.cc:5673:57: error: 'str' was not declared in this scope; did you mean 'std'? 5673 | str += "<="; | ^~~ | std callbacks.cc:5679:68: error: 'str' was not declared in this scope; did you mean 'std'? 5679 | if(po.spell_out_logical_operators) str += _("and"); | ^~~ | std callbacks.cc:5680:38: error: 'str' was not declared in this scope; did you mean 'std'? 5680 | else str += "&&"; | ^~~ | std callbacks.cc:5682:68: error: 'str' was not declared in this scope; did you mean 'std'? 5682 | if(po.spell_out_logical_operators) str += _("or"); | ^~~ | std callbacks.cc:5683:38: error: 'str' was not declared in this scope; did you mean 'std'? 5683 | else str += "||"; | ^~~ | std callbacks.cc:5685:33: error: 'str' was not declared in this scope; did you mean 'std'? 5685 | str += "XOR"; | ^~~ | std callbacks.cc:5687:33: error: 'str' was not declared in this scope; did you mean 'std'? 5687 | str += "&"; | ^~~ | std callbacks.cc:5689:33: error: 'str' was not declared in this scope; did you mean 'std'? 5689 | str += "|"; | ^~~ | std callbacks.cc:5691:33: error: 'str' was not declared in this scope; did you mean 'std'? 5691 | str += "XOR"; | ^~~ | std callbacks.cc:5694:29: error: 'str' was not declared in this scope; did you mean 'std'? 5694 | TTE(str); | ^~~ callbacks.cc:311:41: note: in definition of macro 'TTE' 311 | #define TTE(str) str += ""; | ^~~ callbacks.cc:5798:41: error: 'string' was not declared in this scope 5798 | string str; | ^~~~~~ callbacks.cc:5798:41: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:5799:46: error: 'str' was not declared in this scope; did you mean 'std'? 5799 | TTBP(str) | ^~~ callbacks.cc:307:61: note: in definition of macro 'TTB_SMALL' 307 | #define TTB_SMALL(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} | ^~~ callbacks.cc:5799:41: note: in expansion of macro 'TTBP' 5799 | TTBP(str) | ^~~~ callbacks.cc:5799:46: error: 'str' was not declared in this scope; did you mean 'std'? 5799 | TTBP(str) | ^~~ callbacks.cc:307:119: note: in definition of macro 'TTB_SMALL' 307 | #define TTB_SMALL(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} | ^~~ callbacks.cc:5799:41: note: in expansion of macro 'TTBP' 5799 | TTBP(str) | ^~~~ callbacks.cc:5799:46: error: 'str' was not declared in this scope; did you mean 'std'? 5799 | TTBP(str) | ^~~ callbacks.cc:307:178: note: in definition of macro 'TTB_SMALL' 307 | #define TTB_SMALL(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} | ^~~ callbacks.cc:5799:41: note: in expansion of macro 'TTBP' 5799 | TTBP(str) | ^~~~ callbacks.cc:5799:46: error: 'str' was not declared in this scope; did you mean 'std'? 5799 | TTBP(str) | ^~~ callbacks.cc:307:217: note: in definition of macro 'TTB_SMALL' 307 | #define TTB_SMALL(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} | ^~~ callbacks.cc:5799:41: note: in expansion of macro 'TTBP' 5799 | TTBP(str) | ^~~~ callbacks.cc:5799:46: error: 'str' was not declared in this scope; did you mean 'std'? 5799 | TTBP(str) | ^~~ callbacks.cc:306:61: note: in definition of macro 'TTB' 306 | #define TTB(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} | ^~~ callbacks.cc:5799:41: note: in expansion of macro 'TTBP' 5799 | TTBP(str) | ^~~~ callbacks.cc:5799:46: error: 'str' was not declared in this scope; did you mean 'std'? 5799 | TTBP(str) | ^~~ callbacks.cc:306:122: note: in definition of macro 'TTB' 306 | #define TTB(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} | ^~~ callbacks.cc:5799:41: note: in expansion of macro 'TTBP' 5799 | TTBP(str) | ^~~~ callbacks.cc:5799:46: error: 'str' was not declared in this scope; did you mean 'std'? 5799 | TTBP(str) | ^~~ callbacks.cc:306:182: note: in definition of macro 'TTB' 306 | #define TTB(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} | ^~~ callbacks.cc:5799:41: note: in expansion of macro 'TTBP' 5799 | TTBP(str) | ^~~~ callbacks.cc:5799:46: error: 'str' was not declared in this scope; did you mean 'std'? 5799 | TTBP(str) | ^~~ callbacks.cc:306:221: note: in definition of macro 'TTB' 306 | #define TTB(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} | ^~~ callbacks.cc:5799:41: note: in expansion of macro 'TTBP' 5799 | TTBP(str) | ^~~~ callbacks.cc:5800:41: error: 'str' was not declared in this scope; did you mean 'std'? 5800 | str += "[ ]"; | ^~~ | std callbacks.cc:5820:33: error: 'vector' was not declared in this scope 5820 | vector col_w; | ^~~~~~ callbacks.cc:5820:33: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stl_vector.h:423:11: note: 'std::vector' 423 | class vector : protected _Vector_base<_Tp, _Alloc> | ^~~~~~ /usr/include/c++/12.2.0/vector:84:13: note: 'std::pmr::vector' 84 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>; | ^~~~~~ callbacks.cc:5820:44: error: expected primary-expression before '>' token 5820 | vector col_w; | ^ callbacks.cc:5820:46: error: 'col_w' was not declared in this scope 5820 | vector col_w; | ^~~~~ callbacks.cc:5821:44: error: expected primary-expression before '>' token 5821 | vector row_h; | ^ callbacks.cc:5821:46: error: 'row_h' was not declared in this scope 5821 | vector row_h; | ^~~~~ callbacks.cc:5822:44: error: expected primary-expression before '>' token 5822 | vector row_uh; | ^ callbacks.cc:5822:46: error: 'row_uh' was not declared in this scope 5822 | vector row_uh; | ^~~~~~ callbacks.cc:5823:44: error: expected primary-expression before '>' token 5823 | vector row_dh; | ^ callbacks.cc:5823:46: error: 'row_dh' was not declared in this scope 5823 | vector row_dh; | ^~~~~~ callbacks.cc:5824:51: error: expected primary-expression before '>' token 5824 | vector > element_w; | ^ callbacks.cc:5824:53: error: expected primary-expression before '>' token 5824 | vector > element_w; | ^ callbacks.cc:5824:55: error: 'element_w' was not declared in this scope; did you mean 'Element'? 5824 | vector > element_w; | ^~~~~~~~~ | Element callbacks.cc:5825:51: error: expected primary-expression before '>' token 5825 | vector > element_h; | ^ callbacks.cc:5825:53: error: expected primary-expression before '>' token 5825 | vector > element_h; | ^ callbacks.cc:5825:55: error: 'element_h' was not declared in this scope; did you mean 'Element'? 5825 | vector > element_h; | ^~~~~~~~~ | Element callbacks.cc:5826:51: error: expected primary-expression before '>' token 5826 | vector > element_c; | ^ callbacks.cc:5826:53: error: expected primary-expression before '>' token 5826 | vector > element_c; | ^ callbacks.cc:5826:55: error: 'element_c' was not declared in this scope; did you mean 'Element'? 5826 | vector > element_c; | ^~~~~~~~~ | Element callbacks.cc:5827:62: error: expected primary-expression before '*' token 5827 | vector > surface_elements; | ^ callbacks.cc:5827:63: error: expected primary-expression before '>' token 5827 | vector > surface_elements; | ^ callbacks.cc:5827:65: error: expected primary-expression before '>' token 5827 | vector > surface_elements; | ^ callbacks.cc:5827:67: error: 'surface_elements' was not declared in this scope; did you mean 'surface_result'? 5827 | vector > surface_elements; | ^~~~~~~~~~~~~~~~ | surface_result callbacks.cc:5833:33: error: 'string' was not declared in this scope 5833 | string str; | ^~~~~~ callbacks.cc:5833:33: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:5835:37: error: 'str' was not declared in this scope; did you mean 'std'? 5835 | TTP(str, po.comma()) | ^~~ callbacks.cc:313:62: note: in definition of macro 'TT_SMALL' 313 | #define TT_SMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:5835:33: note: in expansion of macro 'TTP' 5835 | TTP(str, po.comma()) | ^~~ callbacks.cc:5835:37: error: 'str' was not declared in this scope; did you mean 'std'? 5835 | TTP(str, po.comma()) | ^~~ callbacks.cc:313:120: note: in definition of macro 'TT_SMALL' 313 | #define TT_SMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:5835:33: note: in expansion of macro 'TTP' 5835 | TTP(str, po.comma()) | ^~~ callbacks.cc:5835:37: error: 'str' was not declared in this scope; did you mean 'std'? 5835 | TTP(str, po.comma()) | ^~~ callbacks.cc:313:179: note: in definition of macro 'TT_SMALL' 313 | #define TT_SMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:5835:33: note: in expansion of macro 'TTP' 5835 | TTP(str, po.comma()) | ^~~ callbacks.cc:5835:37: error: 'str' was not declared in this scope; did you mean 'std'? 5835 | TTP(str, po.comma()) | ^~~ callbacks.cc:313:218: note: in definition of macro 'TT_SMALL' 313 | #define TT_SMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:5835:33: note: in expansion of macro 'TTP' 5835 | TTP(str, po.comma()) | ^~~ callbacks.cc:5835:37: error: 'str' was not declared in this scope; did you mean 'std'? 5835 | TTP(str, po.comma()) | ^~~ callbacks.cc:313:253: note: in definition of macro 'TT_SMALL' 313 | #define TT_SMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:5835:33: note: in expansion of macro 'TTP' 5835 | TTP(str, po.comma()) | ^~~ callbacks.cc:5835:37: error: 'str' was not declared in this scope; did you mean 'std'? 5835 | TTP(str, po.comma()) | ^~~ callbacks.cc:312:62: note: in definition of macro 'TT' 312 | #define TT(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:5835:33: note: in expansion of macro 'TTP' 5835 | TTP(str, po.comma()) | ^~~ callbacks.cc:5835:37: error: 'str' was not declared in this scope; did you mean 'std'? 5835 | TTP(str, po.comma()) | ^~~ callbacks.cc:312:123: note: in definition of macro 'TT' 312 | #define TT(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:5835:33: note: in expansion of macro 'TTP' 5835 | TTP(str, po.comma()) | ^~~ callbacks.cc:5835:37: error: 'str' was not declared in this scope; did you mean 'std'? 5835 | TTP(str, po.comma()) | ^~~ callbacks.cc:312:183: note: in definition of macro 'TT' 312 | #define TT(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:5835:33: note: in expansion of macro 'TTP' 5835 | TTP(str, po.comma()) | ^~~ callbacks.cc:5835:37: error: 'str' was not declared in this scope; did you mean 'std'? 5835 | TTP(str, po.comma()) | ^~~ callbacks.cc:312:222: note: in definition of macro 'TT' 312 | #define TT(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:5835:33: note: in expansion of macro 'TTP' 5835 | TTP(str, po.comma()) | ^~~ callbacks.cc:5835:37: error: 'str' was not declared in this scope; did you mean 'std'? 5835 | TTP(str, po.comma()) | ^~~ callbacks.cc:312:256: note: in definition of macro 'TT' 312 | #define TT(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:5835:33: note: in expansion of macro 'TTP' 5835 | TTP(str, po.comma()) | ^~~ callbacks.cc:5836:71: error: 'str' was not declared in this scope; did you mean 'std'? 5836 | pango_layout_set_markup(layout_comma, str.c_str(), -1); | ^~~ | std callbacks.cc:5946:25: error: 'vector' was not declared in this scope 5946 | vector surface_args; | ^~~~~~ callbacks.cc:5946:25: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stl_vector.h:423:11: note: 'std::vector' 423 | class vector : protected _Vector_base<_Tp, _Alloc> | ^~~~~~ /usr/include/c++/12.2.0/vector:84:13: note: 'std::pmr::vector' 84 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>; | ^~~~~~ callbacks.cc:5946:47: error: expected primary-expression before '*' token 5946 | vector surface_args; | ^ callbacks.cc:5946:48: error: expected primary-expression before '>' token 5946 | vector surface_args; | ^ callbacks.cc:5946:50: error: 'surface_args' was not declared in this scope 5946 | vector surface_args; | ^~~~~~~~~~~~ callbacks.cc:5947:36: error: expected primary-expression before '>' token 5947 | vector hpa; | ^ callbacks.cc:5947:38: error: 'hpa' was not declared in this scope 5947 | vector hpa; | ^~~ callbacks.cc:5948:36: error: expected primary-expression before '>' token 5948 | vector cpa; | ^ callbacks.cc:5948:38: error: 'cpa' was not declared in this scope 5948 | vector cpa; | ^~~ callbacks.cc:5949:36: error: expected primary-expression before '>' token 5949 | vector wpa; | ^ callbacks.cc:5949:38: error: 'wpa' was not declared in this scope 5949 | vector wpa; | ^~~ callbacks.cc:5953:25: error: 'string' was not declared in this scope 5953 | string str, func_str; | ^~~~~~ callbacks.cc:5953:25: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:5954:29: error: 'str' was not declared in this scope; did you mean 'std'? 5954 | TTP(str, CALCULATOR->getComma()) | ^~~ callbacks.cc:313:62: note: in definition of macro 'TT_SMALL' 313 | #define TT_SMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:5954:25: note: in expansion of macro 'TTP' 5954 | TTP(str, CALCULATOR->getComma()) | ^~~ callbacks.cc:5954:29: error: 'str' was not declared in this scope; did you mean 'std'? 5954 | TTP(str, CALCULATOR->getComma()) | ^~~ callbacks.cc:313:120: note: in definition of macro 'TT_SMALL' 313 | #define TT_SMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:5954:25: note: in expansion of macro 'TTP' 5954 | TTP(str, CALCULATOR->getComma()) | ^~~ callbacks.cc:5954:29: error: 'str' was not declared in this scope; did you mean 'std'? 5954 | TTP(str, CALCULATOR->getComma()) | ^~~ callbacks.cc:313:179: note: in definition of macro 'TT_SMALL' 313 | #define TT_SMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:5954:25: note: in expansion of macro 'TTP' 5954 | TTP(str, CALCULATOR->getComma()) | ^~~ callbacks.cc:5954:29: error: 'str' was not declared in this scope; did you mean 'std'? 5954 | TTP(str, CALCULATOR->getComma()) | ^~~ callbacks.cc:313:218: note: in definition of macro 'TT_SMALL' 313 | #define TT_SMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:5954:25: note: in expansion of macro 'TTP' 5954 | TTP(str, CALCULATOR->getComma()) | ^~~ callbacks.cc:5954:29: error: 'str' was not declared in this scope; did you mean 'std'? 5954 | TTP(str, CALCULATOR->getComma()) | ^~~ callbacks.cc:313:253: note: in definition of macro 'TT_SMALL' 313 | #define TT_SMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:5954:25: note: in expansion of macro 'TTP' 5954 | TTP(str, CALCULATOR->getComma()) | ^~~ callbacks.cc:5954:29: error: 'str' was not declared in this scope; did you mean 'std'? 5954 | TTP(str, CALCULATOR->getComma()) | ^~~ callbacks.cc:312:62: note: in definition of macro 'TT' 312 | #define TT(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:5954:25: note: in expansion of macro 'TTP' 5954 | TTP(str, CALCULATOR->getComma()) | ^~~ callbacks.cc:5954:29: error: 'str' was not declared in this scope; did you mean 'std'? 5954 | TTP(str, CALCULATOR->getComma()) | ^~~ callbacks.cc:312:123: note: in definition of macro 'TT' 312 | #define TT(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:5954:25: note: in expansion of macro 'TTP' 5954 | TTP(str, CALCULATOR->getComma()) | ^~~ callbacks.cc:5954:29: error: 'str' was not declared in this scope; did you mean 'std'? 5954 | TTP(str, CALCULATOR->getComma()) | ^~~ callbacks.cc:312:183: note: in definition of macro 'TT' 312 | #define TT(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:5954:25: note: in expansion of macro 'TTP' 5954 | TTP(str, CALCULATOR->getComma()) | ^~~ callbacks.cc:5954:29: error: 'str' was not declared in this scope; did you mean 'std'? 5954 | TTP(str, CALCULATOR->getComma()) | ^~~ callbacks.cc:312:222: note: in definition of macro 'TT' 312 | #define TT(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:5954:25: note: in expansion of macro 'TTP' 5954 | TTP(str, CALCULATOR->getComma()) | ^~~ callbacks.cc:5954:29: error: 'str' was not declared in this scope; did you mean 'std'? 5954 | TTP(str, CALCULATOR->getComma()) | ^~~ callbacks.cc:312:256: note: in definition of macro 'TT' 312 | #define TT(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:5954:25: note: in expansion of macro 'TTP' 5954 | TTP(str, CALCULATOR->getComma()) | ^~~ callbacks.cc:5955:63: error: 'str' was not declared in this scope; did you mean 'std'? 5955 | pango_layout_set_markup(layout_comma, str.c_str(), -1); | ^~~ | std callbacks.cc:6037:25: error: 'string' was not declared in this scope 6037 | string str, str2; | ^~~~~~ callbacks.cc:6037:25: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:6038:30: error: 'str' was not declared in this scope; did you mean 'std'? 6038 | TTBP(str); | ^~~ callbacks.cc:307:61: note: in definition of macro 'TTB_SMALL' 307 | #define TTB_SMALL(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} | ^~~ callbacks.cc:6038:25: note: in expansion of macro 'TTBP' 6038 | TTBP(str); | ^~~~ callbacks.cc:6038:30: error: 'str' was not declared in this scope; did you mean 'std'? 6038 | TTBP(str); | ^~~ callbacks.cc:307:119: note: in definition of macro 'TTB_SMALL' 307 | #define TTB_SMALL(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} | ^~~ callbacks.cc:6038:25: note: in expansion of macro 'TTBP' 6038 | TTBP(str); | ^~~~ callbacks.cc:6038:30: error: 'str' was not declared in this scope; did you mean 'std'? 6038 | TTBP(str); | ^~~ callbacks.cc:307:178: note: in definition of macro 'TTB_SMALL' 307 | #define TTB_SMALL(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} | ^~~ callbacks.cc:6038:25: note: in expansion of macro 'TTBP' 6038 | TTBP(str); | ^~~~ callbacks.cc:6038:30: error: 'str' was not declared in this scope; did you mean 'std'? 6038 | TTBP(str); | ^~~ callbacks.cc:307:217: note: in definition of macro 'TTB_SMALL' 307 | #define TTB_SMALL(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} | ^~~ callbacks.cc:6038:25: note: in expansion of macro 'TTBP' 6038 | TTBP(str); | ^~~~ callbacks.cc:6038:30: error: 'str' was not declared in this scope; did you mean 'std'? 6038 | TTBP(str); | ^~~ callbacks.cc:306:61: note: in definition of macro 'TTB' 306 | #define TTB(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} | ^~~ callbacks.cc:6038:25: note: in expansion of macro 'TTBP' 6038 | TTBP(str); | ^~~~ callbacks.cc:6038:30: error: 'str' was not declared in this scope; did you mean 'std'? 6038 | TTBP(str); | ^~~ callbacks.cc:306:122: note: in definition of macro 'TTB' 306 | #define TTB(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} | ^~~ callbacks.cc:6038:25: note: in expansion of macro 'TTBP' 6038 | TTBP(str); | ^~~~ callbacks.cc:6038:30: error: 'str' was not declared in this scope; did you mean 'std'? 6038 | TTBP(str); | ^~~ callbacks.cc:306:182: note: in definition of macro 'TTB' 306 | #define TTB(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} | ^~~ callbacks.cc:6038:25: note: in expansion of macro 'TTBP' 6038 | TTBP(str); | ^~~~ callbacks.cc:6038:30: error: 'str' was not declared in this scope; did you mean 'std'? 6038 | TTBP(str); | ^~~ callbacks.cc:306:221: note: in definition of macro 'TTB' 306 | #define TTB(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} | ^~~ callbacks.cc:6038:25: note: in expansion of macro 'TTBP' 6038 | TTBP(str); | ^~~~ callbacks.cc:6043:33: error: 'str' was not declared in this scope; did you mean 'std'? 6043 | str += m.prefix()->name(po.abbreviate_names && ename->abbreviation && (ename->suffix || ename->name.find("_") == string::npos), po.use_unicode_signs, po.can_display_unicode_string_function, po.can_display_unicode_string_arg); | ^~~ | std callbacks.cc:6043:146: error: 'string' is not a class, namespace, or enumeration 6043 | str += m.prefix()->name(po.abbreviate_names && ename->abbreviation && (ename->suffix || ename->name.find("_") == string::npos), po.use_unicode_signs, po.can_display_unicode_string_function, po.can_display_unicode_string_arg); | ^~~~~~ callbacks.cc:6047:47: error: 'string' is not a class, namespace, or enumeration 6047 | bool b = i == string::npos || i == ename->name.length() - 1 || i == 0; | ^~~~~~ callbacks.cc:6055:41: error: 'str' was not declared in this scope; did you mean 'std'? 6055 | str += ename->name.substr(0, ename->name.length() - i2); | ^~~ | std callbacks.cc:6057:41: error: 'str' was not declared in this scope; did you mean 'std'? 6057 | str += ename->name.substr(0, i); | ^~~ | std callbacks.cc:6060:52: error: 'str' was not declared in this scope; did you mean 'std'? 6060 | TTBP_SMALL(str); | ^~~ callbacks.cc:308:61: note: in definition of macro 'TTB_XSMALL' 308 | #define TTB_XSMALL(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else {str += "";} | ^~~ callbacks.cc:6060:41: note: in expansion of macro 'TTBP_SMALL' 6060 | TTBP_SMALL(str); | ^~~~~~~~~~ callbacks.cc:6060:52: error: 'str' was not declared in this scope; did you mean 'std'? 6060 | TTBP_SMALL(str); | ^~~ callbacks.cc:308:120: note: in definition of macro 'TTB_XSMALL' 308 | #define TTB_XSMALL(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else {str += "";} | ^~~ callbacks.cc:6060:41: note: in expansion of macro 'TTBP_SMALL' 6060 | TTBP_SMALL(str); | ^~~~~~~~~~ callbacks.cc:6060:52: error: 'str' was not declared in this scope; did you mean 'std'? 6060 | TTBP_SMALL(str); | ^~~ callbacks.cc:308:159: note: in definition of macro 'TTB_XSMALL' 308 | #define TTB_XSMALL(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else {str += "";} | ^~~ callbacks.cc:6060:41: note: in expansion of macro 'TTBP_SMALL' 6060 | TTBP_SMALL(str); | ^~~~~~~~~~ callbacks.cc:6060:52: error: 'str' was not declared in this scope; did you mean 'std'? 6060 | TTBP_SMALL(str); | ^~~ callbacks.cc:307:61: note: in definition of macro 'TTB_SMALL' 307 | #define TTB_SMALL(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} | ^~~ callbacks.cc:6060:41: note: in expansion of macro 'TTBP_SMALL' 6060 | TTBP_SMALL(str); | ^~~~~~~~~~ callbacks.cc:6060:52: error: 'str' was not declared in this scope; did you mean 'std'? 6060 | TTBP_SMALL(str); | ^~~ callbacks.cc:307:119: note: in definition of macro 'TTB_SMALL' 307 | #define TTB_SMALL(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} | ^~~ callbacks.cc:6060:41: note: in expansion of macro 'TTBP_SMALL' 6060 | TTBP_SMALL(str); | ^~~~~~~~~~ callbacks.cc:6060:52: error: 'str' was not declared in this scope; did you mean 'std'? 6060 | TTBP_SMALL(str); | ^~~ callbacks.cc:307:178: note: in definition of macro 'TTB_SMALL' 307 | #define TTB_SMALL(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} | ^~~ callbacks.cc:6060:41: note: in expansion of macro 'TTBP_SMALL' 6060 | TTBP_SMALL(str); | ^~~~~~~~~~ callbacks.cc:6060:52: error: 'str' was not declared in this scope; did you mean 'std'? 6060 | TTBP_SMALL(str); | ^~~ callbacks.cc:307:217: note: in definition of macro 'TTB_SMALL' 307 | #define TTB_SMALL(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} | ^~~ callbacks.cc:6060:41: note: in expansion of macro 'TTBP_SMALL' 6060 | TTBP_SMALL(str); | ^~~~~~~~~~ callbacks.cc:6061:41: error: 'str' was not declared in this scope; did you mean 'std'? 6061 | str += ""; | ^~~ | std callbacks.cc:6069:33: error: 'str' was not declared in this scope; did you mean 'std'? 6069 | str += ename->name; | ^~~ | std callbacks.cc:6071:40: error: 'str' was not declared in this scope; did you mean 'std'? 6071 | gsub("_", " ", str); | ^~~ | std callbacks.cc:6090:25: error: 'string' was not declared in this scope 6090 | string str; | ^~~~~~ callbacks.cc:6090:25: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:6093:33: error: 'str' was not declared in this scope; did you mean 'std'? 6093 | str = ""; | ^~~ | std callbacks.cc:6095:30: error: 'str' was not declared in this scope; did you mean 'std'? 6095 | TTBP(str); | ^~~ callbacks.cc:307:61: note: in definition of macro 'TTB_SMALL' 307 | #define TTB_SMALL(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} | ^~~ callbacks.cc:6095:25: note: in expansion of macro 'TTBP' 6095 | TTBP(str); | ^~~~ callbacks.cc:6095:30: error: 'str' was not declared in this scope; did you mean 'std'? 6095 | TTBP(str); | ^~~ callbacks.cc:307:119: note: in definition of macro 'TTB_SMALL' 307 | #define TTB_SMALL(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} | ^~~ callbacks.cc:6095:25: note: in expansion of macro 'TTBP' 6095 | TTBP(str); | ^~~~ callbacks.cc:6095:30: error: 'str' was not declared in this scope; did you mean 'std'? 6095 | TTBP(str); | ^~~ callbacks.cc:307:178: note: in definition of macro 'TTB_SMALL' 307 | #define TTB_SMALL(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} | ^~~ callbacks.cc:6095:25: note: in expansion of macro 'TTBP' 6095 | TTBP(str); | ^~~~ callbacks.cc:6095:30: error: 'str' was not declared in this scope; did you mean 'std'? 6095 | TTBP(str); | ^~~ callbacks.cc:307:217: note: in definition of macro 'TTB_SMALL' 307 | #define TTB_SMALL(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} | ^~~ callbacks.cc:6095:25: note: in expansion of macro 'TTBP' 6095 | TTBP(str); | ^~~~ callbacks.cc:6095:30: error: 'str' was not declared in this scope; did you mean 'std'? 6095 | TTBP(str); | ^~~ callbacks.cc:306:61: note: in definition of macro 'TTB' 306 | #define TTB(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} | ^~~ callbacks.cc:6095:25: note: in expansion of macro 'TTBP' 6095 | TTBP(str); | ^~~~ callbacks.cc:6095:30: error: 'str' was not declared in this scope; did you mean 'std'? 6095 | TTBP(str); | ^~~ callbacks.cc:306:122: note: in definition of macro 'TTB' 306 | #define TTB(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} | ^~~ callbacks.cc:6095:25: note: in expansion of macro 'TTBP' 6095 | TTBP(str); | ^~~~ callbacks.cc:6095:30: error: 'str' was not declared in this scope; did you mean 'std'? 6095 | TTBP(str); | ^~~ callbacks.cc:306:182: note: in definition of macro 'TTB' 306 | #define TTB(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} | ^~~ callbacks.cc:6095:25: note: in expansion of macro 'TTBP' 6095 | TTBP(str); | ^~~~ callbacks.cc:6095:30: error: 'str' was not declared in this scope; did you mean 'std'? 6095 | TTBP(str); | ^~~ callbacks.cc:306:221: note: in definition of macro 'TTB' 306 | #define TTB(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} | ^~~ callbacks.cc:6095:25: note: in expansion of macro 'TTBP' 6095 | TTBP(str); | ^~~~ callbacks.cc:6100:47: error: 'string' is not a class, namespace, or enumeration 6100 | bool b = i == string::npos || i == ename->name.length() - 1 || i == 0; | ^~~~~~ callbacks.cc:6108:41: error: 'str' was not declared in this scope; did you mean 'std'? 6108 | str += ename->name.substr(0, ename->name.length() - i2); | ^~~ | std callbacks.cc:6110:41: error: 'str' was not declared in this scope; did you mean 'std'? 6110 | str += ename->name.substr(0, i); | ^~~ | std callbacks.cc:6113:52: error: 'str' was not declared in this scope; did you mean 'std'? 6113 | TTBP_SMALL(str); | ^~~ callbacks.cc:308:61: note: in definition of macro 'TTB_XSMALL' 308 | #define TTB_XSMALL(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else {str += "";} | ^~~ callbacks.cc:6113:41: note: in expansion of macro 'TTBP_SMALL' 6113 | TTBP_SMALL(str); | ^~~~~~~~~~ callbacks.cc:6113:52: error: 'str' was not declared in this scope; did you mean 'std'? 6113 | TTBP_SMALL(str); | ^~~ callbacks.cc:308:120: note: in definition of macro 'TTB_XSMALL' 308 | #define TTB_XSMALL(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else {str += "";} | ^~~ callbacks.cc:6113:41: note: in expansion of macro 'TTBP_SMALL' 6113 | TTBP_SMALL(str); | ^~~~~~~~~~ callbacks.cc:6113:52: error: 'str' was not declared in this scope; did you mean 'std'? 6113 | TTBP_SMALL(str); | ^~~ callbacks.cc:308:159: note: in definition of macro 'TTB_XSMALL' 308 | #define TTB_XSMALL(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else {str += "";} | ^~~ callbacks.cc:6113:41: note: in expansion of macro 'TTBP_SMALL' 6113 | TTBP_SMALL(str); | ^~~~~~~~~~ callbacks.cc:6113:52: error: 'str' was not declared in this scope; did you mean 'std'? 6113 | TTBP_SMALL(str); | ^~~ callbacks.cc:307:61: note: in definition of macro 'TTB_SMALL' 307 | #define TTB_SMALL(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} | ^~~ callbacks.cc:6113:41: note: in expansion of macro 'TTBP_SMALL' 6113 | TTBP_SMALL(str); | ^~~~~~~~~~ callbacks.cc:6113:52: error: 'str' was not declared in this scope; did you mean 'std'? 6113 | TTBP_SMALL(str); | ^~~ callbacks.cc:307:119: note: in definition of macro 'TTB_SMALL' 307 | #define TTB_SMALL(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} | ^~~ callbacks.cc:6113:41: note: in expansion of macro 'TTBP_SMALL' 6113 | TTBP_SMALL(str); | ^~~~~~~~~~ callbacks.cc:6113:52: error: 'str' was not declared in this scope; did you mean 'std'? 6113 | TTBP_SMALL(str); | ^~~ callbacks.cc:307:178: note: in definition of macro 'TTB_SMALL' 307 | #define TTB_SMALL(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} | ^~~ callbacks.cc:6113:41: note: in expansion of macro 'TTBP_SMALL' 6113 | TTBP_SMALL(str); | ^~~~~~~~~~ callbacks.cc:6113:52: error: 'str' was not declared in this scope; did you mean 'std'? 6113 | TTBP_SMALL(str); | ^~~ callbacks.cc:307:217: note: in definition of macro 'TTB_SMALL' 307 | #define TTB_SMALL(str) if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} | ^~~ callbacks.cc:6113:41: note: in expansion of macro 'TTBP_SMALL' 6113 | TTBP_SMALL(str); | ^~~~~~~~~~ callbacks.cc:6114:41: error: 'str' was not declared in this scope; did you mean 'std'? 6114 | str += ""; | ^~~ | std callbacks.cc:6122:33: error: 'str' was not declared in this scope; did you mean 'std'? 6122 | str += ename->name; | ^~~ | std callbacks.cc:6124:40: error: 'str' was not declared in this scope; did you mean 'std'? 6124 | gsub("_", " ", str); | ^~~ | std callbacks.cc:6212:33: error: 'string' was not declared in this scope 6212 | string root_str; | ^~~~~~ callbacks.cc:6212:33: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:6213:43: error: 'root_str' was not declared in this scope; did you mean 'root_h'? 6213 | TT_XSMALL(root_str, i2s(i_root)); | ^~~~~~~~ callbacks.cc:314:62: note: in definition of macro 'TT_XSMALL' 314 | #define TT_XSMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:6213:43: error: 'root_str' was not declared in this scope; did you mean 'root_h'? 6213 | TT_XSMALL(root_str, i2s(i_root)); | ^~~~~~~~ callbacks.cc:314:121: note: in definition of macro 'TT_XSMALL' 314 | #define TT_XSMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:6213:43: error: 'root_str' was not declared in this scope; did you mean 'root_h'? 6213 | TT_XSMALL(root_str, i2s(i_root)); | ^~~~~~~~ callbacks.cc:314:160: note: in definition of macro 'TT_XSMALL' 314 | #define TT_XSMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:6213:43: error: 'root_str' was not declared in this scope; did you mean 'root_h'? 6213 | TT_XSMALL(root_str, i2s(i_root)); | ^~~~~~~~ callbacks.cc:314:195: note: in definition of macro 'TT_XSMALL' 314 | #define TT_XSMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:6215:70: error: 'root_str' was not declared in this scope; did you mean 'root_h'? 6215 | pango_layout_set_markup(layout_root, root_str.c_str(), -1); | ^~~~~~~~ | root_h callbacks.cc:6325:33: error: 'string' was not declared in this scope 6325 | string s = "d"; | ^~~~~~ callbacks.cc:6325:33: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:6326:55: error: 's' was not declared in this scope 6326 | if(m[1].isSymbolic()) s += m[1].symbol(); | ^ callbacks.cc:6327:38: error: 's' was not declared in this scope 6327 | else s += m[1].variable()->preferredDisplayName(po.abbreviate_names, po.use_unicode_signs, false, po.use_reference_names, po.can_display_unicode_string_function, po.can_display_unicode_string_arg).name; | ^ callbacks.cc:6328:64: error: 's' was not declared in this scope 6328 | mdx.transform(STRUCT_DIVISION, s); | ^ callbacks.cc:6373:25: error: 'vector' was not declared in this scope 6373 | vector surface_args; | ^~~~~~ callbacks.cc:6373:25: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stl_vector.h:423:11: note: 'std::vector' 423 | class vector : protected _Vector_base<_Tp, _Alloc> | ^~~~~~ /usr/include/c++/12.2.0/vector:84:13: note: 'std::pmr::vector' 84 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>; | ^~~~~~ callbacks.cc:6373:47: error: expected primary-expression before '*' token 6373 | vector surface_args; | ^ callbacks.cc:6373:48: error: expected primary-expression before '>' token 6373 | vector surface_args; | ^ callbacks.cc:6373:50: error: 'surface_args' was not declared in this scope 6373 | vector surface_args; | ^~~~~~~~~~~~ callbacks.cc:6374:36: error: expected primary-expression before '>' token 6374 | vector hpa; | ^ callbacks.cc:6374:38: error: 'hpa' was not declared in this scope 6374 | vector hpa; | ^~~ callbacks.cc:6375:36: error: expected primary-expression before '>' token 6375 | vector cpa; | ^ callbacks.cc:6375:38: error: 'cpa' was not declared in this scope 6375 | vector cpa; | ^~~ callbacks.cc:6376:36: error: expected primary-expression before '>' token 6376 | vector wpa; | ^ callbacks.cc:6376:38: error: 'wpa' was not declared in this scope 6376 | vector wpa; | ^~~ callbacks.cc:6380:25: error: 'string' was not declared in this scope 6380 | string str; | ^~~~~~ callbacks.cc:6380:25: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:6381:29: error: 'str' was not declared in this scope; did you mean 'std'? 6381 | TTP(str, po.comma()) | ^~~ callbacks.cc:313:62: note: in definition of macro 'TT_SMALL' 313 | #define TT_SMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:6381:25: note: in expansion of macro 'TTP' 6381 | TTP(str, po.comma()) | ^~~ callbacks.cc:6381:29: error: 'str' was not declared in this scope; did you mean 'std'? 6381 | TTP(str, po.comma()) | ^~~ callbacks.cc:313:120: note: in definition of macro 'TT_SMALL' 313 | #define TT_SMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:6381:25: note: in expansion of macro 'TTP' 6381 | TTP(str, po.comma()) | ^~~ callbacks.cc:6381:29: error: 'str' was not declared in this scope; did you mean 'std'? 6381 | TTP(str, po.comma()) | ^~~ callbacks.cc:313:179: note: in definition of macro 'TT_SMALL' 313 | #define TT_SMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:6381:25: note: in expansion of macro 'TTP' 6381 | TTP(str, po.comma()) | ^~~ callbacks.cc:6381:29: error: 'str' was not declared in this scope; did you mean 'std'? 6381 | TTP(str, po.comma()) | ^~~ callbacks.cc:313:218: note: in definition of macro 'TT_SMALL' 313 | #define TT_SMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:6381:25: note: in expansion of macro 'TTP' 6381 | TTP(str, po.comma()) | ^~~ callbacks.cc:6381:29: error: 'str' was not declared in this scope; did you mean 'std'? 6381 | TTP(str, po.comma()) | ^~~ callbacks.cc:313:253: note: in definition of macro 'TT_SMALL' 313 | #define TT_SMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:6381:25: note: in expansion of macro 'TTP' 6381 | TTP(str, po.comma()) | ^~~ callbacks.cc:6381:29: error: 'str' was not declared in this scope; did you mean 'std'? 6381 | TTP(str, po.comma()) | ^~~ callbacks.cc:312:62: note: in definition of macro 'TT' 312 | #define TT(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:6381:25: note: in expansion of macro 'TTP' 6381 | TTP(str, po.comma()) | ^~~ callbacks.cc:6381:29: error: 'str' was not declared in this scope; did you mean 'std'? 6381 | TTP(str, po.comma()) | ^~~ callbacks.cc:312:123: note: in definition of macro 'TT' 312 | #define TT(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:6381:25: note: in expansion of macro 'TTP' 6381 | TTP(str, po.comma()) | ^~~ callbacks.cc:6381:29: error: 'str' was not declared in this scope; did you mean 'std'? 6381 | TTP(str, po.comma()) | ^~~ callbacks.cc:312:183: note: in definition of macro 'TT' 312 | #define TT(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:6381:25: note: in expansion of macro 'TTP' 6381 | TTP(str, po.comma()) | ^~~ callbacks.cc:6381:29: error: 'str' was not declared in this scope; did you mean 'std'? 6381 | TTP(str, po.comma()) | ^~~ callbacks.cc:312:222: note: in definition of macro 'TT' 312 | #define TT(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:6381:25: note: in expansion of macro 'TTP' 6381 | TTP(str, po.comma()) | ^~~ callbacks.cc:6381:29: error: 'str' was not declared in this scope; did you mean 'std'? 6381 | TTP(str, po.comma()) | ^~~ callbacks.cc:312:256: note: in definition of macro 'TT' 312 | #define TT(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:6381:25: note: in expansion of macro 'TTP' 6381 | TTP(str, po.comma()) | ^~~ callbacks.cc:6382:63: error: 'str' was not declared in this scope; did you mean 'std'? 6382 | pango_layout_set_markup(layout_comma, str.c_str(), -1); | ^~~ | std callbacks.cc:6395:47: error: expected ';' before 'defstr' 6395 | string defstr = m.function()->getDefaultValue(argcount); | ^~~~~~~ | ; callbacks.cc:6396:59: error: 'defstr' was not declared in this scope; did you mean 'eqstr'? 6396 | remove_blank_ends(defstr); | ^~~~~~ | eqstr callbacks.cc:6402:119: error: 'string' is not a class, namespace, or enumeration 6402 | } else if(m[argcount - 1].isInteger() && defstr.find_first_not_of(NUMBERS) == string::npos && m[argcount - 1].number() == s2i(defstr)) { | ^~~~~~ callbacks.cc:6415:47: error: 'string' is not a class, namespace, or enumeration 6415 | bool b = i == string::npos || i == ename->name.length() - 1 || i == 0; | ^~~~~~ callbacks.cc:6539:25: error: 'string' was not declared in this scope 6539 | string str; | ^~~~~~ callbacks.cc:6539:25: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:6540:29: error: 'str' was not declared in this scope; did you mean 'std'? 6540 | TTP(str, _("undefined")); | ^~~ callbacks.cc:313:62: note: in definition of macro 'TT_SMALL' 313 | #define TT_SMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:6540:25: note: in expansion of macro 'TTP' 6540 | TTP(str, _("undefined")); | ^~~ callbacks.cc:6540:29: error: 'str' was not declared in this scope; did you mean 'std'? 6540 | TTP(str, _("undefined")); | ^~~ callbacks.cc:313:120: note: in definition of macro 'TT_SMALL' 313 | #define TT_SMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:6540:25: note: in expansion of macro 'TTP' 6540 | TTP(str, _("undefined")); | ^~~ callbacks.cc:6540:29: error: 'str' was not declared in this scope; did you mean 'std'? 6540 | TTP(str, _("undefined")); | ^~~ callbacks.cc:313:179: note: in definition of macro 'TT_SMALL' 313 | #define TT_SMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:6540:25: note: in expansion of macro 'TTP' 6540 | TTP(str, _("undefined")); | ^~~ callbacks.cc:6540:29: error: 'str' was not declared in this scope; did you mean 'std'? 6540 | TTP(str, _("undefined")); | ^~~ callbacks.cc:313:218: note: in definition of macro 'TT_SMALL' 313 | #define TT_SMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:6540:25: note: in expansion of macro 'TTP' 6540 | TTP(str, _("undefined")); | ^~~ callbacks.cc:6540:29: error: 'str' was not declared in this scope; did you mean 'std'? 6540 | TTP(str, _("undefined")); | ^~~ callbacks.cc:313:253: note: in definition of macro 'TT_SMALL' 313 | #define TT_SMALL(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:6540:25: note: in expansion of macro 'TTP' 6540 | TTP(str, _("undefined")); | ^~~ callbacks.cc:6540:29: error: 'str' was not declared in this scope; did you mean 'std'? 6540 | TTP(str, _("undefined")); | ^~~ callbacks.cc:312:62: note: in definition of macro 'TT' 312 | #define TT(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:6540:25: note: in expansion of macro 'TTP' 6540 | TTP(str, _("undefined")); | ^~~ callbacks.cc:6540:29: error: 'str' was not declared in this scope; did you mean 'std'? 6540 | TTP(str, _("undefined")); | ^~~ callbacks.cc:312:123: note: in definition of macro 'TT' 312 | #define TT(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:6540:25: note: in expansion of macro 'TTP' 6540 | TTP(str, _("undefined")); | ^~~ callbacks.cc:6540:29: error: 'str' was not declared in this scope; did you mean 'std'? 6540 | TTP(str, _("undefined")); | ^~~ callbacks.cc:312:183: note: in definition of macro 'TT' 312 | #define TT(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:6540:25: note: in expansion of macro 'TTP' 6540 | TTP(str, _("undefined")); | ^~~ callbacks.cc:6540:29: error: 'str' was not declared in this scope; did you mean 'std'? 6540 | TTP(str, _("undefined")); | ^~~ callbacks.cc:312:222: note: in definition of macro 'TT' 312 | #define TT(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:6540:25: note: in expansion of macro 'TTP' 6540 | TTP(str, _("undefined")); | ^~~ callbacks.cc:6540:29: error: 'str' was not declared in this scope; did you mean 'std'? 6540 | TTP(str, _("undefined")); | ^~~ callbacks.cc:312:256: note: in definition of macro 'TT' 312 | #define TT(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:6540:25: note: in expansion of macro 'TTP' 6540 | TTP(str, _("undefined")); | ^~~ callbacks.cc:6541:57: error: 'str' was not declared in this scope; did you mean 'std'? 6541 | pango_layout_set_markup(layout, str.c_str(), -1); | ^~~ | std callbacks.cc:6599:33: error: 'string' was not declared in this scope 6599 | string str; | ^~~~~~ callbacks.cc:6599:33: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:6600:36: error: 'str' was not declared in this scope; did you mean 'std'? 6600 | TT(str, _("approx.")); | ^~~ callbacks.cc:312:62: note: in definition of macro 'TT' 312 | #define TT(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:6600:36: error: 'str' was not declared in this scope; did you mean 'std'? 6600 | TT(str, _("approx.")); | ^~~ callbacks.cc:312:123: note: in definition of macro 'TT' 312 | #define TT(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:6600:36: error: 'str' was not declared in this scope; did you mean 'std'? 6600 | TT(str, _("approx.")); | ^~~ callbacks.cc:312:183: note: in definition of macro 'TT' 312 | #define TT(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:6600:36: error: 'str' was not declared in this scope; did you mean 'std'? 6600 | TT(str, _("approx.")); | ^~~ callbacks.cc:312:222: note: in definition of macro 'TT' 312 | #define TT(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:6600:36: error: 'str' was not declared in this scope; did you mean 'std'? 6600 | TT(str, _("approx.")); | ^~~ callbacks.cc:312:256: note: in definition of macro 'TT' 312 | #define TT(str, x) {if(scaledown <= 0) {str += "";} else if(scaledown == 1) {str += "";} else if(scaledown == 2) {str += "";} else {str += "";} str += x; str += "";} | ^~~ callbacks.cc:6601:72: error: 'str' was not declared in this scope; did you mean 'std'? 6601 | pango_layout_set_markup(layout_equals, str.c_str(), -1); | ^~~ | std callbacks.cc: In function 'void clearresult()': callbacks.cc:6638:9: error: 'date_map' was not declared in this scope 6638 | date_map.clear(); | ^~~~~~~~ callbacks.cc:6639:9: error: 'number_map' was not declared in this scope 6639 | number_map.clear(); | ^~~~~~~~~~ callbacks.cc:6640:9: error: 'number_exp_map' was not declared in this scope 6640 | number_exp_map.clear(); | ^~~~~~~~~~~~~~ callbacks.cc:6641:9: error: 'number_exp_minus_map' was not declared in this scope 6641 | number_exp_minus_map.clear(); | ^~~~~~~~~~~~~~~~~~~~ callbacks.cc:6642:9: error: 'number_approx_map' was not declared in this scope 6642 | number_approx_map.clear(); | ^~~~~~~~~~~~~~~~~ callbacks.cc: At global scope: callbacks.cc:6671:6: error: 'ViewThread' has not been declared 6671 | void ViewThread::run() { | ^~~~~~~~~~ callbacks.cc: In function 'void run()': callbacks.cc:6675:26: error: invalid conversion from 'int*' to 'int' [-fpermissive] 6675 | if(!read(&scale_tmp)) break; | ^~~~~~~~~~ | | | int* callbacks.cc:6675:25: error: too few arguments to function 'ssize_t read(int, void*, size_t)' 6675 | if(!read(&scale_tmp)) break; | ~~~~^~~~~~~~~~~~ In file included from /usr/include/unistd.h:1214, from /usr/include/bits/sigstksz.h:24, from /usr/include/signal.h:328, from /usr/include/glib-2.0/glib/gbacktrace.h:38, from /usr/include/glib-2.0/glib.h:36, from /usr/include/gtk-3.0/gdk/gdkconfig.h:13, from /usr/include/gtk-3.0/gdk/gdk.h:30, from /usr/include/gtk-3.0/gtk/gtk.h:30, from callbacks.cc:17: /usr/include/bits/unistd.h:36:1: note: declared here 36 | read (int __fd, void *__buf, size_t __nbytes) | ^~~~ callbacks.cc:6677:26: error: invalid conversion from 'void**' to 'int' [-fpermissive] 6677 | if(!read(&x) || !x) break; | ^~ | | | void** callbacks.cc:6677:25: error: too few arguments to function 'ssize_t read(int, void*, size_t)' 6677 | if(!read(&x) || !x) break; | ~~~~^~~~ /usr/include/bits/unistd.h:36:1: note: declared here 36 | read (int __fd, void *__buf, size_t __nbytes) | ^~~~ callbacks.cc:6680:26: error: invalid conversion from 'bool*' to 'int' [-fpermissive] 6680 | if(!read(&b_stack)) break; | ^~~~~~~~ | | | bool* callbacks.cc:6680:25: error: too few arguments to function 'ssize_t read(int, void*, size_t)' 6680 | if(!read(&b_stack)) break; | ~~~~^~~~~~~~~~ /usr/include/bits/unistd.h:36:1: note: declared here 36 | read (int __fd, void *__buf, size_t __nbytes) | ^~~~ callbacks.cc:6681:26: error: invalid conversion from 'void**' to 'int' [-fpermissive] 6681 | if(!read(&x)) break; | ^~ | | | void** callbacks.cc:6681:25: error: too few arguments to function 'ssize_t read(int, void*, size_t)' 6681 | if(!read(&x)) break; | ~~~~^~~~ /usr/include/bits/unistd.h:36:1: note: declared here 36 | read (int __fd, void *__buf, size_t __nbytes) | ^~~~ callbacks.cc:6683:26: error: invalid conversion from 'void**' to 'int' [-fpermissive] 6683 | if(!read(&x)) break; | ^~ | | | void** callbacks.cc:6683:25: error: too few arguments to function 'ssize_t read(int, void*, size_t)' 6683 | if(!read(&x)) break; | ~~~~^~~~ /usr/include/bits/unistd.h:36:1: note: declared here 36 | read (int __fd, void *__buf, size_t __nbytes) | ^~~~ callbacks.cc:6689:34: error: invalid conversion from 'bool**' to 'int' [-fpermissive] 6689 | if(!read(&po.is_approximate)) break; | ^~~~~~~~~~~~~~~~~~ | | | bool** callbacks.cc:6689:33: error: too few arguments to function 'ssize_t read(int, void*, size_t)' 6689 | if(!read(&po.is_approximate)) break; | ~~~~^~~~~~~~~~~~~~~~~~~~ /usr/include/bits/unistd.h:36:1: note: declared here 36 | read (int __fd, void *__buf, size_t __nbytes) | ^~~~ callbacks.cc:6691:34: error: invalid conversion from 'void**' to 'int' [-fpermissive] 6691 | if(!read(&x_to)) break; | ^~~~~ | | | void** callbacks.cc:6691:33: error: too few arguments to function 'ssize_t read(int, void*, size_t)' 6691 | if(!read(&x_to)) break; | ~~~~^~~~~~~ /usr/include/bits/unistd.h:36:1: note: declared here 36 | read (int __fd, void *__buf, size_t __nbytes) | ^~~~ callbacks.cc:6716:25: error: 'parsed_text' was not declared in this scope; did you mean 'parsed_mstruct'? 6716 | parsed_text = mp.print(po); | ^~~~~~~~~~~ | parsed_mstruct callbacks.cc:6730:25: error: 'string' was not declared in this scope 6730 | string mstr; | ^~~~~~ callbacks.cc:6730:25: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:6740:41: error: 'mstr' was not declared in this scope 6740 | mstr = mm2.getElement(index_r + 1, index_c + 1)->print(printops); | ^~~~ callbacks.cc:6749:17: error: 'result_text' was not declared in this scope 6749 | result_text = m.print(printops); | ^~~~~~~~~~~ callbacks.cc:6757:25: error: 'result_text_long' was not declared in this scope; did you mean 'result_too_long'? 6757 | result_text_long = m.print(printops_long); | ^~~~~~~~~~~~~~~~ | result_too_long callbacks.cc:6759:25: error: 'result_text_long' was not declared in this scope; did you mean 'result_too_long'? 6759 | result_text_long = ""; | ^~~~~~~~~~~~~~~~ | result_too_long callbacks.cc: In function 'void reload_history()': callbacks.cc:6843:9: error: 'string' was not declared in this scope 6843 | string history_str; | ^~~~~~ callbacks.cc:6843:9: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:6845:23: error: 'history_parsed' was not declared in this scope; did you mean 'history_iter'? 6845 | size_t hp_i = history_parsed.size(); | ^~~~~~~~~~~~~~ | history_iter callbacks.cc:6847:20: error: 'inhistory' was not declared in this scope 6847 | size_t i = inhistory.size(); | ^~~~~~~~~ callbacks.cc:6850:24: error: 'inhistory_type' was not declared in this scope; did you mean 'historystore'? 6850 | switch(inhistory_type[i]) { | ^~~~~~~~~~~~~~ | historystore callbacks.cc:6853:33: error: 'history_str' was not declared in this scope; did you mean 'history_iter'? 6853 | history_str = ""; | ^~~~~~~~~~~ | history_iter callbacks.cc:6873:33: error: 'add_line_breaks' was not declared in this scope 6873 | add_line_breaks(history_str, 2, history_expr_i); | ^~~~~~~~~~~~~~~ callbacks.cc:6874:33: error: 'fix_history_string2' was not declared in this scope 6874 | fix_history_string2(history_str); | ^~~~~~~~~~~~~~~~~~~ callbacks.cc:6875:33: error: 'improve_result_text' was not declared in this scope 6875 | improve_result_text(history_str); | ^~~~~~~~~~~~~~~~~~~ callbacks.cc:6878:55: error: 'string' is not a class, namespace, or enumeration 6878 | if(trans_l != string::npos) { | ^~~~~~ callbacks.cc:6891:47: error: expected ';' before 'expr_str' 6891 | string expr_str; | ^~~~~~~~~ | ; callbacks.cc:6892:102: error: 'expr_str' was not declared in this scope 6892 | if(inhistory_type[i + 1] == QALCULATE_HISTORY_RPN_OPERATION) expr_str = ("RPN Operation"); | ^~~~~~~~ callbacks.cc:6893:108: error: 'expr_str' was not declared in this scope 6893 | else if(inhistory_type[i + 1] == QALCULATE_HISTORY_REGISTER_MOVED) expr_str = ("RPN Register Moved"); | ^~~~~~~~ callbacks.cc:6894:46: error: 'expr_str' was not declared in this scope 6894 | else expr_str = inhistory[i + 1]; | ^~~~~~~~ callbacks.cc:6895:41: error: 'history_str' was not declared in this scope; did you mean 'history_iter'? 6895 | history_str = fix_history_string(expr_str); | ^~~~~~~~~~~ | history_iter callbacks.cc:6895:74: error: 'expr_str' was not declared in this scope 6895 | history_str = fix_history_string(expr_str); | ^~~~~~~~ callbacks.cc:6895:55: error: 'fix_history_string' was not declared in this scope 6895 | history_str = fix_history_string(expr_str); | ^~~~~~~~~~~~~~~~~~ callbacks.cc:6899:47: error: expected ';' before 'str2' 6899 | string str2; | ^~~~~ | ; callbacks.cc:6901:49: error: 'str2' was not declared in this scope 6901 | str2 = "="; | ^~~~ callbacks.cc:6904:57: error: 'str2' was not declared in this scope 6904 | str2 = SIGN_ALMOST_EQUAL; | ^~~~ callbacks.cc:6906:57: error: 'str2' was not declared in this scope 6906 | str2 = _("approx."); | ^~~~ callbacks.cc:6909:56: error: 'str2' was not declared in this scope 6909 | history_str += str2; | ^~~~ callbacks.cc:6919:49: error: 'add_line_breaks' was not declared in this scope 6919 | add_line_breaks(history_str, 1, 0); | ^~~~~~~~~~~~~~~ callbacks.cc:6920:49: error: 'fix_history_string2' was not declared in this scope 6920 | fix_history_string2(history_str); | ^~~~~~~~~~~~~~~~~~~ callbacks.cc:6942:39: error: expected ';' before 'str' 6942 | string str = "- "; | ^~~~ | ; callbacks.cc:6943:33: error: 'str' was not declared in this scope; did you mean 'std'? 6943 | str += inhistory[i]; | ^~~ | std callbacks.cc:6944:33: error: 'add_line_breaks' was not declared in this scope 6944 | add_line_breaks(str, false, 2); | ^~~~~~~~~~~~~~~ callbacks.cc:6945:33: error: 'fix_history_string2' was not declared in this scope 6945 | fix_history_string2(str); | ^~~~~~~~~~~~~~~~~~~ callbacks.cc:6946:33: error: 'history_str' was not declared in this scope; did you mean 'history_iter'? 6946 | history_str = " string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:6961:30: error: 'str' was not declared in this scope; did you mean 'std'? 6961 | void add_line_breaks(string &str, int expr, size_t first_i) { | ^~~ | std callbacks.cc:6961:35: error: expected primary-expression before 'int' 6961 | void add_line_breaks(string &str, int expr, size_t first_i) { | ^~~ callbacks.cc:6961:52: error: expected primary-expression before 'first_i' 6961 | void add_line_breaks(string &str, int expr, size_t first_i) { | ^~~~~~~ callbacks.cc:7164:84: error: 'string' has not been declared 7164 | void setResult(Prefix *prefix, bool update_history, bool update_parse, bool force, string transformation, size_t stack_index, bool register_moved) { | ^~~~~~ callbacks.cc: In function 'void setResult(Prefix*, bool, bool, bool, int, size_t, bool)': callbacks.cc:7212:33: error: 'result_text' was not declared in this scope 7212 | result_text = _("RPN Register Moved"); | ^~~~~~~~~~~ callbacks.cc:7213:33: error: 'inhistory_type' was not declared in this scope; did you mean 'inhistory_index'? 7213 | inhistory_type.push_back(QALCULATE_HISTORY_REGISTER_MOVED); | ^~~~~~~~~~~~~~ | inhistory_index callbacks.cc:7214:33: error: 'inhistory' was not declared in this scope 7214 | inhistory.push_back(""); | ^~~~~~~~~ callbacks.cc:7216:51: error: 'result_text' was not declared in this scope 7216 | remove_blank_ends(result_text); | ^~~~~~~~~~~ callbacks.cc:7220:41: error: 'inhistory_type' was not declared in this scope; did you mean 'inhistory_index'? 7220 | inhistory_type.push_back(QALCULATE_HISTORY_RPN_OPERATION); | ^~~~~~~~~~~~~~ | inhistory_index callbacks.cc:7221:41: error: 'inhistory' was not declared in this scope 7221 | inhistory.push_back(""); | ^~~~~~~~~ callbacks.cc:7223:41: error: 'inhistory_type' was not declared in this scope; did you mean 'inhistory_index'? 7223 | inhistory_type.push_back(QALCULATE_HISTORY_EXPRESSION); | ^~~~~~~~~~~~~~ | inhistory_index callbacks.cc:7224:41: error: 'inhistory' was not declared in this scope 7224 | inhistory.push_back(result_text); | ^~~~~~~~~ callbacks.cc:7226:49: error: 'string' was not declared in this scope 7226 | string expression_str = get_expression_text(); | ^~~~~~ callbacks.cc:7226:49: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:7227:135: error: 'expression_str' was not declared in this scope; did you mean 'expressiontext'? 7227 | if((parsed_mstruct && parsed_mstruct->containsFunction(CALCULATOR->f_uncertainty)) || expression_str.find("+/-") != string::npos || expression_str.find("+/" SIGN_MINUS) != string::npos || expression_str.find("±") != string::npos) printops.interval_display = INTERVAL_DISPLAY_PLUSMINUS; | ^~~~~~~~~~~~~~ | expressiontext callbacks.cc:7227:165: error: 'string' is not a class, namespace, or enumeration 7227 | if((parsed_mstruct && parsed_mstruct->containsFunction(CALCULATOR->f_uncertainty)) || expression_str.find("+/-") != string::npos || expression_str.find("+/" SIGN_MINUS) != string::npos || expression_str.find("±") != string::npos) printops.interval_display = INTERVAL_DISPLAY_PLUSMINUS; | ^~~~~~ callbacks.cc:7227:221: error: 'string' is not a class, namespace, or enumeration 7227 | if((parsed_mstruct && parsed_mstruct->containsFunction(CALCULATOR->f_uncertainty)) || expression_str.find("+/-") != string::npos || expression_str.find("+/" SIGN_MINUS) != string::npos || expression_str.find("±") != string::npos) printops.interval_display = INTERVAL_DISPLAY_PLUSMINUS; | ^~~~~~ callbacks.cc:7227:265: error: 'string' is not a class, namespace, or enumeration 7227 | if((parsed_mstruct && parsed_mstruct->containsFunction(CALCULATOR->f_uncertainty)) || expression_str.find("+/-") != string::npos || expression_str.find("+/" SIGN_MINUS) != string::npos || expression_str.find("±") != string::npos) printops.interval_display = INTERVAL_DISPLAY_PLUSMINUS; | ^~~~~~ callbacks.cc:7234:113: error: 'result_text' was not declared in this scope 7234 | gtk_list_store_insert_with_values(historystore, &history_iter, 0, 0, fix_history_string(result_text).c_str(), 1, inhistory.size() - 1, 2, i2s(nr_of_new_expressions).c_str(), 3, nr_of_new_expressions, 4, EXPRESSION_YPAD, 5, 6, 6, 0.0, 7, PANGO_ALIGN_LEFT, -1); | ^~~~~~~~~~~ callbacks.cc:7234:94: error: 'fix_history_string' was not declared in this scope 7234 | gtk_list_store_insert_with_values(historystore, &history_iter, 0, 0, fix_history_string(result_text).c_str(), 1, inhistory.size() - 1, 2, i2s(nr_of_new_expressions).c_str(), 3, nr_of_new_expressions, 4, EXPRESSION_YPAD, 5, 6, 6, 0.0, 7, PANGO_ALIGN_LEFT, -1); | ^~~~~~~~~~~~~~~~~~ callbacks.cc:7234:138: error: 'inhistory' was not declared in this scope 7234 | gtk_list_store_insert_with_values(historystore, &history_iter, 0, 0, fix_history_string(result_text).c_str(), 1, inhistory.size() - 1, 2, i2s(nr_of_new_expressions).c_str(), 3, nr_of_new_expressions, 4, EXPRESSION_YPAD, 5, 6, 6, 0.0, 7, PANGO_ALIGN_LEFT, -1); | ^~~~~~~~~ callbacks.cc:7238:25: error: 'history_parsed' was not declared in this scope; did you mean 'history_iter'? 7238 | history_parsed.push_back(NULL); | ^~~~~~~~~~~~~~ | history_iter callbacks.cc:7239:25: error: 'history_answer' was not declared in this scope; did you mean 'history_iter'? 7239 | history_answer.push_back(NULL); | ^~~~~~~~~~~~~~ | history_iter callbacks.cc:7242:44: error: request for member 'empty' in 'transformation', which is of non-class type 'int' 7242 | if(!transformation.empty()) { | ^~~~~ callbacks.cc:7243:33: error: 'string' was not declared in this scope 7243 | string history_str = transformation; | ^~~~~~ callbacks.cc:7243:33: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:7244:33: error: 'history_str' was not declared in this scope; did you mean 'history_iter'? 7244 | history_str += ":"; | ^~~~~~~~~~~ | history_iter callbacks.cc:7245:33: error: 'add_line_breaks' was not declared in this scope 7245 | add_line_breaks(history_str, 3, 0); | ^~~~~~~~~~~~~~~ callbacks.cc:7246:33: error: 'fix_history_string2' was not declared in this scope 7246 | fix_history_string2(history_str); | ^~~~~~~~~~~~~~~~~~~ callbacks.cc:7247:33: error: 'improve_result_text' was not declared in this scope 7247 | improve_result_text(history_str); | ^~~~~~~~~~~~~~~~~~~ callbacks.cc:7260:33: error: 'inhistory' was not declared in this scope 7260 | inhistory.insert(inhistory.begin() + inhistory_index, transformation); | ^~~~~~~~~ callbacks.cc:7261:33: error: 'inhistory_type' was not declared in this scope; did you mean 'inhistory_index'? 7261 | inhistory_type.insert(inhistory_type.begin() + inhistory_index, QALCULATE_HISTORY_TRANSFORMATION); | ^~~~~~~~~~~~~~ | inhistory_index callbacks.cc:7269:17: error: 'result_text' was not declared in this scope 7269 | result_text = "?"; | ^~~~~~~~~~~ callbacks.cc:7273:17: error: 'parsed_text' was not declared in this scope; did you mean 'parsed_mstruct'? 7273 | parsed_text = "aborted"; | ^~~~~~~~~~~ | parsed_mstruct callbacks.cc:7401:17: error: 'parsed_text' was not declared in this scope; did you mean 'parsed_mstruct'? 7401 | parsed_text = result_text; | ^~~~~~~~~~~ | parsed_mstruct callbacks.cc:7401:31: error: 'result_text' was not declared in this scope 7401 | parsed_text = result_text; | ^~~~~~~~~~~ callbacks.cc:7409:20: error: 'result_text' was not declared in this scope 7409 | if(result_text.length() > 500000) { | ^~~~~~~~~~~ callbacks.cc:7412:36: error: 'result_text' was not declared in this scope 7412 | RPNRegisterChanged(result_text, stack_index); | ^~~~~~~~~~~ callbacks.cc:7412:17: error: 'RPNRegisterChanged' was not declared in this scope; did you mean 'RPNRegisterRemoved'? 7412 | RPNRegisterChanged(result_text, stack_index); | ^~~~~~~~~~~~~~~~~~ | RPNRegisterRemoved callbacks.cc:7415:20: error: 'result_text' was not declared in this scope 7415 | if(result_text.length() > 500000) { | ^~~~~~~~~~~ callbacks.cc:7418:20: error: 'parsed_text' was not declared in this scope; did you mean 'parsed_mstruct'? 7418 | if(parsed_text.length() > 500000) { | ^~~~~~~~~~~ | parsed_mstruct callbacks.cc:7424:25: error: 'string' was not declared in this scope 7424 | string str = expr_str; | ^~~~~~ callbacks.cc:7424:25: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:7425:25: error: 'str' was not declared in this scope; did you mean 'std'? 7425 | str += " 0 && parsed_mstruct && !history_parsed[nr_of_new_expressions - 1]) { | ^~~~~~~~~~~~~~ | history_iter callbacks.cc:7454:33: error: 'unfix_history_string' was not declared in this scope 7454 | unfix_history_string(str); | ^~~~~~~~~~~~~~~~~~~~ callbacks.cc:7455:33: error: 'add_line_breaks' was not declared in this scope 7455 | add_line_breaks(str, 1, 0); | ^~~~~~~~~~~~~~~ callbacks.cc:7456:33: error: 'fix_history_string2' was not declared in this scope 7456 | fix_history_string2(str); | ^~~~~~~~~~~~~~~~~~~ callbacks.cc:7476:44: error: 'result_text' was not declared in this scope 7476 | RPNRegisterChanged(result_text, stack_index); | ^~~~~~~~~~~ callbacks.cc:7476:25: error: 'RPNRegisterChanged' was not declared in this scope; did you mean 'RPNRegisterRemoved'? 7476 | RPNRegisterChanged(result_text, stack_index); | ^~~~~~~~~~~~~~~~~~ | RPNRegisterRemoved callbacks.cc:7479:17: error: 'string' was not declared in this scope 7479 | string str; | ^~~~~~ callbacks.cc:7479:17: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:7483:25: error: 'str' was not declared in this scope; did you mean 'std'? 7483 | str = "="; | ^~~ | std callbacks.cc:7486:33: error: 'str' was not declared in this scope; did you mean 'std'? 7486 | str = SIGN_ALMOST_EQUAL; | ^~~ | std callbacks.cc:7488:33: error: 'str' was not declared in this scope; did you mean 'std'? 7488 | str = "= "; | ^~~ | std callbacks.cc:7492:23: error: expected ';' before 'history_str' 7492 | string history_str; | ^~~~~~~~~~~~ | ; callbacks.cc:7494:85: error: request for member 'empty' in 'transformation', which is of non-class type 'int' 7494 | if(!update_parse && current_inhistory_index >= 0 && !transformation.empty() && history_index == history_index_bak) { | ^~~~~ callbacks.cc:7495:25: error: 'history_str' was not declared in this scope; did you mean 'history_iter'? 7495 | history_str = transformation; | ^~~~~~~~~~~ | history_iter callbacks.cc:7499:17: error: 'history_str' was not declared in this scope; did you mean 'history_iter'? 7499 | history_str += str; | ^~~~~~~~~~~ | history_iter callbacks.cc:7499:32: error: 'str' was not declared in this scope; did you mean 'std'? 7499 | history_str += str; | ^~~ | std callbacks.cc:7502:32: error: 'result_text' was not declared in this scope 7502 | history_str += result_text; | ^~~~~~~~~~~ callbacks.cc:7503:17: error: 'add_line_breaks' was not declared in this scope 7503 | add_line_breaks(history_str, 2, history_expr_i); | ^~~~~~~~~~~~~~~ callbacks.cc:7504:17: error: 'fix_history_string2' was not declared in this scope 7504 | fix_history_string2(history_str); | ^~~~~~~~~~~~~~~~~~~ callbacks.cc:7505:17: error: 'improve_result_text' was not declared in this scope 7505 | improve_result_text(history_str); | ^~~~~~~~~~~~~~~~~~~ callbacks.cc:7508:39: error: 'string' is not a class, namespace, or enumeration 7508 | if(trans_l != string::npos) { | ^~~~~~ callbacks.cc:7514:85: error: request for member 'empty' in 'transformation', which is of non-class type 'int' 7514 | if(!update_parse && current_inhistory_index >= 0 && !transformation.empty() && history_index_bak == history_index) { | ^~~~~ callbacks.cc:7520:17: error: 'inhistory' was not declared in this scope 7520 | inhistory.insert(inhistory.begin() + inhistory_index, result_text); | ^~~~~~~~~ callbacks.cc:7523:25: error: 'inhistory_type' was not declared in this scope; did you mean 'inhistory_index'? 7523 | inhistory_type.insert(inhistory_type.begin() + inhistory_index, QALCULATE_HISTORY_RESULT_APPROXIMATE); | ^~~~~~~~~~~~~~ | inhistory_index callbacks.cc:7525:25: error: 'inhistory_type' was not declared in this scope; did you mean 'inhistory_index'? 7525 | inhistory_type.insert(inhistory_type.begin() + inhistory_index, QALCULATE_HISTORY_RESULT); | ^~~~~~~~~~~~~~ | inhistory_index callbacks.cc:7527:91: error: 'history_answer' was not declared in this scope; did you mean 'history_iter'? 7527 | if(nr_of_new_expressions > 0 && mstruct && nr_of_new_expressions <= (int) history_answer.size()) { | ^~~~~~~~~~~~~~ | history_iter callbacks.cc:7543:28: error: 'result_text_long' was not declared in this scope; did you mean 'result_too_long'? 7543 | if(result_text_long.empty()) { | ^~~~~~~~~~~~~~~~ | result_too_long callbacks.cc: In member function 'virtual void CommandThread::run()': callbacks.cc:7625:33: error: 'string' was not declared in this scope 7625 | string ceu_str; | ^~~~~~ callbacks.cc:7625:33: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:7627:41: error: 'ceu_str' was not declared in this scope; did you mean 'eqstr'? 7627 | ceu_str = CALCULATOR->unlocalizeExpression(gtk_entry_get_text(GTK_ENTRY(gtk_builder_get_object(main_builder, "convert_entry_unit"))), evalops.parse_options); | ^~~~~~~ | eqstr callbacks.cc:7635:113: error: 'ceu_str' was not declared in this scope; did you mean 'eqstr'? 7635 | ((MathStructure*) x)->set(CALCULATOR->calculate(*((MathStructure*) x), evalops, ceu_str)); | ^~~~~~~ | eqstr callbacks.cc:7639:102: error: 'command_convert_units_string' was not declared in this scope; did you mean 'command_convert_unit'? 7639 | ((MathStructure*) x)->set(CALCULATOR->convert(*((MathStructure*) x), command_convert_units_string, evalops)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | command_convert_unit callbacks.cc: At global scope: callbacks.cc:7671:64: error: 'string' has not been declared 7671 | void executeCommand(int command_type, bool show_result = true, string ceu_str = "", Unit *u = NULL, int run = 1) { | ^~~~~~ callbacks.cc:7671:112: error: invalid conversion from 'const char*' to 'int' [-fpermissive] 7671 | void executeCommand(int command_type, bool show_result = true, string ceu_str = "", Unit *u = NULL, int run = 1) { | ^ | | | const char* callbacks.cc: In function 'void executeCommand(int, bool, int, Unit*, int)': callbacks.cc:7689:25: error: 'command_convert_units_string' was not declared in this scope; did you mean 'command_convert_unit'? 7689 | command_convert_units_string = ceu_str; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | command_convert_unit callbacks.cc:7714:17: error: 'string' was not declared in this scope 7714 | string progress_str; | ^~~~~~ callbacks.cc:7714:17: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:7717:33: error: 'progress_str' was not declared in this scope 7717 | progress_str = _("Factorizing…"); | ^~~~~~~~~~~~ callbacks.cc:7721:33: error: 'progress_str' was not declared in this scope 7721 | progress_str = _("Expanding partial fractions…"); | ^~~~~~~~~~~~ callbacks.cc:7725:33: error: 'progress_str' was not declared in this scope 7725 | progress_str = _("Expanding…"); | ^~~~~~~~~~~~ callbacks.cc:7730:33: error: 'progress_str' was not declared in this scope 7730 | progress_str = _("Calculating…"); | ^~~~~~~~~~~~ callbacks.cc:7734:33: error: 'progress_str' was not declared in this scope 7734 | progress_str = _("Converting…"); | ^~~~~~~~~~~~ callbacks.cc:7738:103: error: 'progress_str' was not declared in this scope 7738 | gtk_window_set_title(GTK_WINDOW(gtk_builder_get_object(main_builder, "main_window")), progress_str.c_str()); | ^~~~~~~~~~~~ callbacks.cc:7795:102: error: operands to '?:' have different types 'int' and 'const char*' 7795 | if(show_result) setResult(NULL, true, false, true, command_type == COMMAND_TRANSFORM ? ceu_str : ""); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ callbacks.cc: In function 'void result_format_updated()': callbacks.cc:7850:18: error: invalid conversion from 'const char*' to 'int' [-fpermissive] 7850 | setResult(NULL, true, false, false); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | const char* callbacks.cc: In function 'void result_action_executed()': callbacks.cc:7855:18: error: invalid conversion from 'const char*' to 'int' [-fpermissive] 7855 | setResult(NULL, true, false, true); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ | | | const char* callbacks.cc: In function 'void result_prefix_changed(Prefix*)': callbacks.cc:7869:31: error: invalid conversion from 'const char*' to 'int' [-fpermissive] 7869 | executeCommand(COMMAND_CALCULATE, false); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | const char* callbacks.cc:7876:18: error: invalid conversion from 'const char*' to 'int' [-fpermissive] 7876 | setResult(prefix, true, false, true); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | const char* callbacks.cc: At global scope: callbacks.cc:7906:6: error: variable or field 'add_to_expression_history' declared void 7906 | void add_to_expression_history(string str) { | ^~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:7906:32: error: 'string' was not declared in this scope 7906 | void add_to_expression_history(string str) { | ^~~~~~ callbacks.cc:7906:32: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc: In function 'void set_previous_expression()': callbacks.cc:7925:60: error: 'previous_expression' was not declared in this scope; did you mean 'set_previous_expression'? 7925 | gtk_text_buffer_set_text(expressionbuffer, previous_expression.c_str(), -1); | ^~~~~~~~~~~~~~~~~~~ | set_previous_expression callbacks.cc: At global scope: callbacks.cc:7938:130: error: 'string' has not been declared 7938 | void execute_expression(bool force, bool do_mathoperation, MathOperation op, MathFunction *f, bool do_stack, size_t stack_index, string execute_str, string str, bool check_exrates) { | ^~~~~~ callbacks.cc:7938:150: error: 'string' has not been declared 7938 | void execute_expression(bool force, bool do_mathoperation, MathOperation op, MathFunction *f, bool do_stack, size_t stack_index, string execute_str, string str, bool check_exrates) { | ^~~~~~ callbacks.cc: In function 'void execute_expression(bool, bool, MathOperation, MathFunction*, bool, size_t, int, int, bool)': callbacks.cc:7942:9: error: 'string' was not declared in this scope 7942 | string saved_execute_str = execute_str; | ^~~~~~ callbacks.cc:7942:9: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:7957:16: error: request for member 'empty' in 'str', which is of non-class type 'int' 7957 | if(str.empty()) { | ^~~~~ callbacks.cc:7963:31: error: invalid conversion from 'gchar*' {aka 'char*'} to 'int' [-fpermissive] 7963 | str = gstr; | ^~~~ | | | gchar* {aka char*} callbacks.cc:7971:31: error: invalid conversion from 'gchar*' {aka 'char*'} to 'int' [-fpermissive] 7971 | str = gstr; | ^~~~ | | | gchar* {aka char*} callbacks.cc:7973:69: error: request for member 'find_first_not_of' in 'str', which is of non-class type 'int' 7973 | if(!force && (expression_has_changed || str.find_first_not_of(SPACES) == string::npos)) { | ^~~~~~~~~~~~~~~~~ callbacks.cc:7973:98: error: 'string' is not a class, namespace, or enumeration 7973 | if(!force && (expression_has_changed || str.find_first_not_of(SPACES) == string::npos)) { | ^~~~~~ callbacks.cc:7980:54: error: request for member 'empty' in 'str', which is of non-class type 'int' 7980 | if(!do_mathoperation && !str.empty()) add_to_expression_history(str); | ^~~~~ callbacks.cc:7980:63: error: 'add_to_expression_history' was not declared in this scope; did you mean 'update_expression_icons'? 7980 | if(!do_mathoperation && !str.empty()) add_to_expression_history(str); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | update_expression_icons callbacks.cc:7984:15: error: expected ';' before 'from_str' 7984 | string from_str = str, to_str; | ^~~~~~~~~ | ; callbacks.cc:7985:24: error: request for member 'empty' in 'execute_str', which is of non-class type 'int' 7985 | if(execute_str.empty() && CALCULATOR->separateToExpression(from_str, to_str, evalops, true, !do_stack)) { | ^~~~~ callbacks.cc:7985:68: error: 'from_str' was not declared in this scope 7985 | if(execute_str.empty() && CALCULATOR->separateToExpression(from_str, to_str, evalops, true, !do_stack)) { | ^~~~~~~~ callbacks.cc:7985:78: error: 'to_str' was not declared in this scope 7985 | if(execute_str.empty() && CALCULATOR->separateToExpression(from_str, to_str, evalops, true, !do_stack)) { | ^~~~~~ callbacks.cc:7987:23: error: expected ';' before 'to_str1' 7987 | string to_str1, to_str2; | ^~~~~~~~ | ; callbacks.cc:7989:30: error: 'string' is not a class, namespace, or enumeration 7989 | if(ispace != string::npos) { | ^~~~~~ callbacks.cc:7990:25: error: 'to_str1' was not declared in this scope 7990 | to_str1 = to_str.substr(0, ispace); | ^~~~~~~ callbacks.cc:7992:25: error: 'to_str2' was not declared in this scope 7992 | to_str2 = to_str.substr(ispace + 1); | ^~~~~~~ callbacks.cc:8000:56: error: invalid conversion from 'const char*' to 'int' [-fpermissive] 8000 | if(from_str.empty()) {setResult(NULL, true, false, false); set_previous_expression();} | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | const char* callbacks.cc:8009:56: error: invalid conversion from 'const char*' to 'int' [-fpermissive] 8009 | if(from_str.empty()) {setResult(NULL, true, false, false); set_previous_expression();} | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | const char* callbacks.cc:8018:56: error: invalid conversion from 'const char*' to 'int' [-fpermissive] 8018 | if(from_str.empty()) {setResult(NULL, true, false, false); set_previous_expression();} | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | const char* callbacks.cc:8027:56: error: invalid conversion from 'const char*' to 'int' [-fpermissive] 8027 | if(from_str.empty()) {setResult(NULL, true, false, false); set_previous_expression();} | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | const char* callbacks.cc:8036:56: error: invalid conversion from 'const char*' to 'int' [-fpermissive] 8036 | if(from_str.empty()) {setResult(NULL, true, false, false); set_previous_expression();} | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | const char* callbacks.cc:8045:56: error: invalid conversion from 'const char*' to 'int' [-fpermissive] 8045 | if(from_str.empty()) {setResult(NULL, true, false, false); set_previous_expression();} | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | const char* callbacks.cc:8054:56: error: invalid conversion from 'const char*' to 'int' [-fpermissive] 8054 | if(from_str.empty()) {setResult(NULL, true, false, false); set_previous_expression();} | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | const char* callbacks.cc:8062:56: error: invalid conversion from 'const char*' to 'int' [-fpermissive] 8062 | if(from_str.empty()) {setResult(NULL, true, false, false); set_previous_expression();} | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | const char* callbacks.cc:8091:56: error: invalid conversion from 'const char*' to 'int' [-fpermissive] 8091 | if(from_str.empty()) {setResult(NULL, true, false, false); set_previous_expression();} | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | const char* callbacks.cc:8101:56: error: invalid conversion from 'const char*' to 'int' [-fpermissive] 8101 | if(from_str.empty()) {setResult(NULL, true, false, false); set_previous_expression();} | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | const char* callbacks.cc:8111:54: error: 'result_text' was not declared in this scope 8111 | convert_number_bases(result_text.c_str()); | ^~~~~~~~~~~ callbacks.cc:8130:47: error: invalid conversion from 'const char*' to 'int' [-fpermissive] 8130 | executeCommand(COMMAND_EVAL); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~ | | | const char* callbacks.cc:8143:47: error: invalid conversion from 'const char*' to 'int' [-fpermissive] 8143 | executeCommand(COMMAND_EVAL); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~ | | | const char* callbacks.cc:8156:47: error: invalid conversion from 'const char*' to 'int' [-fpermissive] 8156 | executeCommand(COMMAND_EVAL); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~ | | | const char* callbacks.cc:8167:47: error: invalid conversion from 'const char*' to 'int' [-fpermissive] 8167 | executeCommand(COMMAND_CONVERT_OPTIMAL); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ | | | const char* callbacks.cc:8183:47: error: invalid conversion from 'const char*' to 'int' [-fpermissive] 8183 | executeCommand(COMMAND_CONVERT_BASE); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ | | | const char* callbacks.cc:8218:42: error: invalid conversion from 'const char*' to 'int' [-fpermissive] 8218 | setResult(NULL, true, false, false); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | const char* callbacks.cc:8230:47: error: invalid conversion from 'const char*' to 'int' [-fpermissive] 8230 | executeCommand(COMMAND_FACTORIZE); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ | | | const char* callbacks.cc:8240:47: error: invalid conversion from 'const char*' to 'int' [-fpermissive] 8240 | executeCommand(COMMAND_EXPAND_PARTIAL_FRACTIONS); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | const char* callbacks.cc:8246:45: error: 'to_str1' was not declared in this scope 8246 | } else if((equalsIgnoreCase(to_str1, "base") || equalsIgnoreCase(to_str1, _("base"))) && s2i(to_str2) >= 2 && (s2i(to_str2) <= 36 || s2i(to_str2) == BASE_SEXAGESIMAL)) { | ^~~~~~~ callbacks.cc:8246:110: error: 'to_str2' was not declared in this scope 8246 | } else if((equalsIgnoreCase(to_str1, "base") || equalsIgnoreCase(to_str1, _("base"))) && s2i(to_str2) >= 2 && (s2i(to_str2) <= 36 || s2i(to_str2) == BASE_SEXAGESIMAL)) { | ^~~~~~~ callbacks.cc:8251:56: error: invalid conversion from 'const char*' to 'int' [-fpermissive] 8251 | if(from_str.empty()) {setResult(NULL, true, false, false); set_previous_expression();} | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | const char* callbacks.cc:8269:24: error: request for member 'empty' in 'execute_str', which is of non-class type 'int' 8269 | if(execute_str.empty() && gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(gtk_builder_get_object(main_builder, "convert_button_continuous_conversion")))) { | ^~~~~ callbacks.cc:8270:23: error: expected ';' before 'ceu_str' 8270 | string ceu_str = CALCULATOR->unlocalizeExpression(gtk_entry_get_text(GTK_ENTRY(gtk_builder_get_object(main_builder, "convert_entry_unit"))), evalops.parse_options); | ^~~~~~~~ | ; callbacks.cc:8271:35: error: 'ceu_str' was not declared in this scope; did you mean 'eqstr'? 8271 | remove_blank_ends(ceu_str); | ^~~~~~~ | eqstr callbacks.cc:8285:106: error: request for member 'empty' in 'execute_str', which is of non-class type 'int' 8285 | CALCULATOR->setRPNRegister(stack_index + 1, CALCULATOR->unlocalizeExpression(execute_str.empty() ? str : execute_str, evalops.parse_options), 0, evalops, parsed_mstruct, parsed_tostruct); | ^~~~~ callbacks.cc:8292:31: error: expected ';' before 'str2' 8292 | string str2 = CALCULATOR->unlocalizeExpression(execute_str.empty() ? str : execute_str, evalops.parse_options); | ^~~~~ | ; callbacks.cc:8293:48: error: 'str2' was not declared in this scope; did you mean 'str'? 8293 | CALCULATOR->parseSigns(str2); | ^~~~ | str callbacks.cc:8319:63: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 8319 | } else if(str2 == "!=" || str == "=!" || str == "<>") { | ~~~~^~~~~~~ callbacks.cc:8319:78: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 8319 | } else if(str2 == "!=" || str == "=!" || str == "<>") { | ~~~~^~~~~~~ callbacks.cc:8322:63: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 8322 | } else if(str2 == "<=" || str == "=<") { | ~~~~^~~~~~~ callbacks.cc:8325:63: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 8325 | } else if(str2 == ">=" || str == "=>") { | ~~~~^~~~~~~ callbacks.cc:8383:93: error: request for member 'empty' in 'execute_str', which is of non-class type 'int' 8383 | CALCULATOR->calculate(mstruct, CALCULATOR->unlocalizeExpression(execute_str.empty() ? str : execute_str, evalops.parse_options), 0, evalops, parsed_mstruct, parsed_tostruct); | ^~~~~ callbacks.cc:8455:17: error: 'result_text' was not declared in this scope 8455 | result_text = _("RPN Operation"); | ^~~~~~~~~~~ callbacks.cc:8457:17: error: 'result_text' was not declared in this scope 8457 | result_text = str; | ^~~~~~~~~~~ callbacks.cc:8467:25: error: 'RPNRegisterAdded' was not declared in this scope; did you mean 'RPNRegisterRemoved'? 8467 | RPNRegisterAdded(""); | ^~~~~~~~~~~~~~~~ | RPNRegisterRemoved callbacks.cc:8477:106: error: 'saved_execute_str' was not declared in this scope; did you mean 'execute_str'? 8477 | execute_expression(force, do_mathoperation, op, f, rpn_mode, do_stack ? stack_index : 0, saved_execute_str, str, false); | ^~~~~~~~~~~~~~~~~ | execute_str callbacks.cc:8485:39: error: invalid conversion from 'const char*' to 'int' [-fpermissive] 8485 | executeCommand(do_pfe ? COMMAND_EXPAND_PARTIAL_FRACTIONS : COMMAND_FACTORIZE, false); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | const char* callbacks.cc:8488:39: error: invalid conversion from 'const char*' to 'int' [-fpermissive] 8488 | executeCommand(do_pfe ? COMMAND_EXPAND_PARTIAL_FRACTIONS : COMMAND_FACTORIZE, false); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | const char* callbacks.cc:8491:23: error: 'previous_expression' was not declared in this scope; did you mean 'set_previous_expression'? 8491 | if(!do_stack) previous_expression = execute_str.empty() ? str : execute_str; | ^~~~~~~~~~~~~~~~~~~ | set_previous_expression callbacks.cc:8491:57: error: request for member 'empty' in 'execute_str', which is of non-class type 'int' 8491 | if(!do_stack) previous_expression = execute_str.empty() ? str : execute_str; | ^~~~~ callbacks.cc:8498:78: error: invalid conversion from 'const char*' to 'int' [-fpermissive] 8498 | setResult(NULL, true, (!do_stack || stack_index == 0), true, "", do_stack ? stack_index : 0); | ^~ | | | const char* callbacks.cc:7164:91: note: initializing argument 5 of 'void setResult(Prefix*, bool, bool, bool, int, size_t, bool)' 7164 | void setResult(Prefix *prefix, bool update_history, bool update_parse, bool force, string transformation, size_t stack_index, bool register_moved) { | ~~~~~~~^~~~~~~~~~~~~~ callbacks.cc:8502:78: error: invalid conversion from 'const char*' to 'int' [-fpermissive] 8502 | setResult(NULL, true, (!do_stack || stack_index == 0), true, "", do_stack ? stack_index : 0); | ^~ | | | const char* callbacks.cc:7164:91: note: initializing argument 5 of 'void setResult(Prefix*, bool, bool, bool, int, size_t, bool)' 7164 | void setResult(Prefix *prefix, bool update_history, bool update_parse, bool force, string transformation, size_t stack_index, bool register_moved) { | ~~~~~~~^~~~~~~~~~~~~~ callbacks.cc:8508:31: error: expected ';' before 's_cat' 8508 | string s_cat = u->category(); | ^~~~~~ | ; callbacks.cc:8509:28: error: 's_cat' was not declared in this scope; did you mean 'strcat'? 8509 | if(s_cat.empty()) s_cat = _("Uncategorized"); | ^~~~~ | strcat callbacks.cc:8510:28: error: 's_cat' was not declared in this scope; did you mean 'strcat'? 8510 | if(s_cat != selected_unit_category) { | ^~~~~ | strcat callbacks.cc:8510:37: error: 'selected_unit_category' was not declared in this scope 8510 | if(s_cat != selected_unit_category) { | ^~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:8511:52: error: 'convert_category_map' was not declared in this scope 8511 | GtkTreeIter iter = convert_category_map[s_cat]; | ^~~~~~~~~~~~~~~~~~~~ callbacks.cc: In function 'void calculateRPN(int)': callbacks.cc:8582:20: error: 'get_expression_text' was not declared in this scope; did you mean 'set_expression_text'? 8582 | if(get_expression_text().find_first_not_of(SPACES) != string::npos) { | ^~~~~~~~~~~~~~~~~~~ | set_expression_text callbacks.cc:8582:71: error: 'string' has not been declared 8582 | if(get_expression_text().find_first_not_of(SPACES) != string::npos) { | ^~~~~~ callbacks.cc: In function 'void calculateRPN(MathFunction*)': callbacks.cc:8590:20: error: 'get_expression_text' was not declared in this scope; did you mean 'set_expression_text'? 8590 | if(get_expression_text().find_first_not_of(SPACES) != string::npos) { | ^~~~~~~~~~~~~~~~~~~ | set_expression_text callbacks.cc:8590:71: error: 'string' has not been declared 8590 | if(get_expression_text().find_first_not_of(SPACES) != string::npos) { | ^~~~~~ callbacks.cc: At global scope: callbacks.cc:8596:6: error: variable or field 'RPNRegisterAdded' declared void 8596 | void RPNRegisterAdded(string text, gint index) { | ^~~~~~~~~~~~~~~~ callbacks.cc:8596:23: error: 'string' was not declared in this scope 8596 | void RPNRegisterAdded(string text, gint index) { | ^~~~~~ callbacks.cc:8596:23: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:8596:41: error: expected primary-expression before 'index' 8596 | void RPNRegisterAdded(string text, gint index) { | ^~~~~ callbacks.cc:8642:6: error: variable or field 'RPNRegisterChanged' declared void 8642 | void RPNRegisterChanged(string text, gint index) { | ^~~~~~~~~~~~~~~~~~ callbacks.cc:8642:25: error: 'string' was not declared in this scope 8642 | void RPNRegisterChanged(string text, gint index) { | ^~~~~~ callbacks.cc:8642:25: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:8642:43: error: expected primary-expression before 'index' 8642 | void RPNRegisterChanged(string text, gint index) { | ^~~~~ callbacks.cc: In function 'void recreate_recent_functions()': callbacks.cc:8664:9: error: 'recent_function_items' was not declared in this scope 8664 | recent_function_items.clear(); | ^~~~~~~~~~~~~~~~~~~~~ callbacks.cc:8666:31: error: 'recent_functions' was not declared in this scope; did you mean 'insert_function'? 8666 | for(size_t i = 0; i < recent_functions.size(); i++) { | ^~~~~~~~~~~~~~~~ | insert_function callbacks.cc: In function 'void recreate_recent_variables()': callbacks.cc:8687:9: error: 'recent_variable_items' was not declared in this scope 8687 | recent_variable_items.clear(); | ^~~~~~~~~~~~~~~~~~~~~ callbacks.cc:8689:31: error: 'recent_variables' was not declared in this scope; did you mean 'insert_variable'? 8689 | for(size_t i = 0; i < recent_variables.size(); i++) { | ^~~~~~~~~~~~~~~~ | insert_variable callbacks.cc: In function 'void recreate_recent_units()': callbacks.cc:8710:9: error: 'recent_unit_items' was not declared in this scope 8710 | recent_unit_items.clear(); | ^~~~~~~~~~~~~~~~~ callbacks.cc:8712:31: error: 'recent_units' was not declared in this scope 8712 | for(size_t i = 0; i < recent_units.size(); i++) { | ^~~~~~~~~~~~ callbacks.cc: In function 'void function_inserted(MathFunction*)': callbacks.cc:8737:12: error: 'recent_function_items' was not declared in this scope 8737 | if(recent_function_items.size() <= 0) { | ^~~~~~~~~~~~~~~~~~~~~ callbacks.cc:8740:31: error: 'recent_functions' was not declared in this scope; did you mean 'insert_function'? 8740 | for(size_t i = 0; i < recent_functions.size(); i++) { | ^~~~~~~~~~~~~~~~ | insert_function callbacks.cc:8743:44: error: 'recent_function_items' was not declared in this scope 8743 | gtk_widget_destroy(recent_function_items[i]); | ^~~~~~~~~~~~~~~~~~~~~ callbacks.cc:8748:12: error: 'recent_function_items' was not declared in this scope 8748 | if(recent_function_items.size() >= 5) { | ^~~~~~~~~~~~~~~~~~~~~ callbacks.cc:8749:17: error: 'recent_functions' was not declared in this scope; did you mean 'insert_function'? 8749 | recent_functions.erase(recent_functions.begin()); | ^~~~~~~~~~~~~~~~ | insert_function callbacks.cc:8754:9: error: 'recent_function_items' was not declared in this scope 8754 | recent_function_items.push_back(item); | ^~~~~~~~~~~~~~~~~~~~~ callbacks.cc:8755:9: error: 'recent_functions' was not declared in this scope; did you mean 'insert_function'? 8755 | recent_functions.push_back(object); | ^~~~~~~~~~~~~~~~ | insert_function callbacks.cc: In function 'void variable_inserted(Variable*)': callbacks.cc:8767:12: error: 'recent_variable_items' was not declared in this scope 8767 | if(recent_variable_items.size() <= 0) { | ^~~~~~~~~~~~~~~~~~~~~ callbacks.cc:8770:31: error: 'recent_variables' was not declared in this scope; did you mean 'insert_variable'? 8770 | for(size_t i = 0; i < recent_variables.size(); i++) { | ^~~~~~~~~~~~~~~~ | insert_variable callbacks.cc:8773:44: error: 'recent_variable_items' was not declared in this scope 8773 | gtk_widget_destroy(recent_variable_items[i]); | ^~~~~~~~~~~~~~~~~~~~~ callbacks.cc:8778:12: error: 'recent_variable_items' was not declared in this scope 8778 | if(recent_variable_items.size() >= 5) { | ^~~~~~~~~~~~~~~~~~~~~ callbacks.cc:8779:17: error: 'recent_variables' was not declared in this scope; did you mean 'insert_variable'? 8779 | recent_variables.erase(recent_variables.begin()); | ^~~~~~~~~~~~~~~~ | insert_variable callbacks.cc:8784:9: error: 'recent_variable_items' was not declared in this scope 8784 | recent_variable_items.push_back(item); | ^~~~~~~~~~~~~~~~~~~~~ callbacks.cc:8785:9: error: 'recent_variables' was not declared in this scope; did you mean 'insert_variable'? 8785 | recent_variables.push_back(object); | ^~~~~~~~~~~~~~~~ | insert_variable callbacks.cc: In function 'void unit_inserted(Unit*)': callbacks.cc:8797:12: error: 'recent_unit_items' was not declared in this scope 8797 | if(recent_unit_items.size() <= 0) { | ^~~~~~~~~~~~~~~~~ callbacks.cc:8800:31: error: 'recent_units' was not declared in this scope 8800 | for(size_t i = 0; i < recent_units.size(); i++) { | ^~~~~~~~~~~~ callbacks.cc:8803:44: error: 'recent_unit_items' was not declared in this scope 8803 | gtk_widget_destroy(recent_unit_items[i]); | ^~~~~~~~~~~~~~~~~ callbacks.cc:8808:12: error: 'recent_unit_items' was not declared in this scope 8808 | if(recent_unit_items.size() >= 5) { | ^~~~~~~~~~~~~~~~~ callbacks.cc:8809:17: error: 'recent_units' was not declared in this scope 8809 | recent_units.erase(recent_units.begin()); | ^~~~~~~~~~~~ callbacks.cc:8814:9: error: 'recent_unit_items' was not declared in this scope 8814 | recent_unit_items.push_back(item); | ^~~~~~~~~~~~~~~~~ callbacks.cc:8815:9: error: 'recent_units' was not declared in this scope 8815 | recent_units.push_back(object); | ^~~~~~~~~~~~ callbacks.cc: In function 'void apply_function(MathFunction*, GtkWidget*)': callbacks.cc:8828:9: error: 'string' was not declared in this scope 8828 | string str = f->preferredInputName(printops.abbreviate_names, printops.use_unicode_signs, false, false, &can_display_unicode_string_function, (void*) expressionbuffer).name; | ^~~~~~ callbacks.cc:8828:9: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:8830:17: error: 'str' was not declared in this scope; did you mean 'std'? 8830 | str += "()"; | ^~~ | std callbacks.cc:8832:17: error: 'str' was not declared in this scope; did you mean 'std'? 8832 | str += "("; | ^~~ | std callbacks.cc:8833:24: error: 'get_expression_text' was not declared in this scope; did you mean 'set_expression_text'? 8833 | str += get_expression_text(); | ^~~~~~~~~~~~~~~~~~~ | set_expression_text callbacks.cc:8839:21: error: 'str' was not declared in this scope; did you mean 'std'? 8839 | insert_text(str.c_str()); | ^~~ | std callbacks.cc: In function 'gint on_function_int_input(GtkSpinButton*, gpointer, gpointer)': callbacks.cc:8845:9: error: 'string' was not declared in this scope 8845 | string str = gtk_entry_get_text(GTK_ENTRY(entry)); | ^~~~~~ callbacks.cc:8845:9: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:8846:27: error: 'str' was not declared in this scope; did you mean 'std'? 8846 | remove_blank_ends(str); | ^~~ | std callbacks.cc:8847:46: error: 'string' is not a class, namespace, or enumeration 8847 | if(str.find_first_not_of(NUMBERS) != string::npos) { | ^~~~~~ callbacks.cc: At global scope: callbacks.cc:8864:9: error: 'vector' does not name a type; did you mean 'Vector'? 8864 | vector label; | ^~~~~~ | Vector callbacks.cc:8865:9: error: 'vector' does not name a type; did you mean 'Vector'? 8865 | vector entry; | ^~~~~~ | Vector callbacks.cc:8866:9: error: 'vector' does not name a type; did you mean 'Vector'? 8866 | vector type_label; | ^~~~~~ | Vector callbacks.cc:8867:9: error: 'vector' does not name a type; did you mean 'Vector'? 8867 | vector boolean_buttons; | ^~~~~~ | Vector callbacks.cc:8868:9: error: 'vector' does not name a type; did you mean 'Vector'? 8868 | vector boolean_index; | ^~~~~~ | Vector callbacks.cc:8874:1: error: 'unordered_map' does not name a type 8874 | unordered_map function_dialogs; | ^~~~~~~~~~~~~ callbacks.cc: In function 'void insert_function_do(MathFunction*, FunctionDialog*)': callbacks.cc:8877:9: error: 'string' was not declared in this scope 8877 | string str = f->preferredInputName(printops.abbreviate_names, printops.use_unicode_signs, false, false, &can_display_unicode_string_function, (void*) expressiontext).name + "(", str2; | ^~~~~~ callbacks.cc:8877:9: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:8882:31: error: expected ';' before 'defstr' 8882 | string defstr = f->getDefaultValue(argcount); | ^~~~~~~ | ; callbacks.cc:8883:43: error: 'defstr' was not declared in this scope; did you mean 'eqstr'? 8883 | remove_blank_ends(defstr); | ^~~~~~ | eqstr In file included from /usr/include/glib-2.0/gobject/gobject.h:26, from /usr/include/glib-2.0/gobject/gbinding.h:31, from /usr/include/glib-2.0/glib-object.h:24, from /usr/include/glib-2.0/gio/gioenums.h:30, from /usr/include/glib-2.0/gio/giotypes.h:30, from /usr/include/glib-2.0/gio/gio.h:28, from /usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:28, from /usr/include/gtk-3.0/gdk/gdk.h:32: callbacks.cc:8885:87: error: 'struct FunctionDialog' has no member named 'boolean_buttons' 8885 | if(gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(fd->boolean_buttons[fd->boolean_index[argcount - 1]]))) { | ^~~~~~~~~~~~~~~ /usr/include/glib-2.0/gobject/gtype.h:2505:66: note: in definition of macro '_G_TYPE_CIC' 2505 | ((ct*) (void *) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) | ^~ /usr/include/gtk-3.0/gtk/gtktogglebutton.h:39:50: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_CAST' 39 | #define GTK_TOGGLE_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TOGGLE_BUTTON, GtkToggleButton)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:8885:65: note: in expansion of macro 'GTK_TOGGLE_BUTTON' 8885 | if(gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(fd->boolean_buttons[fd->boolean_index[argcount - 1]]))) { | ^~~~~~~~~~~~~~~~~ callbacks.cc:8885:107: error: 'struct FunctionDialog' has no member named 'boolean_index' 8885 | if(gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(fd->boolean_buttons[fd->boolean_index[argcount - 1]]))) { | ^~~~~~~~~~~~~ /usr/include/glib-2.0/gobject/gtype.h:2505:66: note: in definition of macro '_G_TYPE_CIC' 2505 | ((ct*) (void *) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) | ^~ /usr/include/gtk-3.0/gtk/gtktogglebutton.h:39:50: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_CAST' 39 | #define GTK_TOGGLE_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TOGGLE_BUTTON, GtkToggleButton)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:8885:65: note: in expansion of macro 'GTK_TOGGLE_BUTTON' 8885 | if(gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(fd->boolean_buttons[fd->boolean_index[argcount - 1]]))) { | ^~~~~~~~~~~~~~~~~ callbacks.cc:8886:41: error: 'str2' was not declared in this scope 8886 | str2 = "1"; | ^~~~ callbacks.cc:8888:41: error: 'str2' was not declared in this scope 8888 | str2 = "0"; | ^~~~ callbacks.cc:8891:96: error: 'struct FunctionDialog' has no member named 'entry' 8891 | Number nr(gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(fd->entry[argcount - 1])), 1); | ^~~~~ /usr/include/glib-2.0/gobject/gtype.h:2505:66: note: in definition of macro '_G_TYPE_CIC' 2505 | ((ct*) (void *) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) | ^~ /usr/include/gtk-3.0/gtk/gtkspinbutton.h:42:48: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_CAST' 42 | #define GTK_SPIN_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SPIN_BUTTON, GtkSpinButton)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:8891:76: note: in expansion of macro 'GTK_SPIN_BUTTON' 8891 | Number nr(gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(fd->entry[argcount - 1])), 1); | ^~~~~~~~~~~~~~~ callbacks.cc:8895:33: error: 'str2' was not declared in this scope 8895 | str2 = nr.print(po); | ^~~~ callbacks.cc:8899:84: error: 'struct FunctionDialog' has no member named 'entry' 8899 | if(gtk_combo_box_get_active_iter(GTK_COMBO_BOX(fd->entry[argcount - 1]), &iter)) { | ^~~~~ /usr/include/glib-2.0/gobject/gtype.h:2505:66: note: in definition of macro '_G_TYPE_CIC' 2505 | ((ct*) (void *) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) | ^~ /usr/include/gtk-3.0/gtk/gtkcombobox.h:32:41: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_CAST' 32 | #define GTK_COMBO_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_COMBO_BOX, GtkComboBox)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:8899:66: note: in expansion of macro 'GTK_COMBO_BOX' 8899 | if(gtk_combo_box_get_active_iter(GTK_COMBO_BOX(fd->entry[argcount - 1]), &iter)) { | ^~~~~~~~~~~~~ callbacks.cc:8903:41: error: 'str2' was not declared in this scope 8903 | str2 = dp->getName(); | ^~~~ callbacks.cc:8905:41: error: 'str2' was not declared in this scope 8905 | str2 = "info"; | ^~~~ callbacks.cc:8908:33: error: 'str2' was not declared in this scope 8908 | str2 = gtk_entry_get_text(GTK_ENTRY(fd->entry[argcount - 1])); | ^~~~ callbacks.cc:8908:73: error: 'struct FunctionDialog' has no member named 'entry' 8908 | str2 = gtk_entry_get_text(GTK_ENTRY(fd->entry[argcount - 1])); | ^~~~~ /usr/include/glib-2.0/gobject/gtype.h:2505:66: note: in definition of macro '_G_TYPE_CIC' 2505 | ((ct*) (void *) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) | ^~ /usr/include/gtk-3.0/gtk/gtkentry.h:49:42: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_CAST' 49 | #define GTK_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_ENTRY, GtkEntry)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:8908:59: note: in expansion of macro 'GTK_ENTRY' 8908 | str2 = gtk_entry_get_text(GTK_ENTRY(fd->entry[argcount - 1])); | ^~~~~~~~~ callbacks.cc:8911:29: error: 'str2' was not declared in this scope 8911 | if(!str2.empty() && f->getArgumentDefinition(argcount) && (f->getArgumentDefinition(argcount)->suggestsQuotes() || (f->getArgumentDefinition(argcount)->type() == ARGUMENT_TYPE_TEXT && str2.find(CALCULATOR->getComma()) != string::npos))) { | ^~~~ callbacks.cc:8911:246: error: 'string' is not a class, namespace, or enumeration 8911 | if(!str2.empty() && f->getArgumentDefinition(argcount) && (f->getArgumentDefinition(argcount)->suggestsQuotes() || (f->getArgumentDefinition(argcount)->type() == ARGUMENT_TYPE_TEXT && str2.find(CALCULATOR->getComma()) != string::npos))) { | ^~~~~~ callbacks.cc:8912:77: error: 'str' was not declared in this scope; did you mean 'std'? 8912 | if(str2.length() < 1 || (str2[0] != '\"' && str[0] != '\'')) { | ^~~ | std callbacks.cc:8917:28: error: 'str2' was not declared in this scope 8917 | if(str2.empty() || str2 == defstr) argcount--; | ^~~~ callbacks.cc:8925:79: error: 'struct FunctionDialog' has no member named 'boolean_buttons' 8925 | if(gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(fd->boolean_buttons[fd->boolean_index[i]]))) { | ^~~~~~~~~~~~~~~ /usr/include/glib-2.0/gobject/gtype.h:2505:66: note: in definition of macro '_G_TYPE_CIC' 2505 | ((ct*) (void *) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) | ^~ /usr/include/gtk-3.0/gtk/gtktogglebutton.h:39:50: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_CAST' 39 | #define GTK_TOGGLE_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TOGGLE_BUTTON, GtkToggleButton)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:8925:57: note: in expansion of macro 'GTK_TOGGLE_BUTTON' 8925 | if(gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(fd->boolean_buttons[fd->boolean_index[i]]))) { | ^~~~~~~~~~~~~~~~~ callbacks.cc:8925:99: error: 'struct FunctionDialog' has no member named 'boolean_index' 8925 | if(gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(fd->boolean_buttons[fd->boolean_index[i]]))) { | ^~~~~~~~~~~~~ /usr/include/glib-2.0/gobject/gtype.h:2505:66: note: in definition of macro '_G_TYPE_CIC' 2505 | ((ct*) (void *) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) | ^~ /usr/include/gtk-3.0/gtk/gtktogglebutton.h:39:50: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_CAST' 39 | #define GTK_TOGGLE_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TOGGLE_BUTTON, GtkToggleButton)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:8925:57: note: in expansion of macro 'GTK_TOGGLE_BUTTON' 8925 | if(gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(fd->boolean_buttons[fd->boolean_index[i]]))) { | ^~~~~~~~~~~~~~~~~ callbacks.cc:8926:33: error: 'str2' was not declared in this scope 8926 | str2 = "1"; | ^~~~ callbacks.cc:8928:33: error: 'str2' was not declared in this scope 8928 | str2 = "0"; | ^~~~ callbacks.cc:8931:88: error: 'struct FunctionDialog' has no member named 'entry' 8931 | Number nr(gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(fd->entry[i])), 1); | ^~~~~ /usr/include/glib-2.0/gobject/gtype.h:2505:66: note: in definition of macro '_G_TYPE_CIC' 2505 | ((ct*) (void *) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) | ^~ /usr/include/gtk-3.0/gtk/gtkspinbutton.h:42:48: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_CAST' 42 | #define GTK_SPIN_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SPIN_BUTTON, GtkSpinButton)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:8931:68: note: in expansion of macro 'GTK_SPIN_BUTTON' 8931 | Number nr(gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(fd->entry[i])), 1); | ^~~~~~~~~~~~~~~ callbacks.cc:8935:25: error: 'str2' was not declared in this scope 8935 | str2 = nr.print(po); | ^~~~ callbacks.cc:8939:76: error: 'struct FunctionDialog' has no member named 'entry' 8939 | if(gtk_combo_box_get_active_iter(GTK_COMBO_BOX(fd->entry[i]), &iter)) { | ^~~~~ /usr/include/glib-2.0/gobject/gtype.h:2505:66: note: in definition of macro '_G_TYPE_CIC' 2505 | ((ct*) (void *) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) | ^~ /usr/include/gtk-3.0/gtk/gtkcombobox.h:32:41: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_CAST' 32 | #define GTK_COMBO_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_COMBO_BOX, GtkComboBox)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:8939:58: note: in expansion of macro 'GTK_COMBO_BOX' 8939 | if(gtk_combo_box_get_active_iter(GTK_COMBO_BOX(fd->entry[i]), &iter)) { | ^~~~~~~~~~~~~ callbacks.cc:8943:33: error: 'str2' was not declared in this scope 8943 | str2 = dp->getName(); | ^~~~ callbacks.cc:8945:33: error: 'str2' was not declared in this scope 8945 | str2 = "info"; | ^~~~ callbacks.cc:8948:25: error: 'str2' was not declared in this scope 8948 | str2 = gtk_entry_get_text(GTK_ENTRY(fd->entry[i])); | ^~~~ callbacks.cc:8948:65: error: 'struct FunctionDialog' has no member named 'entry' 8948 | str2 = gtk_entry_get_text(GTK_ENTRY(fd->entry[i])); | ^~~~~ /usr/include/glib-2.0/gobject/gtype.h:2505:66: note: in definition of macro '_G_TYPE_CIC' 2505 | ((ct*) (void *) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) | ^~ /usr/include/gtk-3.0/gtk/gtkentry.h:49:42: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_CAST' 49 | #define GTK_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_ENTRY, GtkEntry)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:8948:51: note: in expansion of macro 'GTK_ENTRY' 8948 | str2 = gtk_entry_get_text(GTK_ENTRY(fd->entry[i])); | ^~~~~~~~~ callbacks.cc:8951:42: error: 'str2' was not declared in this scope 8951 | if((i < f->minargs() || !str2.empty()) && f->getArgumentDefinition(i + 1) && (f->getArgumentDefinition(i + 1)->suggestsQuotes() || (f->getArgumentDefinition(i + 1)->type() == ARGUMENT_TYPE_TEXT && str2.find(CALCULATOR->getComma()) != string::npos))) { | ^~~~ callbacks.cc:8951:251: error: 'string' is not a class, namespace, or enumeration 8951 | if((i < f->minargs() || !str2.empty()) && f->getArgumentDefinition(i + 1) && (f->getArgumentDefinition(i + 1)->suggestsQuotes() || (f->getArgumentDefinition(i + 1)->type() == ARGUMENT_TYPE_TEXT && str2.find(CALCULATOR->getComma()) != string::npos))) { | ^~~~~~ callbacks.cc:8952:69: error: 'str' was not declared in this scope; did you mean 'std'? 8952 | if(str2.length() < 1 || (str2[0] != '\"' && str[0] != '\'')) { | ^~~ | std callbacks.cc:8958:25: error: 'str' was not declared in this scope; did you mean 'std'? 8958 | str += CALCULATOR->getComma(); | ^~~ | std callbacks.cc:8961:17: error: 'str' was not declared in this scope; did you mean 'std'? 8961 | str += str2; | ^~~ | std callbacks.cc:8961:24: error: 'str2' was not declared in this scope 8961 | str += str2; | ^~~~ callbacks.cc:8963:9: error: 'str' was not declared in this scope; did you mean 'std'? 8963 | str += ")"; | ^~~ | std callbacks.cc: In function 'void on_insert_function_delete(GtkWidget*, GdkEvent*, gpointer)': callbacks.cc:8970:30: error: 'function_dialogs' was not declared in this scope; did you mean 'FunctionDialog'? 8970 | FunctionDialog *fd = function_dialogs[f]; | ^~~~~~~~~~~~~~~~ | FunctionDialog callbacks.cc: In function 'void on_insert_function_close(GtkWidget*, gpointer)': callbacks.cc:8977:30: error: 'function_dialogs' was not declared in this scope; did you mean 'FunctionDialog'? 8977 | FunctionDialog *fd = function_dialogs[f]; | ^~~~~~~~~~~~~~~~ | FunctionDialog callbacks.cc: In function 'void on_insert_function_exec(GtkWidget*, gpointer)': callbacks.cc:8984:30: error: 'function_dialogs' was not declared in this scope; did you mean 'FunctionDialog'? 8984 | FunctionDialog *fd = function_dialogs[f]; | ^~~~~~~~~~~~~~~~ | FunctionDialog callbacks.cc:8990:17: error: 'string' was not declared in this scope 8990 | string str; | ^~~~~~ callbacks.cc:8990:17: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:8993:25: error: 'str' was not declared in this scope; did you mean 'std'? 8993 | str = "="; | ^~~ | std callbacks.cc:8996:33: error: 'str' was not declared in this scope; did you mean 'std'? 8996 | str = SIGN_ALMOST_EQUAL; | ^~~ | std callbacks.cc:8998:33: error: 'str' was not declared in this scope; did you mean 'std'? 8998 | str = "= "; | ^~~ | std callbacks.cc:9002:17: error: 'str' was not declared in this scope; did you mean 'std'? 9002 | str += " "; | ^~~ | std callbacks.cc:9003:43: error: 'result_text' was not declared in this scope 9003 | str += fix_history_string(result_text); | ^~~~~~~~~~~ callbacks.cc:9003:24: error: 'fix_history_string' was not declared in this scope 9003 | str += fix_history_string(result_text); | ^~~~~~~~~~~~~~~~~~ callbacks.cc:9006:43: error: 'struct FunctionDialog' has no member named 'entry' 9006 | gtk_widget_grab_focus(fd->entry[0]); | ^~~~~ callbacks.cc: In function 'void on_insert_function_insert(GtkWidget*, gpointer)': callbacks.cc:9015:30: error: 'function_dialogs' was not declared in this scope; did you mean 'FunctionDialog'? 9015 | FunctionDialog *fd = function_dialogs[f]; | ^~~~~~~~~~~~~~~~ | FunctionDialog callbacks.cc:9019:43: error: 'struct FunctionDialog' has no member named 'entry' 9019 | gtk_widget_grab_focus(fd->entry[0]); | ^~~~~ callbacks.cc: In function 'void on_insert_function_keepopen(GtkToggleButton*, gpointer)': callbacks.cc:9028:30: error: 'function_dialogs' was not declared in this scope; did you mean 'FunctionDialog'? 9028 | FunctionDialog *fd = function_dialogs[f]; | ^~~~~~~~~~~~~~~~ | FunctionDialog callbacks.cc: In function 'void on_insert_function_changed(GtkWidget*, gpointer)': callbacks.cc:9034:30: error: 'function_dialogs' was not declared in this scope; did you mean 'FunctionDialog'? 9034 | FunctionDialog *fd = function_dialogs[f]; | ^~~~~~~~~~~~~~~~ | FunctionDialog callbacks.cc: In function 'void on_insert_function_entry_activated(GtkWidget*, gpointer)': callbacks.cc:9039:30: error: 'function_dialogs' was not declared in this scope; did you mean 'FunctionDialog'? 9039 | FunctionDialog *fd = function_dialogs[f]; | ^~~~~~~~~~~~~~~~ | FunctionDialog callbacks.cc:9041:24: error: 'struct FunctionDialog' has no member named 'entry' 9041 | if(fd->entry[i] == w) { | ^~~~~ callbacks.cc:9047:67: error: 'struct FunctionDialog' has no member named 'boolean_buttons' 9047 | gtk_widget_grab_focus(fd->boolean_buttons[fd->boolean_index[i + 1]]); | ^~~~~~~~~~~~~~~ callbacks.cc:9047:87: error: 'struct FunctionDialog' has no member named 'boolean_index' 9047 | gtk_widget_grab_focus(fd->boolean_buttons[fd->boolean_index[i + 1]]); | ^~~~~~~~~~~~~ callbacks.cc:9049:67: error: 'struct FunctionDialog' has no member named 'entry' 9049 | gtk_widget_grab_focus(fd->entry[i + 1]); | ^~~~~ callbacks.cc: In function 'void insert_function(MathFunction*, GtkWidget*, bool)': callbacks.cc:9070:17: error: 'string' was not declared in this scope 9070 | string str = f->preferredInputName(printops.abbreviate_names, printops.use_unicode_signs, false, false, &can_display_unicode_string_function, (void*) expressiontext).name + "()"; | ^~~~~~ callbacks.cc:9070:17: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:9071:40: error: 'str' was not declared in this scope; did you mean 'gstr'? 9071 | gchar *gstr = g_strdup(str.c_str()); | ^~~ | gstr callbacks.cc:9081:12: error: 'function_dialogs' was not declared in this scope; did you mean 'FunctionDialog'? 9081 | if(function_dialogs.find(f) != function_dialogs.end()) { | ^~~~~~~~~~~~~~~~ | FunctionDialog callbacks.cc:9088:80: error: 'struct FunctionDialog' has no member named 'entry' 9088 | g_signal_handlers_block_matched((gpointer) fd->entry[0], G_SIGNAL_MATCH_FUNC, 0, 0, NULL, (gpointer) on_insert_function_changed, NULL); | ^~~~~ callbacks.cc:9090:66: error: 'struct FunctionDialog' has no member named 'entry' 9090 | gtk_entry_set_text(GTK_ENTRY(fd->entry[0]), get_selected_expression_text(true).c_str()); | ^~~~~ /usr/include/glib-2.0/gobject/gtype.h:2505:66: note: in definition of macro '_G_TYPE_CIC' 2505 | ((ct*) (void *) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) | ^~ /usr/include/gtk-3.0/gtk/gtkentry.h:49:42: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_CAST' 49 | #define GTK_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_ENTRY, GtkEntry)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:9090:52: note: in expansion of macro 'GTK_ENTRY' 9090 | gtk_entry_set_text(GTK_ENTRY(fd->entry[0]), get_selected_expression_text(true).c_str()); | ^~~~~~~~~ callbacks.cc:9090:77: error: 'get_selected_expression_text' was not declared in this scope; did you mean 'set_expression_text'? 9090 | gtk_entry_set_text(GTK_ENTRY(fd->entry[0]), get_selected_expression_text(true).c_str()); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | set_expression_text callbacks.cc:9092:84: error: 'struct FunctionDialog' has no member named 'entry' 9092 | gtk_spin_button_update(GTK_SPIN_BUTTON(fd->entry[0])); | ^~~~~ /usr/include/glib-2.0/gobject/gtype.h:2505:66: note: in definition of macro '_G_TYPE_CIC' 2505 | ((ct*) (void *) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) | ^~ /usr/include/gtk-3.0/gtk/gtkspinbutton.h:42:48: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_CAST' 42 | #define GTK_SPIN_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SPIN_BUTTON, GtkSpinButton)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:9092:64: note: in expansion of macro 'GTK_SPIN_BUTTON' 9092 | gtk_spin_button_update(GTK_SPIN_BUTTON(fd->entry[0])); | ^~~~~~~~~~~~~~~ callbacks.cc:9094:82: error: 'struct FunctionDialog' has no member named 'entry' 9094 | g_signal_handlers_unblock_matched((gpointer) fd->entry[0], G_SIGNAL_MATCH_FUNC, 0, 0, NULL, (gpointer) on_insert_function_changed, NULL); | ^~~~~ callbacks.cc:9096:51: error: 'struct FunctionDialog' has no member named 'entry' 9096 | gtk_widget_grab_focus(fd->entry[0]); | ^~~~~ callbacks.cc:9104:9: error: 'function_dialogs' was not declared in this scope; did you mean 'FunctionDialog'? 9104 | function_dialogs[f] = fd; | ^~~~~~~~~~~~~~~~ | FunctionDialog callbacks.cc:9108:9: error: 'string' was not declared in this scope 9108 | string f_title = f->title(true); | ^~~~~~ callbacks.cc:9108:9: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:9110:54: error: 'f_title' was not declared in this scope 9110 | gtk_window_set_title(GTK_WINDOW(fd->dialog), f_title.c_str()); | ^~~~~~~ callbacks.cc:9158:13: error: 'struct FunctionDialog' has no member named 'label' 9158 | fd->label.resize(args, NULL); | ^~~~~ callbacks.cc:9159:13: error: 'struct FunctionDialog' has no member named 'entry' 9159 | fd->entry.resize(args, NULL); | ^~~~~ callbacks.cc:9160:13: error: 'struct FunctionDialog' has no member named 'type_label' 9160 | fd->type_label.resize(args, NULL); | ^~~~~~~~~~ callbacks.cc:9161:13: error: 'struct FunctionDialog' has no member named 'boolean_index' 9161 | fd->boolean_index.resize(args, 0); | ^~~~~~~~~~~~~ callbacks.cc:9177:15: error: expected ';' before 'argstr' 9177 | string argstr, typestr, defstr; | ^~~~~~~ | ; callbacks.cc:9178:15: error: expected ';' before 'argtype' 9178 | string argtype; | ^~~~~~~~ | ; callbacks.cc:9186:33: error: 'argstr' was not declared in this scope; did you mean 'args'? 9186 | argstr = _("Value"); | ^~~~~~ | args callbacks.cc:9188:33: error: 'argstr' was not declared in this scope; did you mean 'args'? 9188 | argstr = _("Argument"); | ^~~~~~ | args callbacks.cc:9193:25: error: 'argstr' was not declared in this scope; did you mean 'args'? 9193 | argstr = arg->name(); | ^~~~~~ | args callbacks.cc:9195:17: error: 'typestr' was not declared in this scope 9195 | typestr = ""; | ^~~~~~~ callbacks.cc:9196:17: error: 'argtype' was not declared in this scope 9196 | argtype = ""; | ^~~~~~~ callbacks.cc:9197:17: error: 'defstr' was not declared in this scope; did you mean 'eqstr'? 9197 | defstr = f->getDefaultValue(i + 1); | ^~~~~~ | eqstr callbacks.cc:9201:21: error: 'struct FunctionDialog' has no member named 'label' 9201 | fd->label[i] = gtk_label_new(argstr.c_str()); | ^~~~~ callbacks.cc:9201:46: error: 'argstr' was not declared in this scope; did you mean 'args'? 9201 | fd->label[i] = gtk_label_new(argstr.c_str()); | ^~~~~~ | args callbacks.cc:9202:43: error: 'struct FunctionDialog' has no member named 'label' 9202 | gtk_widget_set_halign(fd->label[i], GTK_ALIGN_END); | ^~~~~ callbacks.cc:9203:44: error: 'struct FunctionDialog' has no member named 'label' 9203 | gtk_widget_set_hexpand(fd->label[i], FALSE); | ^~~~~ callbacks.cc:9215:45: error: 'struct FunctionDialog' has no member named 'entry' 9215 | fd->entry[i] = gtk_spin_button_new_with_range(min, max, 1); | ^~~~~ callbacks.cc:9216:89: error: 'struct FunctionDialog' has no member named 'entry' 9216 | gtk_spin_button_set_numeric(GTK_SPIN_BUTTON(fd->entry[i]), FALSE); | ^~~~~ /usr/include/glib-2.0/gobject/gtype.h:2505:66: note: in definition of macro '_G_TYPE_CIC' 2505 | ((ct*) (void *) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) | ^~ /usr/include/gtk-3.0/gtk/gtkspinbutton.h:42:48: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_CAST' 42 | #define GTK_SPIN_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SPIN_BUTTON, GtkSpinButton)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:9216:69: note: in expansion of macro 'GTK_SPIN_BUTTON' 9216 | gtk_spin_button_set_numeric(GTK_SPIN_BUTTON(fd->entry[i]), FALSE); | ^~~~~~~~~~~~~~~ callbacks.cc:9217:79: error: 'struct FunctionDialog' has no member named 'entry' 9217 | gtk_entry_set_alignment(GTK_ENTRY(fd->entry[i]), 1.0); | ^~~~~ /usr/include/glib-2.0/gobject/gtype.h:2505:66: note: in definition of macro '_G_TYPE_CIC' 2505 | ((ct*) (void *) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) | ^~ /usr/include/gtk-3.0/gtk/gtkentry.h:49:42: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_CAST' 49 | #define GTK_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_ENTRY, GtkEntry)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:9217:65: note: in expansion of macro 'GTK_ENTRY' 9217 | gtk_entry_set_alignment(GTK_ENTRY(fd->entry[i]), 1.0); | ^~~~~~~~~ In file included from /usr/include/glib-2.0/gobject/gobject.h:30: callbacks.cc:9218:78: error: 'struct FunctionDialog' has no member named 'entry' 9218 | g_signal_connect(GTK_SPIN_BUTTON(fd->entry[i]), "input", G_CALLBACK(on_function_int_input), NULL); | ^~~~~ /usr/include/glib-2.0/gobject/gsignal.h:515:29: note: in definition of macro 'g_signal_connect' 515 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) | ^~~~~~~~ /usr/include/glib-2.0/gobject/gtype.h:503:66: note: in expansion of macro '_G_TYPE_CIC' 503 | #define G_TYPE_CHECK_INSTANCE_CAST(instance, g_type, c_type) (_G_TYPE_CIC ((instance), (g_type), c_type)) | ^~~~~~~~~~~ /usr/include/gtk-3.0/gtk/gtkspinbutton.h:42:48: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_CAST' 42 | #define GTK_SPIN_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SPIN_BUTTON, GtkSpinButton)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:9218:58: note: in expansion of macro 'GTK_SPIN_BUTTON' 9218 | g_signal_connect(GTK_SPIN_BUTTON(fd->entry[i]), "input", G_CALLBACK(on_function_int_input), NULL); | ^~~~~~~~~~~~~~~ callbacks.cc:9220:95: error: 'struct FunctionDialog' has no member named 'entry' 9220 | gtk_spin_button_set_value(GTK_SPIN_BUTTON(fd->entry[i]), s2i(f->getDefaultValue(i + 1))); | ^~~~~ /usr/include/glib-2.0/gobject/gtype.h:2505:66: note: in definition of macro '_G_TYPE_CIC' 2505 | ((ct*) (void *) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) | ^~ /usr/include/gtk-3.0/gtk/gtkspinbutton.h:42:48: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_CAST' 42 | #define GTK_SPIN_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SPIN_BUTTON, GtkSpinButton)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:9220:75: note: in expansion of macro 'GTK_SPIN_BUTTON' 9220 | gtk_spin_button_set_value(GTK_SPIN_BUTTON(fd->entry[i]), s2i(f->getDefaultValue(i + 1))); | ^~~~~~~~~~~~~~~ callbacks.cc:9222:95: error: 'struct FunctionDialog' has no member named 'entry' 9222 | gtk_spin_button_set_value(GTK_SPIN_BUTTON(fd->entry[i]), 0); | ^~~~~ /usr/include/glib-2.0/gobject/gtype.h:2505:66: note: in definition of macro '_G_TYPE_CIC' 2505 | ((ct*) (void *) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) | ^~ /usr/include/gtk-3.0/gtk/gtkspinbutton.h:42:48: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_CAST' 42 | #define GTK_SPIN_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SPIN_BUTTON, GtkSpinButton)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:9222:75: note: in expansion of macro 'GTK_SPIN_BUTTON' 9222 | gtk_spin_button_set_value(GTK_SPIN_BUTTON(fd->entry[i]), 0); | ^~~~~~~~~~~~~~~ callbacks.cc:9225:103: error: 'struct FunctionDialog' has no member named 'entry' 9225 | gtk_spin_button_set_value(GTK_SPIN_BUTTON(fd->entry[i]), max); | ^~~~~ /usr/include/glib-2.0/gobject/gtype.h:2505:66: note: in definition of macro '_G_TYPE_CIC' 2505 | ((ct*) (void *) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) | ^~ /usr/include/gtk-3.0/gtk/gtkspinbutton.h:42:48: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_CAST' 42 | #define GTK_SPIN_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SPIN_BUTTON, GtkSpinButton)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:9225:83: note: in expansion of macro 'GTK_SPIN_BUTTON' 9225 | gtk_spin_button_set_value(GTK_SPIN_BUTTON(fd->entry[i]), max); | ^~~~~~~~~~~~~~~ callbacks.cc:9227:103: error: 'struct FunctionDialog' has no member named 'entry' 9227 | gtk_spin_button_set_value(GTK_SPIN_BUTTON(fd->entry[i]), 1); | ^~~~~ /usr/include/glib-2.0/gobject/gtype.h:2505:66: note: in definition of macro '_G_TYPE_CIC' 2505 | ((ct*) (void *) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) | ^~ /usr/include/gtk-3.0/gtk/gtkspinbutton.h:42:48: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_CAST' 42 | #define GTK_SPIN_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SPIN_BUTTON, GtkSpinButton)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:9227:83: note: in expansion of macro 'GTK_SPIN_BUTTON' 9227 | gtk_spin_button_set_value(GTK_SPIN_BUTTON(fd->entry[i]), 1); | ^~~~~~~~~~~~~~~ callbacks.cc:9229:103: error: 'struct FunctionDialog' has no member named 'entry' 9229 | gtk_spin_button_set_value(GTK_SPIN_BUTTON(fd->entry[i]), min); | ^~~~~ /usr/include/glib-2.0/gobject/gtype.h:2505:66: note: in definition of macro '_G_TYPE_CIC' 2505 | ((ct*) (void *) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) | ^~ /usr/include/gtk-3.0/gtk/gtkspinbutton.h:42:48: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_CAST' 42 | #define GTK_SPIN_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SPIN_BUTTON, GtkSpinButton)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:9229:83: note: in expansion of macro 'GTK_SPIN_BUTTON' 9229 | gtk_spin_button_set_value(GTK_SPIN_BUTTON(fd->entry[i]), min); | ^~~~~~~~~~~~~~~ callbacks.cc:9232:73: error: 'struct FunctionDialog' has no member named 'entry' 9232 | g_signal_connect((gpointer) fd->entry[i], "changed", G_CALLBACK(on_insert_function_changed), (gpointer) f); | ^~~~~ /usr/include/glib-2.0/gobject/gsignal.h:515:29: note: in definition of macro 'g_signal_connect' 515 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) | ^~~~~~~~ callbacks.cc:9233:73: error: 'struct FunctionDialog' has no member named 'entry' 9233 | g_signal_connect((gpointer) fd->entry[i], "activate", G_CALLBACK(on_insert_function_entry_activated), (gpointer) f); | ^~~~~ /usr/include/glib-2.0/gobject/gsignal.h:515:29: note: in definition of macro 'g_signal_connect' 515 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) | ^~~~~~~~ callbacks.cc:9237:45: error: 'struct FunctionDialog' has no member named 'boolean_index' 9237 | fd->boolean_index[i] = bindex; | ^~~~~~~~~~~~~ callbacks.cc:9239:45: error: 'struct FunctionDialog' has no member named 'entry' 9239 | fd->entry[i] = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); | ^~~~~ callbacks.cc:9240:77: error: 'struct FunctionDialog' has no member named 'entry' 9240 | gtk_box_set_homogeneous(GTK_BOX(fd->entry[i]), TRUE); | ^~~~~ /usr/include/glib-2.0/gobject/gtype.h:2505:66: note: in definition of macro '_G_TYPE_CIC' 2505 | ((ct*) (void *) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) | ^~ /usr/include/gtk-3.0/gtk/gtkbox.h:40:34: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_CAST' 40 | #define GTK_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_BOX, GtkBox)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:9240:65: note: in expansion of macro 'GTK_BOX' 9240 | gtk_box_set_homogeneous(GTK_BOX(fd->entry[i]), TRUE); | ^~~~~~~ callbacks.cc:9241:67: error: 'struct FunctionDialog' has no member named 'entry' 9241 | gtk_widget_set_halign(fd->entry[i], GTK_ALIGN_START); | ^~~~~ callbacks.cc:9242:45: error: 'struct FunctionDialog' has no member named 'boolean_buttons' 9242 | fd->boolean_buttons.push_back(gtk_radio_button_new_with_label(NULL, _("True"))); | ^~~~~~~~~~~~~~~ callbacks.cc:9243:72: error: 'struct FunctionDialog' has no member named 'entry' 9243 | gtk_box_pack_start(GTK_BOX(fd->entry[i]), fd->boolean_buttons[fd->boolean_buttons.size() - 1], TRUE, TRUE, 0); | ^~~~~ /usr/include/glib-2.0/gobject/gtype.h:2505:66: note: in definition of macro '_G_TYPE_CIC' 2505 | ((ct*) (void *) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) | ^~ /usr/include/gtk-3.0/gtk/gtkbox.h:40:34: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_CAST' 40 | #define GTK_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_BOX, GtkBox)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:9243:60: note: in expansion of macro 'GTK_BOX' 9243 | gtk_box_pack_start(GTK_BOX(fd->entry[i]), fd->boolean_buttons[fd->boolean_buttons.size() - 1], TRUE, TRUE, 0); | ^~~~~~~ callbacks.cc:9243:87: error: 'struct FunctionDialog' has no member named 'boolean_buttons' 9243 | gtk_box_pack_start(GTK_BOX(fd->entry[i]), fd->boolean_buttons[fd->boolean_buttons.size() - 1], TRUE, TRUE, 0); | ^~~~~~~~~~~~~~~ callbacks.cc:9243:107: error: 'struct FunctionDialog' has no member named 'boolean_buttons' 9243 | gtk_box_pack_start(GTK_BOX(fd->entry[i]), fd->boolean_buttons[fd->boolean_buttons.size() - 1], TRUE, TRUE, 0); | ^~~~~~~~~~~~~~~ callbacks.cc:9244:45: error: 'struct FunctionDialog' has no member named 'boolean_buttons' 9244 | fd->boolean_buttons.push_back(gtk_radio_button_new_with_label_from_widget(GTK_RADIO_BUTTON(fd->boolean_buttons[fd->boolean_buttons.size() - 1]), _("False"))); | ^~~~~~~~~~~~~~~ callbacks.cc:9244:136: error: 'struct FunctionDialog' has no member named 'boolean_buttons' 9244 | fd->boolean_buttons.push_back(gtk_radio_button_new_with_label_from_widget(GTK_RADIO_BUTTON(fd->boolean_buttons[fd->boolean_buttons.size() - 1]), _("False"))); | ^~~~~~~~~~~~~~~ /usr/include/glib-2.0/gobject/gtype.h:2505:66: note: in definition of macro '_G_TYPE_CIC' 2505 | ((ct*) (void *) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) | ^~ /usr/include/gtk-3.0/gtk/gtkradiobutton.h:39:49: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_CAST' 39 | #define GTK_RADIO_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_RADIO_BUTTON, GtkRadioButton)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:9244:115: note: in expansion of macro 'GTK_RADIO_BUTTON' 9244 | fd->boolean_buttons.push_back(gtk_radio_button_new_with_label_from_widget(GTK_RADIO_BUTTON(fd->boolean_buttons[fd->boolean_buttons.size() - 1]), _("False"))); | ^~~~~~~~~~~~~~~~ callbacks.cc:9244:156: error: 'struct FunctionDialog' has no member named 'boolean_buttons' 9244 | fd->boolean_buttons.push_back(gtk_radio_button_new_with_label_from_widget(GTK_RADIO_BUTTON(fd->boolean_buttons[fd->boolean_buttons.size() - 1]), _("False"))); | ^~~~~~~~~~~~~~~ /usr/include/glib-2.0/gobject/gtype.h:2505:66: note: in definition of macro '_G_TYPE_CIC' 2505 | ((ct*) (void *) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) | ^~ /usr/include/gtk-3.0/gtk/gtkradiobutton.h:39:49: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_CAST' 39 | #define GTK_RADIO_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_RADIO_BUTTON, GtkRadioButton)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:9244:115: note: in expansion of macro 'GTK_RADIO_BUTTON' 9244 | fd->boolean_buttons.push_back(gtk_radio_button_new_with_label_from_widget(GTK_RADIO_BUTTON(fd->boolean_buttons[fd->boolean_buttons.size() - 1]), _("False"))); | ^~~~~~~~~~~~~~~~ callbacks.cc:9245:70: error: 'struct FunctionDialog' has no member named 'entry' 9245 | gtk_box_pack_end(GTK_BOX(fd->entry[i]), fd->boolean_buttons[fd->boolean_buttons.size() - 1], TRUE, TRUE, 0); | ^~~~~ /usr/include/glib-2.0/gobject/gtype.h:2505:66: note: in definition of macro '_G_TYPE_CIC' 2505 | ((ct*) (void *) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) | ^~ /usr/include/gtk-3.0/gtk/gtkbox.h:40:34: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_CAST' 40 | #define GTK_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_BOX, GtkBox)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:9245:58: note: in expansion of macro 'GTK_BOX' 9245 | gtk_box_pack_end(GTK_BOX(fd->entry[i]), fd->boolean_buttons[fd->boolean_buttons.size() - 1], TRUE, TRUE, 0); | ^~~~~~~ callbacks.cc:9245:85: error: 'struct FunctionDialog' has no member named 'boolean_buttons' 9245 | gtk_box_pack_end(GTK_BOX(fd->entry[i]), fd->boolean_buttons[fd->boolean_buttons.size() - 1], TRUE, TRUE, 0); | ^~~~~~~~~~~~~~~ callbacks.cc:9245:105: error: 'struct FunctionDialog' has no member named 'boolean_buttons' 9245 | gtk_box_pack_end(GTK_BOX(fd->entry[i]), fd->boolean_buttons[fd->boolean_buttons.size() - 1], TRUE, TRUE, 0); | ^~~~~~~~~~~~~~~ callbacks.cc:9246:92: error: 'struct FunctionDialog' has no member named 'boolean_buttons' 9246 | gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(fd->boolean_buttons[fd->boolean_buttons.size() - 1]), TRUE); | ^~~~~~~~~~~~~~~ /usr/include/glib-2.0/gobject/gtype.h:2505:66: note: in definition of macro '_G_TYPE_CIC' 2505 | ((ct*) (void *) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) | ^~ /usr/include/gtk-3.0/gtk/gtktogglebutton.h:39:50: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_CAST' 39 | #define GTK_TOGGLE_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TOGGLE_BUTTON, GtkToggleButton)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:9246:70: note: in expansion of macro 'GTK_TOGGLE_BUTTON' 9246 | gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(fd->boolean_buttons[fd->boolean_buttons.size() - 1]), TRUE); | ^~~~~~~~~~~~~~~~~ callbacks.cc:9246:112: error: 'struct FunctionDialog' has no member named 'boolean_buttons' 9246 | gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(fd->boolean_buttons[fd->boolean_buttons.size() - 1]), TRUE); | ^~~~~~~~~~~~~~~ /usr/include/glib-2.0/gobject/gtype.h:2505:66: note: in definition of macro '_G_TYPE_CIC' 2505 | ((ct*) (void *) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) | ^~ /usr/include/gtk-3.0/gtk/gtktogglebutton.h:39:50: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_CAST' 39 | #define GTK_TOGGLE_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TOGGLE_BUTTON, GtkToggleButton)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:9246:70: note: in expansion of macro 'GTK_TOGGLE_BUTTON' 9246 | gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(fd->boolean_buttons[fd->boolean_buttons.size() - 1]), TRUE); | ^~~~~~~~~~~~~~~~~ callbacks.cc:9247:73: error: 'struct FunctionDialog' has no member named 'boolean_buttons' 9247 | g_signal_connect((gpointer) fd->boolean_buttons[fd->boolean_buttons.size() - 1], "toggled", G_CALLBACK(on_insert_function_changed), (gpointer) f); | ^~~~~~~~~~~~~~~ /usr/include/glib-2.0/gobject/gsignal.h:515:29: note: in definition of macro 'g_signal_connect' 515 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) | ^~~~~~~~ callbacks.cc:9247:93: error: 'struct FunctionDialog' has no member named 'boolean_buttons' 9247 | g_signal_connect((gpointer) fd->boolean_buttons[fd->boolean_buttons.size() - 1], "toggled", G_CALLBACK(on_insert_function_changed), (gpointer) f); | ^~~~~~~~~~~~~~~ /usr/include/glib-2.0/gobject/gsignal.h:515:29: note: in definition of macro 'g_signal_connect' 515 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) | ^~~~~~~~ callbacks.cc:9248:73: error: 'struct FunctionDialog' has no member named 'boolean_buttons' 9248 | g_signal_connect((gpointer) fd->boolean_buttons[fd->boolean_buttons.size() - 2], "toggled", G_CALLBACK(on_insert_function_changed), (gpointer) f); | ^~~~~~~~~~~~~~~ /usr/include/glib-2.0/gobject/gsignal.h:515:29: note: in definition of macro 'g_signal_connect' 515 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) | ^~~~~~~~ callbacks.cc:9248:93: error: 'struct FunctionDialog' has no member named 'boolean_buttons' 9248 | g_signal_connect((gpointer) fd->boolean_buttons[fd->boolean_buttons.size() - 2], "toggled", G_CALLBACK(on_insert_function_changed), (gpointer) f); | ^~~~~~~~~~~~~~~ /usr/include/glib-2.0/gobject/gsignal.h:515:29: note: in definition of macro 'g_signal_connect' 515 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) | ^~~~~~~~ callbacks.cc:9256:53: error: 'struct FunctionDialog' has no member named 'entry' 9256 | fd->entry[i] = gtk_combo_box_new_with_model(GTK_TREE_MODEL(fd->properties_store)); | ^~~~~ callbacks.cc:9258:96: error: 'struct FunctionDialog' has no member named 'entry' 9258 | gtk_cell_layout_pack_start(GTK_CELL_LAYOUT(fd->entry[i]), cell, TRUE); | ^~~~~ /usr/include/glib-2.0/gobject/gtype.h:2505:66: note: in definition of macro '_G_TYPE_CIC' 2505 | ((ct*) (void *) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) | ^~ /usr/include/gtk-3.0/gtk/gtkcelllayout.h:33:42: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_CAST' 33 | #define GTK_CELL_LAYOUT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CELL_LAYOUT, GtkCellLayout)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:9258:76: note: in expansion of macro 'GTK_CELL_LAYOUT' 9258 | gtk_cell_layout_pack_start(GTK_CELL_LAYOUT(fd->entry[i]), cell, TRUE); | ^~~~~~~~~~~~~~~ callbacks.cc:9259:99: error: 'struct FunctionDialog' has no member named 'entry' 9259 | gtk_cell_layout_add_attribute(GTK_CELL_LAYOUT(fd->entry[i]), cell, "text", 0); | ^~~~~ /usr/include/glib-2.0/gobject/gtype.h:2505:66: note: in definition of macro '_G_TYPE_CIC' 2505 | ((ct*) (void *) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) | ^~ /usr/include/gtk-3.0/gtk/gtkcelllayout.h:33:42: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_CAST' 33 | #define GTK_CELL_LAYOUT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CELL_LAYOUT, GtkCellLayout)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:9259:79: note: in expansion of macro 'GTK_CELL_LAYOUT' 9259 | gtk_cell_layout_add_attribute(GTK_CELL_LAYOUT(fd->entry[i]), cell, "text", 0); | ^~~~~~~~~~~~~~~ callbacks.cc:9269:121: error: 'struct FunctionDialog' has no member named 'entry' 9269 | gtk_combo_box_set_active_iter(GTK_COMBO_BOX(fd->entry[i]), &iter); | ^~~~~ /usr/include/glib-2.0/gobject/gtype.h:2505:66: note: in definition of macro '_G_TYPE_CIC' 2505 | ((ct*) (void *) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) | ^~ /usr/include/gtk-3.0/gtk/gtkcombobox.h:32:41: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_CAST' 32 | #define GTK_COMBO_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_COMBO_BOX, GtkComboBox)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:9269:103: note: in expansion of macro 'GTK_COMBO_BOX' 9269 | gtk_combo_box_set_active_iter(GTK_COMBO_BOX(fd->entry[i]), &iter); | ^~~~~~~~~~~~~ callbacks.cc:9278:105: error: 'struct FunctionDialog' has no member named 'entry' 9278 | gtk_combo_box_set_active_iter(GTK_COMBO_BOX(fd->entry[i]), &iter); | ^~~~~ /usr/include/glib-2.0/gobject/gtype.h:2505:66: note: in definition of macro '_G_TYPE_CIC' 2505 | ((ct*) (void *) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) | ^~ /usr/include/gtk-3.0/gtk/gtkcombobox.h:32:41: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_CAST' 32 | #define GTK_COMBO_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_COMBO_BOX, GtkComboBox)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:9278:87: note: in expansion of macro 'GTK_COMBO_BOX' 9278 | gtk_combo_box_set_active_iter(GTK_COMBO_BOX(fd->entry[i]), &iter); | ^~~~~~~~~~~~~ callbacks.cc:9281:81: error: 'struct FunctionDialog' has no member named 'entry' 9281 | g_signal_connect((gpointer) fd->entry[i], "changed", G_CALLBACK(on_insert_function_changed), (gpointer) f); | ^~~~~ /usr/include/glib-2.0/gobject/gsignal.h:515:29: note: in definition of macro 'g_signal_connect' 515 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) | ^~~~~~~~ callbacks.cc:9293:45: error: 'struct FunctionDialog' has no member named 'entry' 9293 | fd->entry[i] = gtk_entry_new(); | ^~~~~ callbacks.cc:9295:94: error: 'struct FunctionDialog' has no member named 'entry' 9295 | gtk_entry_set_placeholder_text(GTK_ENTRY(fd->entry[i]), _("optional")); | ^~~~~ /usr/include/glib-2.0/gobject/gtype.h:2505:66: note: in definition of macro '_G_TYPE_CIC' 2505 | ((ct*) (void *) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) | ^~ /usr/include/gtk-3.0/gtk/gtkentry.h:49:42: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_CAST' 49 | #define GTK_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_ENTRY, GtkEntry)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:9295:80: note: in expansion of macro 'GTK_ENTRY' 9295 | gtk_entry_set_placeholder_text(GTK_ENTRY(fd->entry[i]), _("optional")); | ^~~~~~~~~ callbacks.cc:9297:79: error: 'struct FunctionDialog' has no member named 'entry' 9297 | gtk_entry_set_alignment(GTK_ENTRY(fd->entry[i]), 1.0); | ^~~~~ /usr/include/glib-2.0/gobject/gtype.h:2505:66: note: in definition of macro '_G_TYPE_CIC' 2505 | ((ct*) (void *) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) | ^~ /usr/include/gtk-3.0/gtk/gtkentry.h:49:42: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_CAST' 49 | #define GTK_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_ENTRY, GtkEntry)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:9297:65: note: in expansion of macro 'GTK_ENTRY' 9297 | gtk_entry_set_alignment(GTK_ENTRY(fd->entry[i]), 1.0); | ^~~~~~~~~ callbacks.cc:9298:73: error: 'struct FunctionDialog' has no member named 'entry' 9298 | g_signal_connect((gpointer) fd->entry[i], "changed", G_CALLBACK(on_insert_function_changed), (gpointer) f); | ^~~~~ /usr/include/glib-2.0/gobject/gsignal.h:515:29: note: in definition of macro 'g_signal_connect' 515 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) | ^~~~~~~~ callbacks.cc:9299:73: error: 'struct FunctionDialog' has no member named 'entry' 9299 | g_signal_connect((gpointer) fd->entry[i], "activate", G_CALLBACK(on_insert_function_entry_activated), (gpointer) f); | ^~~~~ /usr/include/glib-2.0/gobject/gsignal.h:515:29: note: in definition of macro 'g_signal_connect' 515 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) | ^~~~~~~~ callbacks.cc:9303:29: error: 'struct FunctionDialog' has no member named 'entry' 9303 | fd->entry[i] = gtk_entry_new(); | ^~~~~ callbacks.cc:9305:78: error: 'struct FunctionDialog' has no member named 'entry' 9305 | gtk_entry_set_placeholder_text(GTK_ENTRY(fd->entry[i]), _("optional")); | ^~~~~ /usr/include/glib-2.0/gobject/gtype.h:2505:66: note: in definition of macro '_G_TYPE_CIC' 2505 | ((ct*) (void *) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) | ^~ /usr/include/gtk-3.0/gtk/gtkentry.h:49:42: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_CAST' 49 | #define GTK_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_ENTRY, GtkEntry)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:9305:64: note: in expansion of macro 'GTK_ENTRY' 9305 | gtk_entry_set_placeholder_text(GTK_ENTRY(fd->entry[i]), _("optional")); | ^~~~~~~~~ callbacks.cc:9307:63: error: 'struct FunctionDialog' has no member named 'entry' 9307 | gtk_entry_set_alignment(GTK_ENTRY(fd->entry[i]), 1.0); | ^~~~~ /usr/include/glib-2.0/gobject/gtype.h:2505:66: note: in definition of macro '_G_TYPE_CIC' 2505 | ((ct*) (void *) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) | ^~ /usr/include/gtk-3.0/gtk/gtkentry.h:49:42: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_CAST' 49 | #define GTK_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_ENTRY, GtkEntry)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:9307:49: note: in expansion of macro 'GTK_ENTRY' 9307 | gtk_entry_set_alignment(GTK_ENTRY(fd->entry[i]), 1.0); | ^~~~~~~~~ callbacks.cc:9308:57: error: 'struct FunctionDialog' has no member named 'entry' 9308 | g_signal_connect((gpointer) fd->entry[i], "changed", G_CALLBACK(on_insert_function_changed), (gpointer) f); | ^~~~~ /usr/include/glib-2.0/gobject/gsignal.h:515:29: note: in definition of macro 'g_signal_connect' 515 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) | ^~~~~~~~ callbacks.cc:9309:57: error: 'struct FunctionDialog' has no member named 'entry' 9309 | g_signal_connect((gpointer) fd->entry[i], "activate", G_CALLBACK(on_insert_function_entry_activated), (gpointer) f); | ^~~~~ /usr/include/glib-2.0/gobject/gsignal.h:515:29: note: in definition of macro 'g_signal_connect' 515 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) | ^~~~~~~~ callbacks.cc:9311:44: error: 'struct FunctionDialog' has no member named 'entry' 9311 | gtk_widget_set_hexpand(fd->entry[i], TRUE); | ^~~~~ callbacks.cc:9316:45: error: 'struct FunctionDialog' has no member named 'type_label' 9316 | fd->type_label[i] = gtk_button_new_with_label(typestr.c_str()); | ^~~~~~~~~~ callbacks.cc:9317:73: error: 'struct FunctionDialog' has no member named 'type_label' 9317 | g_signal_connect((gpointer) fd->type_label[i], "clicked", G_CALLBACK(on_type_label_date_clicked), (gpointer) fd->entry[i]); | ^~~~~~~~~~ /usr/include/glib-2.0/gobject/gsignal.h:515:29: note: in definition of macro 'g_signal_connect' 515 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) | ^~~~~~~~ callbacks.cc:9317:154: error: 'struct FunctionDialog' has no member named 'entry' 9317 | g_signal_connect((gpointer) fd->type_label[i], "clicked", G_CALLBACK(on_type_label_date_clicked), (gpointer) fd->entry[i]); | ^~~~~ /usr/include/glib-2.0/gobject/gsignal.h:515:73: note: in definition of macro 'g_signal_connect' 515 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) | ^~~~ callbacks.cc:9322:45: error: 'struct FunctionDialog' has no member named 'type_label' 9322 | fd->type_label[i] = gtk_button_new_with_label(typestr.c_str()); | ^~~~~~~~~~ callbacks.cc:9323:73: error: 'struct FunctionDialog' has no member named 'type_label' 9323 | g_signal_connect((gpointer) fd->type_label[i], "clicked", G_CALLBACK(on_type_label_file_clicked), (gpointer) fd->entry[i]); | ^~~~~~~~~~ /usr/include/glib-2.0/gobject/gsignal.h:515:29: note: in definition of macro 'g_signal_connect' 515 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) | ^~~~~~~~ callbacks.cc:9323:154: error: 'struct FunctionDialog' has no member named 'entry' 9323 | g_signal_connect((gpointer) fd->type_label[i], "clicked", G_CALLBACK(on_type_label_file_clicked), (gpointer) fd->entry[i]); | ^~~~~ /usr/include/glib-2.0/gobject/gsignal.h:515:73: note: in definition of macro 'g_signal_connect' 515 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) | ^~~~ callbacks.cc:9327:45: error: 'struct FunctionDialog' has no member named 'type_label' 9327 | fd->type_label[i] = gtk_label_new(typestr.c_str()); | ^~~~~~~~~~ callbacks.cc:9331:29: error: 'struct FunctionDialog' has no member named 'type_label' 9331 | fd->type_label[i] = gtk_label_new(typestr.c_str()); | ^~~~~~~~~~ callbacks.cc:9333:29: error: 'struct FunctionDialog' has no member named 'type_label' 9333 | fd->type_label[i] = NULL; | ^~~~~~~~~~ callbacks.cc:9337:80: error: 'struct FunctionDialog' has no member named 'boolean_buttons' 9337 | g_signal_handlers_block_matched((gpointer) fd->boolean_buttons[fd->boolean_buttons.size() - 2], G_SIGNAL_MATCH_FUNC, 0, 0, NULL, (gpointer) on_insert_function_changed, NULL); | ^~~~~~~~~~~~~~~ callbacks.cc:9337:100: error: 'struct FunctionDialog' has no member named 'boolean_buttons' 9337 | g_signal_handlers_block_matched((gpointer) fd->boolean_buttons[fd->boolean_buttons.size() - 2], G_SIGNAL_MATCH_FUNC, 0, 0, NULL, (gpointer) on_insert_function_changed, NULL); | ^~~~~~~~~~~~~~~ callbacks.cc:9338:84: error: 'struct FunctionDialog' has no member named 'boolean_buttons' 9338 | gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(fd->boolean_buttons[fd->boolean_buttons.size() - 2]), TRUE); | ^~~~~~~~~~~~~~~ /usr/include/glib-2.0/gobject/gtype.h:2505:66: note: in definition of macro '_G_TYPE_CIC' 2505 | ((ct*) (void *) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) | ^~ /usr/include/gtk-3.0/gtk/gtktogglebutton.h:39:50: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_CAST' 39 | #define GTK_TOGGLE_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TOGGLE_BUTTON, GtkToggleButton)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:9338:62: note: in expansion of macro 'GTK_TOGGLE_BUTTON' 9338 | gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(fd->boolean_buttons[fd->boolean_buttons.size() - 2]), TRUE); | ^~~~~~~~~~~~~~~~~ callbacks.cc:9338:104: error: 'struct FunctionDialog' has no member named 'boolean_buttons' 9338 | gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(fd->boolean_buttons[fd->boolean_buttons.size() - 2]), TRUE); | ^~~~~~~~~~~~~~~ /usr/include/glib-2.0/gobject/gtype.h:2505:66: note: in definition of macro '_G_TYPE_CIC' 2505 | ((ct*) (void *) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) | ^~ /usr/include/gtk-3.0/gtk/gtktogglebutton.h:39:50: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_CAST' 39 | #define GTK_TOGGLE_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TOGGLE_BUTTON, GtkToggleButton)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:9338:62: note: in expansion of macro 'GTK_TOGGLE_BUTTON' 9338 | gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(fd->boolean_buttons[fd->boolean_buttons.size() - 2]), TRUE); | ^~~~~~~~~~~~~~~~~ callbacks.cc:9339:82: error: 'struct FunctionDialog' has no member named 'boolean_buttons' 9339 | g_signal_handlers_unblock_matched((gpointer) fd->boolean_buttons[fd->boolean_buttons.size() - 2], G_SIGNAL_MATCH_FUNC, 0, 0, NULL, (gpointer) on_insert_function_changed, NULL); | ^~~~~~~~~~~~~~~ callbacks.cc:9339:102: error: 'struct FunctionDialog' has no member named 'boolean_buttons' 9339 | g_signal_handlers_unblock_matched((gpointer) fd->boolean_buttons[fd->boolean_buttons.size() - 2], G_SIGNAL_MATCH_FUNC, 0, 0, NULL, (gpointer) on_insert_function_changed, NULL); | ^~~~~~~~~~~~~~~ callbacks.cc:9343:72: error: 'struct FunctionDialog' has no member named 'entry' 9343 | g_signal_handlers_block_matched((gpointer) fd->entry[i], G_SIGNAL_MATCH_FUNC, 0, 0, NULL, (gpointer) on_insert_function_changed, NULL); | ^~~~~ callbacks.cc:9344:118: error: 'struct FunctionDialog' has no member named 'entry' 9344 | if(i < f->minargs() || has_vector || defstr != "undefined") gtk_entry_set_text(GTK_ENTRY(fd->entry[i]), defstr.c_str()); | ^~~~~ /usr/include/glib-2.0/gobject/gtype.h:2505:66: note: in definition of macro '_G_TYPE_CIC' 2505 | ((ct*) (void *) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) | ^~ /usr/include/gtk-3.0/gtk/gtkentry.h:49:42: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_CAST' 49 | #define GTK_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_ENTRY, GtkEntry)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:9344:104: note: in expansion of macro 'GTK_ENTRY' 9344 | if(i < f->minargs() || has_vector || defstr != "undefined") gtk_entry_set_text(GTK_ENTRY(fd->entry[i]), defstr.c_str()); | ^~~~~~~~~ callbacks.cc:9347:66: error: 'struct FunctionDialog' has no member named 'entry' 9347 | gtk_entry_set_text(GTK_ENTRY(fd->entry[i]), get_selected_expression_text(true).c_str()); | ^~~~~ /usr/include/glib-2.0/gobject/gtype.h:2505:66: note: in definition of macro '_G_TYPE_CIC' 2505 | ((ct*) (void *) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) | ^~ /usr/include/gtk-3.0/gtk/gtkentry.h:49:42: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_CAST' 49 | #define GTK_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_ENTRY, GtkEntry)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:9347:52: note: in expansion of macro 'GTK_ENTRY' 9347 | gtk_entry_set_text(GTK_ENTRY(fd->entry[i]), get_selected_expression_text(true).c_str()); | ^~~~~~~~~ callbacks.cc:9347:77: error: 'get_selected_expression_text' was not declared in this scope; did you mean 'set_expression_text'? 9347 | gtk_entry_set_text(GTK_ENTRY(fd->entry[i]), get_selected_expression_text(true).c_str()); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | set_expression_text callbacks.cc:9349:84: error: 'struct FunctionDialog' has no member named 'entry' 9349 | gtk_spin_button_update(GTK_SPIN_BUTTON(fd->entry[i])); | ^~~~~ /usr/include/glib-2.0/gobject/gtype.h:2505:66: note: in definition of macro '_G_TYPE_CIC' 2505 | ((ct*) (void *) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) | ^~ /usr/include/gtk-3.0/gtk/gtkspinbutton.h:42:48: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_CAST' 42 | #define GTK_SPIN_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SPIN_BUTTON, GtkSpinButton)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:9349:64: note: in expansion of macro 'GTK_SPIN_BUTTON' 9349 | gtk_spin_button_update(GTK_SPIN_BUTTON(fd->entry[i])); | ^~~~~~~~~~~~~~~ callbacks.cc:9352:74: error: 'struct FunctionDialog' has no member named 'entry' 9352 | g_signal_handlers_unblock_matched((gpointer) fd->entry[i], G_SIGNAL_MATCH_FUNC, 0, 0, NULL, (gpointer) on_insert_function_changed, NULL); | ^~~~~ callbacks.cc:9354:54: error: 'struct FunctionDialog' has no member named 'label' 9354 | gtk_grid_attach(GTK_GRID(table), fd->label[i], 0, i, 1, 1); | ^~~~~ callbacks.cc:9355:54: error: 'struct FunctionDialog' has no member named 'entry' 9355 | gtk_grid_attach(GTK_GRID(table), fd->entry[i], 1, i, 1, 1); | ^~~~~ callbacks.cc:9356:24: error: 'struct FunctionDialog' has no member named 'type_label' 9356 | if(fd->type_label[i]) { | ^~~~~~~~~~ callbacks.cc:9357:52: error: 'struct FunctionDialog' has no member named 'type_label' 9357 | gtk_widget_set_hexpand(fd->type_label[i], FALSE); | ^~~~~~~~~~ callbacks.cc:9358:51: error: 'struct FunctionDialog' has no member named 'type_label' 9358 | gtk_widget_set_halign(fd->type_label[i], GTK_ALIGN_START); | ^~~~~~~~~~ callbacks.cc:9359:62: error: 'struct FunctionDialog' has no member named 'type_label' 9359 | gtk_grid_attach(GTK_GRID(table), fd->type_label[i], 2, i, 1, 1); | ^~~~~~~~~~ callbacks.cc:9372:23: error: expected ';' before 'str' 9372 | string str; | ^~~~ | ; callbacks.cc:9373:47: error: 'str' was not declared in this scope; did you mean 'std'? 9373 | if(!f->description().empty()) str += f->description(); | ^~~ | std callbacks.cc:9375:29: error: 'str' was not declared in this scope; did you mean 'std'? 9375 | if(!str.empty()) str += "\n\n"; | ^~~ | std callbacks.cc:9376:25: error: 'str' was not declared in this scope; did you mean 'std'? 9376 | str += _("Example:"); | ^~~ | std callbacks.cc:9380:50: error: 'str' was not declared in this scope; did you mean 'std'? 9380 | gtk_text_buffer_set_text(buffer, str.c_str(), -1); | ^~~ | std callbacks.cc: In function 'void insert_button_unit(GtkMenuItem*, gpointer)': callbacks.cc:9478:17: error: 'string' was not declared in this scope 9478 | string si_label_str; | ^~~~~~ callbacks.cc:9478:17: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:9480:25: error: 'si_label_str' was not declared in this scope 9480 | si_label_str = ((CompositeUnit*) latest_button_unit)->print(false, true, printops.use_unicode_signs, &can_display_unicode_string_function, (void*) expressiontext); | ^~~~~~~~~~~~ callbacks.cc:9483:25: error: 'si_label_str' was not declared in this scope 9483 | si_label_str = latest_button_unit->preferredDisplayName(true, printops.use_unicode_signs, false, false, &can_display_unicode_string_function, (void*) expressiontext).name; | ^~~~~~~~~~~~ callbacks.cc:9485:97: error: 'si_label_str' was not declared in this scope 9485 | gtk_label_set_text(GTK_LABEL(gtk_builder_get_object(main_builder, "label_si")), si_label_str.c_str()); | ^~~~~~~~~~~~ callbacks.cc: In function 'void insert_button_currency(GtkMenuItem*, gpointer)': callbacks.cc:9498:17: error: 'string' was not declared in this scope 9498 | string currency_label_str; | ^~~~~~ callbacks.cc:9498:17: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:9500:25: error: 'currency_label_str' was not declared in this scope 9500 | currency_label_str = ((CompositeUnit*) latest_button_currency)->print(false, true, printops.use_unicode_signs, &can_display_unicode_string_function, (void*) expressiontext); | ^~~~~~~~~~~~~~~~~~ callbacks.cc:9503:25: error: 'currency_label_str' was not declared in this scope 9503 | currency_label_str = latest_button_currency->preferredDisplayName(true, printops.use_unicode_signs, false, false, &can_display_unicode_string_function, (void*) expressiontext).name; | ^~~~~~~~~~~~~~~~~~ callbacks.cc:9505:99: error: 'currency_label_str' was not declared in this scope 9505 | gtk_label_set_text(GTK_LABEL(gtk_builder_get_object(main_builder, "label_euro")), currency_label_str.c_str()); | ^~~~~~~~~~~~~~~~~~ callbacks.cc: In function 'void set_name_label_and_entry(ExpressionItem*, GtkWidget*, GtkWidget*)': callbacks.cc:9514:17: error: 'string' was not declared in this scope 9514 | string str = "+ "; | ^~~~~~ callbacks.cc:9514:17: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:9516:35: error: 'str' was not declared in this scope; did you mean 'std'? 9516 | if(i > 2) str += ", "; | ^~~ | std callbacks.cc:9517:25: error: 'str' was not declared in this scope; did you mean 'std'? 9517 | str += item->getName(i).name; | ^~~ | std callbacks.cc:9519:54: error: 'str' was not declared in this scope; did you mean 'std'? 9519 | gtk_label_set_text(GTK_LABEL(label), str.c_str()); | ^~~ | std callbacks.cc: At global scope: callbacks.cc:9522:45: error: 'string' has not been declared 9522 | void set_edited_names(ExpressionItem *item, string str) { | ^~~~~~ callbacks.cc: In function 'void set_edited_names(ExpressionItem*, int)': callbacks.cc:9543:38: error: no matching function for call to 'ExpressionItem::addName(int&)' 9543 | item->addName(str); | ~~~~~~~~~~~~~^~~~~ In file included from /usr/include/libqalculate/Prefix.h:18, from /usr/include/libqalculate/qalculate.h:20: /usr/include/libqalculate/ExpressionItem.h:166:22: note: candidate: 'virtual void ExpressionItem::addName(const ExpressionName&, size_t, bool)' 166 | virtual void addName(const ExpressionName &ename, size_t index = 0, bool force = true); | ^~~~~~~ /usr/include/libqalculate/ExpressionItem.h:166:52: note: no known conversion for argument 1 from 'int' to 'const ExpressionName&' 166 | virtual void addName(const ExpressionName &ename, size_t index = 0, bool force = true); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~ /usr/include/libqalculate/ExpressionItem.h:167:22: note: candidate: 'virtual void ExpressionItem::addName(std::string, size_t, bool)' 167 | virtual void addName(std::string sname, size_t index = 0, bool force = true); | ^~~~~~~ /usr/include/libqalculate/ExpressionItem.h:167:42: note: no known conversion for argument 1 from 'int' to 'std::string' {aka 'std::__cxx11::basic_string'} 167 | virtual void addName(std::string sname, size_t index = 0, bool force = true); | ~~~~~~~~~~~~^~~~~ callbacks.cc:9547:49: error: no matching function for call to 'ExpressionName::ExpressionName(int&)' 9547 | ExpressionName ename(str); | ^ /usr/include/libqalculate/ExpressionItem.h:50:9: note: candidate: 'ExpressionName::ExpressionName(std::string)' 50 | ExpressionName(std::string sname); | ^~~~~~~~~~~~~~ /usr/include/libqalculate/ExpressionItem.h:50:36: note: no known conversion for argument 1 from 'int' to 'std::string' {aka 'std::__cxx11::basic_string'} 50 | ExpressionName(std::string sname); | ~~~~~~~~~~~~^~~~~ /usr/include/libqalculate/ExpressionItem.h:45:9: note: candidate: 'ExpressionName::ExpressionName()' 45 | ExpressionName(); | ^~~~~~~~~~~~~~ /usr/include/libqalculate/ExpressionItem.h:45:9: note: candidate expects 0 arguments, 1 provided /usr/include/libqalculate/ExpressionItem.h:22:8: note: candidate: 'ExpressionName::ExpressionName(const ExpressionName&)' 22 | struct ExpressionName { | ^~~~~~~~~~~~~~ /usr/include/libqalculate/ExpressionItem.h:22:8: note: no known conversion for argument 1 from 'int' to 'const ExpressionName&' callbacks.cc:9551:38: error: no matching function for call to 'ExpressionItem::setName(int&, int)' 9551 | item->setName(str, 1); | ~~~~~~~~~~~~~^~~~~~~~ /usr/include/libqalculate/ExpressionItem.h:158:22: note: candidate: 'virtual void ExpressionItem::setName(const ExpressionName&, size_t, bool)' 158 | virtual void setName(const ExpressionName &ename, size_t index = 1, bool force = true); | ^~~~~~~ /usr/include/libqalculate/ExpressionItem.h:158:52: note: no known conversion for argument 1 from 'int' to 'const ExpressionName&' 158 | virtual void setName(const ExpressionName &ename, size_t index = 1, bool force = true); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~ /usr/include/libqalculate/ExpressionItem.h:165:22: note: candidate: 'virtual void ExpressionItem::setName(std::string, size_t, bool)' 165 | virtual void setName(std::string sname, size_t index, bool force = true); | ^~~~~~~ /usr/include/libqalculate/ExpressionItem.h:165:42: note: no known conversion for argument 1 from 'int' to 'std::string' {aka 'std::__cxx11::basic_string'} 165 | virtual void setName(std::string sname, size_t index, bool force = true); | ~~~~~~~~~~~~^~~~~ callbacks.cc: In function 'void edit_unit(const char*, Unit*, GtkWidget*)': callbacks.cc:9632:41: error: 'string' was not declared in this scope 9632 | string value = CALCULATOR->f_uncertainty->referenceName(); | ^~~~~~ callbacks.cc:9632:41: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:9633:41: error: 'value' was not declared in this scope; did you mean 'GValue'? 9633 | value += "("; | ^~~~~ | GValue callbacks.cc:9685:17: error: 'string' was not declared in this scope 9685 | string str; | ^~~~~~ callbacks.cc:9685:17: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:9686:17: error: 'str' was not declared in this scope; did you mean 'std'? 9686 | str = gtk_entry_get_text(GTK_ENTRY(gtk_builder_get_object(unitedit_builder, "unit_edit_entry_name"))); | ^~~ | std callbacks.cc:9807:33: error: 'selected_unit_category' was not declared in this scope 9807 | selected_unit_category = _("Inactive"); | ^~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:9809:33: error: 'selected_unit_category' was not declared in this scope 9809 | selected_unit_category = _("Uncategorized"); | ^~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:9811:33: error: 'selected_unit_category' was not declared in this scope 9811 | selected_unit_category = "/"; | ^~~~~~~~~~~~~~~~~~~~~~ callbacks.cc: In function 'void delete_function(MathFunction*)': callbacks.cc:9979:39: error: 'recent_functions' was not declared in this scope; did you mean 'insert_function'? 9979 | for(size_t i = 0; i < recent_functions.size(); i++) { | ^~~~~~~~~~~~~~~~ | insert_function callbacks.cc:9982:52: error: 'recent_function_items' was not declared in this scope 9982 | gtk_widget_destroy(recent_function_items[i]); | ^~~~~~~~~~~~~~~~~~~~~ callbacks.cc: In function 'void edit_function(const char*, MathFunction*, GtkWidget*, const char*, const char*, bool)': callbacks.cc:10064:25: error: 'string' was not declared in this scope 10064 | string str, str2; | ^~~~~~ callbacks.cc:10064:25: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:10068:41: error: 'str' was not declared in this scope; did you mean 'std'? 10068 | str = _("Yes"); | ^~~ | std callbacks.cc:10070:41: error: 'str' was not declared in this scope; did you mean 'std'? 10070 | str = _("No"); | ^~~ | std callbacks.cc:10072:33: error: 'str2' was not declared in this scope 10072 | str2 = "\\"; | ^~~~ callbacks.cc:10074:151: error: 'str' was not declared in this scope; did you mean 'std'? 10074 | gtk_list_store_set(tSubfunctions_store, &iter, 0, str2.c_str(), 1, ((UserFunction*) f)->getSubfunction(i).c_str(), 2, str.c_str(), 3, i, 4, ((UserFunction*) f)->subfunctionPrecalculated(i), -1); | ^~~ | std callbacks.cc:10090:17: error: 'string' was not declared in this scope 10090 | string str = gtk_entry_get_text(GTK_ENTRY(gtk_builder_get_object(functionedit_builder, "function_edit_entry_name"))); | ^~~~~~ callbacks.cc:10090:17: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:10091:35: error: 'str' was not declared in this scope; did you mean 'std'? 10091 | remove_blank_ends(str); | ^~~ | std callbacks.cc:10104:23: error: expected ';' before 'str2' 10104 | string str2 = CALCULATOR->unlocalizeExpression(gstr, evalops.parse_options); | ^~~~~ | ; callbacks.cc:10106:35: error: 'str2' was not declared in this scope 10106 | remove_blank_ends(str2); | ^~~~ callbacks.cc:10177:33: error: 'selected_function_category' was not declared in this scope; did you mean 'selected_function'? 10177 | selected_function_category = _("Inactive"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | selected_function callbacks.cc:10179:33: error: 'selected_function_category' was not declared in this scope; did you mean 'selected_function'? 10179 | selected_function_category = _("Uncategorized"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | selected_function callbacks.cc:10181:33: error: 'selected_function_category' was not declared in this scope; did you mean 'selected_function'? 10181 | selected_function_category = "/"; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | selected_function callbacks.cc: In function 'void edit_function_simple(const char*, MathFunction*, GtkWidget*)': callbacks.cc:10247:17: error: 'string' was not declared in this scope 10247 | string str = gtk_entry_get_text(GTK_ENTRY(gtk_builder_get_object(simplefunctionedit_builder, "simple_function_edit_entry_name"))); | ^~~~~~ callbacks.cc:10247:17: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:10248:35: error: 'str' was not declared in this scope; did you mean 'std'? 10248 | remove_blank_ends(str); | ^~~ | std callbacks.cc:10258:23: error: expected ';' before 'str2' 10258 | string str2 = CALCULATOR->unlocalizeExpression(gstr, evalops.parse_options); | ^~~~~ | ; callbacks.cc:10260:35: error: 'str2' was not declared in this scope 10260 | remove_blank_ends(str2); | ^~~~ callbacks.cc:10300:17: error: 'string' was not declared in this scope 10300 | string str2 = gstr; | ^~~~~~ callbacks.cc:10300:17: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:10303:42: error: 'str2' was not declared in this scope 10303 | gsub("x", "\\x", str2); | ^~~~ callbacks.cc:10307:167: error: 'str2' was not declared in this scope 10307 | edit_function(category, f, win, gtk_entry_get_text(GTK_ENTRY(gtk_builder_get_object(simplefunctionedit_builder, "simple_function_edit_entry_name"))), str2.c_str(), gtk_widget_get_sensitive(GTK_WIDGET(gtk_builder_get_object(simplefunctionedit_builder, "simple_function_edit_button_ok")))); | ^~~~ callbacks.cc: In function 'void convert_to_unit(GtkMenuItem*, gpointer)': callbacks.cc:10339:52: error: invalid conversion from 'const char*' to 'int' [-fpermissive] 10339 | executeCommand(COMMAND_CONVERT_UNIT, true, "", u); | ^~ | | | const char* callbacks.cc:7671:71: note: initializing argument 3 of 'void executeCommand(int, bool, int, Unit*, int)' 7671 | void executeCommand(int command_type, bool show_result = true, string ceu_str = "", Unit *u = NULL, int run = 1) { | ~~~~~~~^~~~~~~~~~~~ callbacks.cc: In function 'void convert_to_unit_noprefix(GtkMenuItem*, gpointer)': callbacks.cc:10352:9: error: 'string' was not declared in this scope 10352 | string ceu_str = u->name(); | ^~~~~~ callbacks.cc:10352:9: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:10354:54: error: 'ceu_str' was not declared in this scope; did you mean 'eqstr'? 10354 | executeCommand(COMMAND_CONVERT_STRING, true, ceu_str); | ^~~~~~~ | eqstr callbacks.cc: In function 'void edit_unknown(const char*, Variable*, GtkWidget*)': callbacks.cc:10416:17: error: 'string' was not declared in this scope 10416 | string v_name = CALCULATOR->getName(); | ^~~~~~ callbacks.cc:10416:17: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:10417:119: error: 'v_name' was not declared in this scope; did you mean 'tzname'? 10417 | gtk_entry_set_text(GTK_ENTRY(gtk_builder_get_object(unknownedit_builder, "unknown_edit_entry_name")), v_name.c_str()); | ^~~~~~ | tzname callbacks.cc:10434:17: error: 'string' was not declared in this scope 10434 | string str = gtk_entry_get_text(GTK_ENTRY(gtk_builder_get_object(unknownedit_builder, "unknown_edit_entry_name"))); | ^~~~~~ callbacks.cc:10434:17: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:10435:35: error: 'str' was not declared in this scope; did you mean 'std'? 10435 | remove_blank_ends(str); | ^~~ | std callbacks.cc:10482:33: error: 'selected_variable_category' was not declared in this scope; did you mean 'selected_variable'? 10482 | selected_variable_category = _("Inactive"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | selected_variable callbacks.cc:10484:33: error: 'selected_variable_category' was not declared in this scope; did you mean 'selected_variable'? 10484 | selected_variable_category = _("Uncategorized"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | selected_variable callbacks.cc:10486:33: error: 'selected_variable_category' was not declared in this scope; did you mean 'selected_variable'? 10486 | selected_variable_category = "/"; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | selected_variable callbacks.cc: In function 'void delete_variable(Variable*)': callbacks.cc:10509:39: error: 'recent_variables' was not declared in this scope; did you mean 'insert_variable'? 10509 | for(size_t i = 0; i < recent_variables.size(); i++) { | ^~~~~~~~~~~~~~~~ | insert_variable callbacks.cc:10512:52: error: 'recent_variable_items' was not declared in this scope 10512 | gtk_widget_destroy(recent_variable_items[i]); | ^~~~~~~~~~~~~~~~~~~~~ callbacks.cc: In function 'void edit_variable(const char*, Variable*, MathStructure*, GtkWidget*)': callbacks.cc:10573:17: error: 'string' was not declared in this scope 10573 | string value_str; | ^~~~~~ callbacks.cc:10573:17: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:10575:25: error: 'value_str' was not declared in this scope 10575 | value_str = CALCULATOR->localizeExpression(v->expression()); | ^~~~~~~~~ callbacks.cc:10593:25: error: 'value_str' was not declared in this scope 10593 | value_str = get_value_string(v->get(), false, NULL); | ^~~~~~~~~ callbacks.cc:10593:37: error: 'get_value_string' was not declared in this scope; did you mean 'g_value_set_int'? 10593 | value_str = get_value_string(v->get(), false, NULL); | ^~~~~~~~~~~~~~~~ | g_value_set_int callbacks.cc:10595:122: error: 'value_str' was not declared in this scope 10595 | gtk_entry_set_text(GTK_ENTRY(gtk_builder_get_object(variableedit_builder, "variable_edit_entry_value")), value_str.c_str()); | ^~~~~~~~~ callbacks.cc:10610:17: error: 'string' was not declared in this scope 10610 | string v_name = CALCULATOR->getName(); | ^~~~~~ callbacks.cc:10610:17: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:10611:121: error: 'v_name' was not declared in this scope; did you mean 'tzname'? 10611 | gtk_entry_set_text(GTK_ENTRY(gtk_builder_get_object(variableedit_builder, "variable_edit_entry_name")), v_name.c_str()); | ^~~~~~ | tzname callbacks.cc:10613:142: error: 'get_value_string' was not declared in this scope; did you mean 'g_value_set_int'? 10613 | gtk_entry_set_text(GTK_ENTRY(gtk_builder_get_object(variableedit_builder, "variable_edit_entry_value")), displayed_mstruct ? get_value_string(*mstruct).c_str() : get_expression_text().c_str()); | ^~~~~~~~~~~~~~~~ | g_value_set_int callbacks.cc:10613:179: error: 'get_expression_text' was not declared in this scope; did you mean 'set_expression_text'? 10613 | gtk_entry_set_text(GTK_ENTRY(gtk_builder_get_object(variableedit_builder, "variable_edit_entry_value")), displayed_mstruct ? get_value_string(*mstruct).c_str() : get_expression_text().c_str()); | ^~~~~~~~~~~~~~~~~~~ | set_expression_text callbacks.cc:10628:17: error: 'string' was not declared in this scope 10628 | string str = gtk_entry_get_text(GTK_ENTRY(gtk_builder_get_object(variableedit_builder, "variable_edit_entry_name"))); | ^~~~~~ callbacks.cc:10628:17: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:10629:23: error: expected ';' before 'str2' 10629 | string str2 = CALCULATOR->unlocalizeExpression(gtk_entry_get_text(GTK_ENTRY(gtk_builder_get_object(variableedit_builder, "variable_edit_entry_value"))), evalops.parse_options); | ^~~~~ | ; callbacks.cc:10630:35: error: 'str' was not declared in this scope; did you mean 'std'? 10630 | remove_blank_ends(str); | ^~~ | std callbacks.cc:10631:35: error: 'str2' was not declared in this scope 10631 | remove_blank_ends(str2); | ^~~~ callbacks.cc:10688:33: error: 'selected_variable_category' was not declared in this scope; did you mean 'selected_variable'? 10688 | selected_variable_category = _("Inactive"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | selected_variable callbacks.cc:10690:33: error: 'selected_variable_category' was not declared in this scope; did you mean 'selected_variable'? 10690 | selected_variable_category = _("Uncategorized"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | selected_variable callbacks.cc:10692:33: error: 'selected_variable_category' was not declared in this scope; did you mean 'selected_variable'? 10692 | selected_variable_category = "/"; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | selected_variable callbacks.cc: In function 'void edit_matrix(const char*, Variable*, MathStructure*, GtkWidget*, gboolean)': callbacks.cc:10790:17: error: 'string' was not declared in this scope 10790 | string v_name = CALCULATOR->getName(); | ^~~~~~ callbacks.cc:10790:17: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:10791:117: error: 'v_name' was not declared in this scope; did you mean 'tzname'? 10791 | gtk_entry_set_text(GTK_ENTRY(gtk_builder_get_object(matrixedit_builder, "matrix_edit_entry_name")), v_name.c_str()); | ^~~~~~ | tzname callbacks.cc:10866:76: error: 'matrix_edit_columns' was not declared in this scope 10866 | gtk_tree_view_set_cursor(GTK_TREE_VIEW(tMatrixEdit), path, matrix_edit_columns[0], TRUE); | ^~~~~~~~~~~~~~~~~~~ callbacks.cc:10880:17: error: 'string' was not declared in this scope 10880 | string str = gtk_entry_get_text(GTK_ENTRY(gtk_builder_get_object(matrixedit_builder, "matrix_edit_entry_name"))); | ^~~~~~ callbacks.cc:10880:17: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:10881:35: error: 'str' was not declared in this scope; did you mean 'std'? 10881 | remove_blank_ends(str); | ^~~ | std callbacks.cc:10906:31: error: expected ';' before 'mstr' 10906 | string mstr; | ^~~~~ | ; callbacks.cc:10913:49: error: 'mstr' was not declared in this scope; did you mean 'gstr'? 10913 | mstr = gstr; | ^~~~ | gstr callbacks.cc:10928:49: error: 'mstr' was not declared in this scope; did you mean 'gstr'? 10928 | mstr = gstr; | ^~~~ | gstr callbacks.cc:10969:33: error: 'selected_variable_category' was not declared in this scope; did you mean 'selected_variable'? 10969 | selected_variable_category = _("Inactive"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | selected_variable callbacks.cc:10971:33: error: 'selected_variable_category' was not declared in this scope; did you mean 'selected_variable'? 10971 | selected_variable_category = _("Uncategorized"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | selected_variable callbacks.cc:10973:33: error: 'selected_variable_category' was not declared in this scope; did you mean 'selected_variable'? 10973 | selected_variable_category = "/"; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | selected_variable callbacks.cc: In function 'void insert_matrix(const MathStructure*, GtkWidget*, gboolean, bool, bool)': callbacks.cc:11081:72: error: 'matrix_columns' was not declared in this scope 11081 | gtk_tree_view_set_cursor(GTK_TREE_VIEW(tMatrix), path, matrix_columns[0], TRUE); | ^~~~~~~~~~~~~~ callbacks.cc:11094:17: error: 'string' was not declared in this scope 11094 | string matrixstr, str; | ^~~~~~ callbacks.cc:11094:17: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:11101:25: error: 'matrixstr' was not declared in this scope; did you mean 'Matrix'? 11101 | matrixstr = "["; | ^~~~~~~~~ | Matrix callbacks.cc:11105:41: error: 'str' was not declared in this scope; did you mean 'gstr'? 11105 | str = gstr; | ^~~ | gstr callbacks.cc:11122:25: error: 'matrixstr' was not declared in this scope; did you mean 'Matrix'? 11122 | matrixstr = "["; | ^~~~~~~~~ | Matrix callbacks.cc:11141:41: error: 'str' was not declared in this scope; did you mean 'gstr'? 11141 | str = gstr; | ^~~ | gstr callbacks.cc:11152:29: error: 'matrixstr' was not declared in this scope; did you mean 'Matrix'? 11152 | insert_text(matrixstr.c_str()); | ^~~~~~~~~ | Matrix callbacks.cc: In function 'void edit_dataobject(DataSet*, DataObject*, GtkWidget*)': callbacks.cc:11177:9: error: 'string' was not declared in this scope 11177 | string sval; | ^~~~~~ callbacks.cc:11177:9: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:11185:9: error: 'vector' was not declared in this scope 11185 | vector value_entries; | ^~~~~~ callbacks.cc:11185:9: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stl_vector.h:423:11: note: 'std::vector' 423 | class vector : protected _Vector_base<_Tp, _Alloc> | ^~~~~~ /usr/include/c++/12.2.0/vector:84:13: note: 'std::pmr::vector' 84 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>; | ^~~~~~ callbacks.cc:11185:25: error: expected primary-expression before '*' token 11185 | vector value_entries; | ^ callbacks.cc:11185:26: error: expected primary-expression before '>' token 11185 | vector value_entries; | ^ callbacks.cc:11185:28: error: 'value_entries' was not declared in this scope 11185 | vector value_entries; | ^~~~~~~~~~~~~ callbacks.cc:11186:25: error: expected primary-expression before '*' token 11186 | vector approx_menus; | ^ callbacks.cc:11186:26: error: expected primary-expression before '>' token 11186 | vector approx_menus; | ^ callbacks.cc:11186:28: error: 'approx_menus' was not declared in this scope 11186 | vector approx_menus; | ^~~~~~~~~~~~ callbacks.cc:11187:15: error: expected ';' before 'str' 11187 | string str; | ^~~~ | ; callbacks.cc:11228:23: error: expected ';' before 'val' 11228 | string val; | ^~~~ | ; callbacks.cc:11230:25: error: 'val' was not declared in this scope 11230 | val = gtk_entry_get_text(GTK_ENTRY(value_entries[i])); | ^~~ callbacks.cc: In function 'void update_dataset_property_list(DataSet*)': callbacks.cc:11258:9: error: 'string' was not declared in this scope 11258 | string str; | ^~~~~~ callbacks.cc:11258:9: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:11259:31: error: 'tmp_props' was not declared in this scope 11259 | for(size_t i = 0; i < tmp_props.size(); i++) { | ^~~~~~~~~ callbacks.cc:11262:25: error: 'str' was not declared in this scope; did you mean 'std'? 11262 | str = ""; | ^~~ | std callbacks.cc: In function 'bool edit_dataproperty(DataProperty*, bool)': callbacks.cc:11306:17: error: 'string' was not declared in this scope 11306 | string str = "+ "; | ^~~~~~ callbacks.cc:11306:17: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:11308:35: error: 'str' was not declared in this scope; did you mean 'std'? 11308 | if(i > 2) str += ", "; | ^~~ | std callbacks.cc:11309:25: error: 'str' was not declared in this scope; did you mean 'std'? 11309 | str += dp->getName(i); | ^~~ | std callbacks.cc:11311:125: error: 'str' was not declared in this scope; did you mean 'std'? 11311 | gtk_label_set_text(GTK_LABEL(gtk_builder_get_object(datasetedit_builder, "dataproperty_edit_label_names")), str.c_str()); | ^~~ | std callbacks.cc:11352:17: error: 'string' was not declared in this scope 11352 | string str = gtk_entry_get_text(GTK_ENTRY(gtk_builder_get_object(datasetedit_builder, "dataproperty_edit_entry_name"))); | ^~~~~~ callbacks.cc:11352:17: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:11353:35: error: 'str' was not declared in this scope; did you mean 'std'? 11353 | remove_blank_ends(str); | ^~~ | std callbacks.cc: In function 'void edit_dataset(DataSet*, GtkWidget*)': callbacks.cc:11485:25: error: 'tmp_props' was not declared in this scope 11485 | tmp_props.push_back(new DataProperty(*dp)); | ^~~~~~~~~ callbacks.cc:11486:25: error: 'tmp_props_orig' was not declared in this scope 11486 | tmp_props_orig.push_back(dp); | ^~~~~~~~~~~~~~ callbacks.cc:11501:17: error: 'string' was not declared in this scope 11501 | string str = gtk_entry_get_text(GTK_ENTRY(gtk_builder_get_object(datasetedit_builder, "dataset_edit_entry_name"))); | ^~~~~~ callbacks.cc:11501:17: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:11502:35: error: 'str' was not declared in this scope; did you mean 'std'? 11502 | remove_blank_ends(str); | ^~~ | std callbacks.cc:11536:23: error: expected ';' before 'str2' 11536 | string str2; | ^~~~~ | ; callbacks.cc:11538:25: error: 'str2' was not declared in this scope 11538 | str2 = gtk_entry_get_text(GTK_ENTRY(gtk_builder_get_object(datasetedit_builder, "dataset_edit_entry_object_name"))); | ^~~~ callbacks.cc:11556:47: error: 'tmp_props' was not declared in this scope 11556 | for(size_t i = 0; i < tmp_props.size();) { | ^~~~~~~~~ callbacks.cc:11558:44: error: 'tmp_props_orig' was not declared in this scope 11558 | if(tmp_props_orig[i]) ds->delProperty(tmp_props_orig[i]); | ^~~~~~~~~~~~~~ callbacks.cc:11561:44: error: 'tmp_props_orig' was not declared in this scope 11561 | if(tmp_props_orig[i]) { | ^~~~~~~~~~~~~~ callbacks.cc:11584:31: error: 'tmp_props' was not declared in this scope 11584 | for(size_t i = 0; i < tmp_props.size(); i++) { | ^~~~~~~~~ callbacks.cc:11587:9: error: 'tmp_props' was not declared in this scope 11587 | tmp_props.clear(); | ^~~~~~~~~ callbacks.cc:11588:9: error: 'tmp_props_orig' was not declared in this scope 11588 | tmp_props_orig.clear(); | ^~~~~~~~~~~~~~ callbacks.cc: In function 'void import_csv_file(GtkWidget*)': callbacks.cc:11609:17: error: 'string' was not declared in this scope 11609 | string str = gtk_entry_get_text(GTK_ENTRY(gtk_builder_get_object(csvimport_builder, "csv_import_entry_file"))); | ^~~~~~ callbacks.cc:11609:17: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:11610:35: error: 'str' was not declared in this scope; did you mean 'std'? 11610 | remove_blank_ends(str); | ^~~ | std callbacks.cc:11617:23: error: expected ';' before 'name_str' 11617 | string name_str = gtk_entry_get_text(GTK_ENTRY(gtk_builder_get_object(csvimport_builder, "csv_import_entry_name"))); | ^~~~~~~~~ | ; callbacks.cc:11618:35: error: 'name_str' was not declared in this scope 11618 | remove_blank_ends(name_str); | ^~~~~~~~ callbacks.cc:11630:23: error: expected ';' before 'delimiter' 11630 | string delimiter = ""; | ^~~~~~~~~~ | ; callbacks.cc:11633:33: error: 'delimiter' was not declared in this scope 11633 | delimiter = ","; | ^~~~~~~~~ callbacks.cc:11637:33: error: 'delimiter' was not declared in this scope 11637 | delimiter = "\t"; | ^~~~~~~~~ callbacks.cc:11641:33: error: 'delimiter' was not declared in this scope 11641 | delimiter = ";"; | ^~~~~~~~~ callbacks.cc:11645:33: error: 'delimiter' was not declared in this scope 11645 | delimiter = " "; | ^~~~~~~~~ callbacks.cc:11649:33: error: 'delimiter' was not declared in this scope 11649 | delimiter = gtk_entry_get_text(GTK_ENTRY(gtk_builder_get_object(csvimport_builder, "csv_import_entry_delimiter_other"))); | ^~~~~~~~~ callbacks.cc:11653:20: error: 'delimiter' was not declared in this scope 11653 | if(delimiter.empty()) { | ^~~~~~~~~ callbacks.cc:11660:311: error: 'delimiter' was not declared in this scope 11660 | if(!CALCULATOR->importCSV(str.c_str(), gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(gtk_builder_get_object(csvimport_builder, "csv_import_spinbutton_first_row"))), gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(gtk_builder_get_object(csvimport_builder, "csv_import_checkbutton_headers"))), delimiter, gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(gtk_builder_get_object(csvimport_builder, "csv_import_radiobutton_matrix"))), name_str, gtk_entry_get_text(GTK_ENTRY(gtk_builder_get_object(csvimport_builder, "csv_import_entry_desc"))), gtk_combo_box_text_get_active_text(GTK_COMBO_BOX_TEXT(gtk_builder_get_object(csvimport_builder, "csv_import_combo_category"))))) { | ^~~~~~~~~ callbacks.cc: In function 'void export_csv_file(KnownVariable*, GtkWidget*)': callbacks.cc:11695:17: error: 'string' was not declared in this scope 11695 | string str = gtk_entry_get_text(GTK_ENTRY(gtk_builder_get_object(csvexport_builder, "csv_export_entry_file"))); | ^~~~~~ callbacks.cc:11695:17: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:11696:35: error: 'str' was not declared in this scope; did you mean 'std'? 11696 | remove_blank_ends(str); | ^~~ | std callbacks.cc:11703:23: error: expected ';' before 'delimiter' 11703 | string delimiter = ""; | ^~~~~~~~~~ | ; callbacks.cc:11706:33: error: 'delimiter' was not declared in this scope 11706 | delimiter = ","; | ^~~~~~~~~ callbacks.cc:11710:33: error: 'delimiter' was not declared in this scope 11710 | delimiter = "\t"; | ^~~~~~~~~ callbacks.cc:11714:33: error: 'delimiter' was not declared in this scope 11714 | delimiter = ";"; | ^~~~~~~~~ callbacks.cc:11718:33: error: 'delimiter' was not declared in this scope 11718 | delimiter = " "; | ^~~~~~~~~ callbacks.cc:11722:33: error: 'delimiter' was not declared in this scope 11722 | delimiter = gtk_entry_get_text(GTK_ENTRY(gtk_builder_get_object(csvexport_builder, "csv_export_entry_delimiter_other"))); | ^~~~~~~~~ callbacks.cc:11726:20: error: 'delimiter' was not declared in this scope 11726 | if(delimiter.empty()) { | ^~~~~~~~~ callbacks.cc:11738:31: error: expected ';' before 'str2' 11738 | string str2 = gtk_entry_get_text(GTK_ENTRY(gtk_builder_get_object(csvexport_builder, "csv_export_entry_matrix"))); | ^~~~~ | ; callbacks.cc:11739:43: error: 'str2' was not declared in this scope 11739 | remove_blank_ends(str2); | ^~~~ callbacks.cc:11760:72: error: 'delimiter' was not declared in this scope 11760 | if(!CALCULATOR->exportCSV(*matrix_struct, str.c_str(), delimiter) && CALCULATOR->aborted()) { | ^~~~~~~~~ callbacks.cc: In function 'bool is_number(const gchar*)': callbacks.cc:11891:9: error: 'string' was not declared in this scope 11891 | string str = CALCULATOR->unlocalizeExpression(expr, evalops.parse_options); | ^~~~~~ callbacks.cc:11891:9: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:11892:32: error: 'str' was not declared in this scope; did you mean 'std'? 11892 | CALCULATOR->parseSigns(str); | ^~~ | std callbacks.cc: In function 'bool last_is_number(const gchar*)': callbacks.cc:11899:9: error: 'string' was not declared in this scope 11899 | string str = CALCULATOR->unlocalizeExpression(expr, evalops.parse_options); | ^~~~~~ callbacks.cc:11899:9: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:11900:32: error: 'str' was not declared in this scope; did you mean 'std'? 11900 | CALCULATOR->parseSigns(str); | ^~~ | std callbacks.cc: In function 'void convert_in_wUnits(int)': callbacks.cc:12091:17: error: 'old_fromValue' was not declared in this scope; did you mean 'fromValue'? 12091 | old_fromValue = fromValue; | ^~~~~~~~~~~~~ | fromValue callbacks.cc:12092:17: error: 'old_toValue' was not declared in this scope; did you mean 'toValue'? 12092 | old_toValue = toValue; | ^~~~~~~~~~~ | toValue callbacks.cc: In function 'void set_saved_mode()': callbacks.cc:12179:9: error: 'modes' was not declared in this scope 12179 | modes[1].precision = CALCULATOR->getPrecision(); | ^~~~~ callbacks.cc: At global scope: callbacks.cc:12191:21: error: 'string' was not declared in this scope 12191 | size_t save_mode_as(string name, bool *new_mode = NULL) { | ^~~~~~ callbacks.cc:12191:21: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:12191:34: error: expected primary-expression before 'bool' 12191 | size_t save_mode_as(string name, bool *new_mode = NULL) { | ^~~~ callbacks.cc:12191:55: error: expression list treated as compound expression in initializer [-fpermissive] 12191 | size_t save_mode_as(string name, bool *new_mode = NULL) { | ^ callbacks.cc: In function 'void load_mode(const mode_struct&)': callbacks.cc:12234:9: error: 'string' was not declared in this scope 12234 | string str = gtext; | ^~~~~~ callbacks.cc:12234:9: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:12236:38: error: 'str' was not declared in this scope; did you mean 'std'? 12236 | if(expression_has_changed || str.find_first_not_of(SPACES) == string::npos) { | ^~~ | std callbacks.cc:12236:71: error: 'string' is not a class, namespace, or enumeration 12236 | if(expression_has_changed || str.find_first_not_of(SPACES) == string::npos) { | ^~~~~~ callbacks.cc:12237:26: error: invalid conversion from 'const char*' to 'int' [-fpermissive] 12237 | setResult(NULL, true, false, false); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | const char* callbacks.cc: At global scope: callbacks.cc:12244:6: error: variable or field 'load_mode' declared void 12244 | void load_mode(string name) { | ^~~~~~~~~ callbacks.cc:12244:16: error: 'string' was not declared in this scope 12244 | void load_mode(string name) { | ^~~~~~ callbacks.cc:12244:16: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc: In function 'void load_mode(size_t)': callbacks.cc:12253:20: error: 'modes' was not declared in this scope 12253 | if(index < modes.size()) { | ^~~~~ callbacks.cc: In function 'void expression_set_from_undo_buffer()': callbacks.cc:12290:25: error: 'expression_undo_buffer' was not declared in this scope; did you mean 'expressionbuffer'? 12290 | if(undo_index < expression_undo_buffer.size()) { | ^~~~~~~~~~~~~~~~~~~~~~ | expressionbuffer callbacks.cc:12291:17: error: 'string' was not declared in this scope 12291 | string str_old = get_expression_text(); | ^~~~~~ callbacks.cc:12291:17: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:12292:23: error: expected ';' before 'str_new' 12292 | string str_new = expression_undo_buffer[undo_index]; | ^~~~~~~~ | ; callbacks.cc:12293:20: error: 'str_old' was not declared in this scope; did you mean 'strtold'? 12293 | if(str_old == str_new) return; | ^~~~~~~ | strtold callbacks.cc:12293:31: error: 'str_new' was not declared in this scope 12293 | if(str_old == str_new) return; | ^~~~~~~ callbacks.cc:12297:20: error: 'str_old' was not declared in this scope; did you mean 'strtold'? 12297 | if(str_old.length() > str_new.length()) { | ^~~~~~~ | strtold callbacks.cc:12297:39: error: 'str_new' was not declared in this scope 12297 | if(str_old.length() > str_new.length()) { | ^~~~~~~ callbacks.cc:12298:59: error: 'string' is not a class, namespace, or enumeration 12298 | if((i = str_old.find(str_new)) != string::npos) { | ^~~~~~ callbacks.cc:12315:47: error: expected ';' before 'str_test' 12315 | string str_test = str_old.substr(0, i); | ^~~~~~~~~ | ; callbacks.cc:12316:41: error: 'str_test' was not declared in this scope 12316 | str_test += str_old.substr(i + str_old.length() - str_new.length()); | ^~~~~~~~ callbacks.cc:12328:84: error: 'string' is not a class, namespace, or enumeration 12328 | while((i2 = str_test.find(')', i2 + 1)) != string::npos) { | ^~~~~~ callbacks.cc:12329:55: error: expected ';' before 'str_test2' 12329 | string str_test2 = str_test; | ^~~~~~~~~~ | ; callbacks.cc:12330:49: error: 'str_test2' was not declared in this scope 12330 | str_test2.erase(str_test2.begin() + i2); | ^~~~~~~~~ callbacks.cc:12347:59: error: 'string' is not a class, namespace, or enumeration 12347 | if((i = str_new.find(str_old)) != string::npos) { | ^~~~~~ callbacks.cc:12362:47: error: expected ';' before 'str_test' 12362 | string str_test = str_new.substr(0, i); | ^~~~~~~~~ | ; callbacks.cc:12363:41: error: 'str_test' was not declared in this scope 12363 | str_test += str_new.substr(i + str_new.length() - str_old.length()); | ^~~~~~~~ callbacks.cc:12374:84: error: 'string' is not a class, namespace, or enumeration 12374 | while((i2 = str_test.find(')', i2 + 1)) != string::npos) { | ^~~~~~ callbacks.cc:12375:55: error: expected ';' before 'str_test2' 12375 | string str_test2 = str_test; | ^~~~~~~~~~ | ; callbacks.cc:12376:49: error: 'str_test2' was not declared in this scope 12376 | str_test2.erase(str_test2.begin() + i2); | ^~~~~~~~~ callbacks.cc:12391:60: error: 'str_new' was not declared in this scope 12391 | gtk_text_buffer_set_text(expressionbuffer, str_new.c_str(), -1); | ^~~~~~~ callbacks.cc: In function 'void expression_redo()': callbacks.cc:12402:26: error: 'expression_undo_buffer' was not declared in this scope; did you mean 'expressionbuffer'? 12402 | if(undo_index >= expression_undo_buffer.size() - 1) return; | ^~~~~~~~~~~~~~~~~~~~~~ | expressionbuffer callbacks.cc: In function 'void on_expressiontext_populate_popup(GtkTextView*, GtkMenu*, gpointer)': callbacks.cc:12421:26: error: 'expression_undo_buffer' was not declared in this scope; did you mean 'expressionbuffer'? 12421 | if(undo_index >= expression_undo_buffer.size() - 1) gtk_widget_set_sensitive(item, FALSE); | ^~~~~~~~~~~~~~~~~~~~~~ | expressionbuffer callbacks.cc:12463:31: error: 'modes' was not declared in this scope 12463 | for(size_t i = 0; i < modes.size(); i++) { | ^~~~~ callbacks.cc:12472:40: error: 'modes' was not declared in this scope 12472 | gtk_widget_set_sensitive(item, modes.size() > 2); | ^~~~~ callbacks.cc: In function 'void on_menu_item_meta_mode_activate(GtkMenuItem*, gpointer)': callbacks.cc:12701:19: error: invalid conversion from 'const char*' to 'size_t' {aka 'long unsigned int'} [-fpermissive] 12701 | load_mode(name); | ^~~~ | | | const char* callbacks.cc:12252:23: note: initializing argument 1 of 'void load_mode(size_t)' 12252 | void load_mode(size_t index) { | ~~~~~~~^~~~~ callbacks.cc: In function 'void on_menu_item_meta_mode_save_activate(GtkMenuItem*, gpointer)': callbacks.cc:12716:31: error: 'modes' was not declared in this scope 12716 | for(size_t i = 2; i < modes.size(); i++) { | ^~~~~ callbacks.cc:12725:17: error: 'string' was not declared in this scope 12725 | string name = gtk_combo_box_text_get_active_text(GTK_COMBO_BOX_TEXT(entry)); | ^~~~~~ callbacks.cc:12725:17: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:12726:35: error: 'name' was not declared in this scope; did you mean 'tzname'? 12726 | remove_blank_ends(name); | ^~~~ | tzname callbacks.cc:12731:28: error: 'modes' was not declared in this scope 12731 | if(name == modes[0].name) { | ^~~~~ callbacks.cc:12735:44: error: 'save_mode_as' cannot be used as a function 12735 | size_t index = save_mode_as(name, &new_mode); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ callbacks.cc:12737:72: error: 'modes' was not declared in this scope 12737 | GtkWidget *item = gtk_menu_item_new_with_label(modes[index].name.c_str()); | ^~~~~ callbacks.cc:12742:25: error: 'mode_items' was not declared in this scope; did you mean 'set_mode_items'? 12742 | mode_items.push_back(item); | ^~~~~~~~~~ | set_mode_items callbacks.cc:12748:25: error: 'popup_result_mode_items' was not declared in this scope 12748 | popup_result_mode_items.push_back(item); | ^~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc: In function 'void on_menu_item_meta_mode_delete_activate(GtkMenuItem*, gpointer)': callbacks.cc:12766:31: error: 'modes' was not declared in this scope 12766 | for(size_t i = 2; i < modes.size(); i++) { | ^~~~~ callbacks.cc:12775:36: error: 'mode_items' was not declared in this scope; did you mean 'set_mode_items'? 12775 | gtk_widget_destroy(mode_items[index]); | ^~~~~~~~~~ | set_mode_items callbacks.cc:12776:36: error: 'popup_result_mode_items' was not declared in this scope 12776 | gtk_widget_destroy(popup_result_mode_items[index]); | ^~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:12777:17: error: 'modes' was not declared in this scope 12777 | modes.erase(modes.begin() + index); | ^~~~~ callbacks.cc: In function 'void load_preferences()': callbacks.cc:12796:9: error: 'default_plot_min' was not declared in this scope; did you mean 'default_plot_type'? 12796 | default_plot_min = "0"; | ^~~~~~~~~~~~~~~~ | default_plot_type callbacks.cc:12797:9: error: 'default_plot_max' was not declared in this scope; did you mean 'default_plot_type'? 12797 | default_plot_max = "10"; | ^~~~~~~~~~~~~~~~ | default_plot_type callbacks.cc:12798:9: error: 'default_plot_step' was not declared in this scope; did you mean 'default_plot_type'? 12798 | default_plot_step = "1"; | ^~~~~~~~~~~~~~~~~ | default_plot_type callbacks.cc:12805:9: error: 'default_plot_variable' was not declared in this scope; did you mean 'default_plot_style'? 12805 | default_plot_variable = "x"; | ^~~~~~~~~~~~~~~~~~~~~ | default_plot_style callbacks.cc:12890:21: error: 'save_mode_as' cannot be used as a function 12890 | save_mode_as(_("Preset")); | ~~~~~~~~~~~~^~~~~~~~~~~~~ callbacks.cc:12891:21: error: 'save_mode_as' cannot be used as a function 12891 | save_mode_as(_("Default")); | ~~~~~~~~~~~~^~~~~~~~~~~~~~ callbacks.cc:12920:9: error: 'custom_result_font' was not declared in this scope; did you mean 'use_custom_result_font'? 12920 | custom_result_font = ""; | ^~~~~~~~~~~~~~~~~~ | use_custom_result_font callbacks.cc:12921:9: error: 'custom_expression_font' was not declared in this scope; did you mean 'use_custom_expression_font'? 12921 | custom_expression_font = ""; | ^~~~~~~~~~~~~~~~~~~~~~ | use_custom_expression_font callbacks.cc:12922:9: error: 'custom_status_font' was not declared in this scope; did you mean 'use_custom_status_font'? 12922 | custom_status_font = ""; | ^~~~~~~~~~~~~~~~~~ | use_custom_status_font callbacks.cc:12923:9: error: 'status_error_color' was not declared in this scope; did you mean 'status_error_color_set'? 12923 | status_error_color = "#FF0000"; | ^~~~~~~~~~~~~~~~~~ | status_error_color_set callbacks.cc:12924:9: error: 'status_warning_color' was not declared in this scope; did you mean 'status_warning_color_set'? 12924 | status_warning_color = "#0000FF"; | ^~~~~~~~~~~~~~~~~~~~ | status_warning_color_set callbacks.cc:12944:9: error: 'expression_history' was not declared in this scope; did you mean 'expression_undo'? 12944 | expression_history.clear(); | ^~~~~~~~~~~~~~~~~~ | expression_undo callbacks.cc:12982:17: error: 'string' was not declared in this scope 12982 | string stmp, svalue, svar; | ^~~~~~ callbacks.cc:12982:17: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:12987:25: error: 'stmp' was not declared in this scope; did you mean 'tm'? 12987 | stmp = line; | ^~~~ | tm callbacks.cc:12989:61: error: 'string' is not a class, namespace, or enumeration 12989 | if((i = stmp.find_first_of("=")) != string::npos) { | ^~~~~~ callbacks.cc:12990:33: error: 'svar' was not declared in this scope 12990 | svar = stmp.substr(0, i); | ^~~~ callbacks.cc:12992:33: error: 'svalue' was not declared in this scope; did you mean 'GValue'? 12992 | svalue = stmp.substr(i + 1, stmp.length() - (i + 1)); | ^~~~~~ | GValue callbacks.cc:13089:46: error: 'modes' was not declared in this scope 13089 | else modes[mode_index].po.min_decimals = v; | ^~~~~ callbacks.cc:13092:46: error: 'modes' was not declared in this scope 13092 | else modes[mode_index].po.use_min_decimals = v; | ^~~~~ callbacks.cc:13095:46: error: 'modes' was not declared in this scope 13095 | else modes[mode_index].po.max_decimals = v; | ^~~~~ callbacks.cc:13098:46: error: 'modes' was not declared in this scope 13098 | else modes[mode_index].po.use_max_decimals = v; | ^~~~~ callbacks.cc:13101:46: error: 'modes' was not declared in this scope 13101 | else modes[mode_index].precision = v; | ^~~~~ callbacks.cc:13104:46: error: 'modes' was not declared in this scope 13104 | else modes[mode_index].po.min_exp = v; | ^~~~~ callbacks.cc:13108:54: error: 'modes' was not declared in this scope 13108 | else modes[mode_index].interval = v; | ^~~~~ callbacks.cc:13110:49: error: 'modes' was not declared in this scope 13110 | modes[mode_index].interval = true; | ^~~~~ callbacks.cc:13115:55: error: 'modes' was not declared in this scope 13115 | else {modes[mode_index].po.interval_display = INTERVAL_DISPLAY_SIGNIFICANT_DIGITS; modes[mode_index].adaptive_interval_display = true;} | ^~~~~ callbacks.cc:13120:63: error: 'modes' was not declared in this scope 13120 | else {modes[mode_index].po.interval_display = (IntervalDisplay) v; modes[mode_index].adaptive_interval_display = false;} | ^~~~~ callbacks.cc:13125:46: error: 'modes' was not declared in this scope 13125 | else modes[mode_index].po.negative_exponents = v; | ^~~~~ callbacks.cc:13128:46: error: 'modes' was not declared in this scope 13128 | else modes[mode_index].po.sort_options.minus_last = v; | ^~~~~ callbacks.cc:13131:46: error: 'modes' was not declared in this scope 13131 | else modes[mode_index].po.place_units_separately = v; | ^~~~~ callbacks.cc:13140:65: error: 'modes' was not declared in this scope 13140 | modes[mode_index].po.min_exp = EXP_PRECISION; | ^~~~~ callbacks.cc:13152:65: error: 'modes' was not declared in this scope 13152 | modes[mode_index].po.min_exp = EXP_SCIENTIFIC; | ^~~~~ callbacks.cc:13164:65: error: 'modes' was not declared in this scope 13164 | modes[mode_index].po.min_exp = EXP_PURE; | ^~~~~ callbacks.cc:13176:65: error: 'modes' was not declared in this scope 13176 | modes[mode_index].po.min_exp = EXP_NONE; | ^~~~~ callbacks.cc:13185:46: error: 'modes' was not declared in this scope 13185 | else modes[mode_index].po.use_unit_prefixes = v; | ^~~~~ callbacks.cc:13188:46: error: 'modes' was not declared in this scope 13188 | else modes[mode_index].po.use_prefixes_for_all_units = v; | ^~~~~ callbacks.cc:13191:46: error: 'modes' was not declared in this scope 13191 | else modes[mode_index].po.use_prefixes_for_currencies = v; | ^~~~~ callbacks.cc:13196:62: error: 'modes' was not declared in this scope 13196 | else modes[mode_index].po.number_fraction_format = FRACTION_DECIMAL; | ^~~~~ callbacks.cc:13201:62: error: 'modes' was not declared in this scope 13201 | else modes[mode_index].po.number_fraction_format = FRACTION_COMBINED; | ^~~~~ callbacks.cc:13206:62: error: 'modes' was not declared in this scope 13206 | else modes[mode_index].po.number_fraction_format = FRACTION_FRACTIONAL; | ^~~~~ callbacks.cc:13211:46: error: 'modes' was not declared in this scope 13211 | else modes[mode_index].po.restrict_fraction_length = (modes[mode_index].po.number_fraction_format == FRACTION_FRACTIONAL); | ^~~~~ callbacks.cc:13215:54: error: 'modes' was not declared in this scope 13215 | else modes[mode_index].po.number_fraction_format = (NumberFractionFormat) v; | ^~~~~ callbacks.cc:13218:46: error: 'modes' was not declared in this scope 13218 | else modes[mode_index].po.restrict_fraction_length = (modes[mode_index].po.number_fraction_format == FRACTION_FRACTIONAL); | ^~~~~ callbacks.cc:13227:46: error: 'modes' was not declared in this scope 13227 | else modes[mode_index].po.base = v; | ^~~~~ callbacks.cc:13230:46: error: 'modes' was not declared in this scope 13230 | else modes[mode_index].eo.parse_options.base = v; | ^~~~~ callbacks.cc:13234:54: error: 'modes' was not declared in this scope 13234 | else modes[mode_index].eo.parse_options.read_precision = (ReadPrecisionMode) v; | ^~~~~ callbacks.cc:13241:46: error: 'modes' was not declared in this scope 13241 | else modes[mode_index].eo.assume_denominators_nonzero = v; | ^~~~~ callbacks.cc:13244:46: error: 'modes' was not declared in this scope 13244 | else modes[mode_index].eo.warn_about_denominators_assumed_nonzero = v; | ^~~~~ callbacks.cc:13254:57: error: 'modes' was not declared in this scope 13254 | modes[mode_index].eo.structuring = (StructuringMode) v; | ^~~~~ callbacks.cc:13264:54: error: 'modes' was not declared in this scope 13264 | else modes[mode_index].eo.parse_options.angle_unit = (AngleUnit) v; | ^~~~~ callbacks.cc:13268:46: error: 'modes' was not declared in this scope 13268 | else modes[mode_index].eo.parse_options.functions_enabled = v; | ^~~~~ callbacks.cc:13271:46: error: 'modes' was not declared in this scope 13271 | else modes[mode_index].eo.parse_options.variables_enabled = v; | ^~~~~ callbacks.cc:13274:46: error: 'modes' was not declared in this scope 13274 | else modes[mode_index].eo.calculate_variables = !v; | ^~~~~ callbacks.cc:13277:46: error: 'modes' was not declared in this scope 13277 | else modes[mode_index].eo.calculate_variables = v; | ^~~~~ callbacks.cc:13280:46: error: 'modes' was not declared in this scope 13280 | else modes[mode_index].variable_units_enabled = v; | ^~~~~ callbacks.cc:13283:46: error: 'modes' was not declared in this scope 13283 | else modes[mode_index].eo.calculate_functions = v; | ^~~~~ callbacks.cc:13286:46: error: 'modes' was not declared in this scope 13286 | else modes[mode_index].eo.sync_units = v; | ^~~~~ callbacks.cc:13289:46: error: 'modes' was not declared in this scope 13289 | else modes[mode_index].eo.parse_options.unknowns_enabled = v; | ^~~~~ callbacks.cc:13292:46: error: 'modes' was not declared in this scope 13292 | else modes[mode_index].eo.parse_options.units_enabled = v; | ^~~~~ callbacks.cc:13295:46: error: 'modes' was not declared in this scope 13295 | else modes[mode_index].eo.allow_complex = v; | ^~~~~ callbacks.cc:13298:46: error: 'modes' was not declared in this scope 13298 | else modes[mode_index].eo.allow_infinite = v; | ^~~~~ callbacks.cc:13301:46: error: 'modes' was not declared in this scope 13301 | else modes[mode_index].po.abbreviate_names = v; | ^~~~~ callbacks.cc:13304:46: error: 'modes' was not declared in this scope 13304 | else modes[mode_index].po.abbreviate_names = v; | ^~~~~ callbacks.cc:13307:46: error: 'modes' was not declared in this scope 13307 | else modes[mode_index].po.use_all_prefixes = v; | ^~~~~ callbacks.cc:13310:46: error: 'modes' was not declared in this scope 13310 | else modes[mode_index].po.use_denominator_prefix = v; | ^~~~~ callbacks.cc:13317:54: error: 'modes' was not declared in this scope 13317 | else modes[mode_index].eo.auto_post_conversion = (AutoPostConversion) v; | ^~~~~ callbacks.cc:13322:54: error: 'modes' was not declared in this scope 13322 | else modes[mode_index].eo.mixed_units_conversion = (MixedUnitsConversion) v; | ^~~~~ callbacks.cc:13328:46: error: 'modes' was not declared in this scope 13328 | else modes[mode_index].po.indicate_infinite_series = v; | ^~~~~ callbacks.cc:13332:54: error: 'modes' was not declared in this scope 13332 | else modes[mode_index].po.show_ending_zeroes = v; | ^~~~~ callbacks.cc:13340:46: error: 'modes' was not declared in this scope 13340 | else modes[mode_index].po.round_halfway_to_even = v; | ^~~~~ callbacks.cc:13345:49: error: 'modes' was not declared in this scope 13345 | modes[mode_index].eo.approximation = APPROXIMATION_EXACT; | ^~~~~ callbacks.cc:13353:57: error: 'modes' was not declared in this scope 13353 | modes[mode_index].eo.approximation = (ApproximationMode) v; | ^~~~~ callbacks.cc:13359:54: error: 'modes' was not declared in this scope 13359 | else modes[mode_index].eo.interval_calculation = (IntervalCalculation) v; | ^~~~~ callbacks.cc:13363:46: error: 'modes' was not declared in this scope 13363 | else modes[mode_index].rpn_mode = v; | ^~~~~ callbacks.cc:13368:46: error: 'modes' was not declared in this scope 13368 | else modes[mode_index].eo.parse_options.rpn = v; | ^~~~~ callbacks.cc:13374:49: error: 'modes' was not declared in this scope 13374 | modes[mode_index].eo.parse_options.limit_implicit_multiplication = v; | ^~~~~ callbacks.cc:13382:57: error: 'modes' was not declared in this scope 13382 | modes[mode_index].eo.parse_options.parsing_mode = (ParsingMode) v; | ^~~~~ callbacks.cc:13390:54: error: 'modes' was not declared in this scope 13390 | else modes[mode_index].at = (AssumptionType) v; | ^~~~~ callbacks.cc:13398:54: error: 'modes' was not declared in this scope 13398 | else modes[mode_index].as = (AssumptionSign) v; | ^~~~~ callbacks.cc:13402:46: error: 'modes' was not declared in this scope 13402 | else modes[mode_index].po.spacious = v; | ^~~~~ callbacks.cc:13405:46: error: 'modes' was not declared in this scope 13405 | else modes[mode_index].po.excessive_parenthesis = v; | ^~~~~ callbacks.cc:13408:46: error: 'modes' was not declared in this scope 13408 | else modes[mode_index].po.short_multiplication = v; | ^~~~~ callbacks.cc:13484:59: error: 'string' is not a class, namespace, or enumeration 13484 | if(v_i == string::npos) { | ^~~~~~ callbacks.cc:13488:65: error: 'recent_functions_pre' was not declared in this scope 13488 | recent_functions_pre.push_back(svar); | ^~~~~~~~~~~~~~~~~~~~ callbacks.cc:13496:65: error: 'recent_functions_pre' was not declared in this scope 13496 | recent_functions_pre.push_back(svar); | ^~~~~~~~~~~~~~~~~~~~ callbacks.cc:13504:59: error: 'string' is not a class, namespace, or enumeration 13504 | if(v_i == string::npos) { | ^~~~~~ callbacks.cc:13508:65: error: 'recent_variables_pre' was not declared in this scope 13508 | recent_variables_pre.push_back(svar); | ^~~~~~~~~~~~~~~~~~~~ callbacks.cc:13516:65: error: 'recent_variables_pre' was not declared in this scope 13516 | recent_variables_pre.push_back(svar); | ^~~~~~~~~~~~~~~~~~~~ callbacks.cc:13524:59: error: 'string' is not a class, namespace, or enumeration 13524 | if(v_i == string::npos) { | ^~~~~~ callbacks.cc:13528:65: error: 'recent_units_pre' was not declared in this scope 13528 | recent_units_pre.push_back(svar); | ^~~~~~~~~~~~~~~~ callbacks.cc:13536:65: error: 'recent_units_pre' was not declared in this scope 13536 | recent_units_pre.push_back(svar); | ^~~~~~~~~~~~~~~~ callbacks.cc:13541:41: error: 'latest_button_unit_pre' was not declared in this scope; did you mean 'latest_button_unit'? 13541 | latest_button_unit_pre = svalue; | ^~~~~~~~~~~~~~~~~~~~~~ | latest_button_unit callbacks.cc:13543:41: error: 'latest_button_currency_pre' was not declared in this scope; did you mean 'latest_button_currency'? 13543 | latest_button_currency_pre = svalue; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | latest_button_currency callbacks.cc:13579:41: error: 'inhistory' was not declared in this scope 13579 | inhistory.push_front(svalue); | ^~~~~~~~~ callbacks.cc:13580:41: error: 'inhistory_type' was not declared in this scope; did you mean 'historystore'? 13580 | inhistory_type.push_front(QALCULATE_HISTORY_OLD); | ^~~~~~~~~~~~~~ | historystore callbacks.cc:13582:41: error: 'inhistory' was not declared in this scope 13582 | inhistory.push_front(svalue); | ^~~~~~~~~ callbacks.cc:13583:41: error: 'inhistory_type' was not declared in this scope; did you mean 'historystore'? 13583 | inhistory_type.push_front(QALCULATE_HISTORY_OLD); | ^~~~~~~~~~~~~~ | historystore callbacks.cc:13585:41: error: 'inhistory' was not declared in this scope 13585 | inhistory.push_front(svalue); | ^~~~~~~~~ callbacks.cc:13586:41: error: 'inhistory_type' was not declared in this scope; did you mean 'historystore'? 13586 | inhistory_type.push_front(QALCULATE_HISTORY_EXPRESSION); | ^~~~~~~~~~~~~~ | historystore callbacks.cc:13588:41: error: 'inhistory' was not declared in this scope 13588 | inhistory.push_front(svalue); | ^~~~~~~~~ callbacks.cc:13589:41: error: 'inhistory_type' was not declared in this scope; did you mean 'historystore'? 13589 | inhistory_type.push_front(QALCULATE_HISTORY_TRANSFORMATION); | ^~~~~~~~~~~~~~ | historystore callbacks.cc:13591:41: error: 'inhistory' was not declared in this scope 13591 | inhistory.push_front(svalue); | ^~~~~~~~~ callbacks.cc:13592:41: error: 'inhistory_type' was not declared in this scope; did you mean 'historystore'? 13592 | inhistory_type.push_front(QALCULATE_HISTORY_RESULT); | ^~~~~~~~~~~~~~ | historystore callbacks.cc:13594:41: error: 'inhistory' was not declared in this scope 13594 | inhistory.push_front(svalue); | ^~~~~~~~~ callbacks.cc:13595:41: error: 'inhistory_type' was not declared in this scope; did you mean 'historystore'? 13595 | inhistory_type.push_front(QALCULATE_HISTORY_RESULT_APPROXIMATE); | ^~~~~~~~~~~~~~ | historystore callbacks.cc:13597:41: error: 'inhistory' was not declared in this scope 13597 | inhistory.push_front(svalue); | ^~~~~~~~~ callbacks.cc:13598:64: error: 'inhistory_type' was not declared in this scope; did you mean 'historystore'? 13598 | if(old_history_format) inhistory_type.push_front(QALCULATE_HISTORY_PARSE_WITHEQUALS); | ^~~~~~~~~~~~~~ | historystore callbacks.cc:13599:46: error: 'inhistory_type' was not declared in this scope; did you mean 'historystore'? 13599 | else inhistory_type.push_front(QALCULATE_HISTORY_PARSE); | ^~~~~~~~~~~~~~ | historystore callbacks.cc:13601:41: error: 'inhistory' was not declared in this scope 13601 | inhistory.push_front(svalue); | ^~~~~~~~~ callbacks.cc:13602:41: error: 'inhistory_type' was not declared in this scope; did you mean 'historystore'? 13602 | inhistory_type.push_front(QALCULATE_HISTORY_PARSE_WITHEQUALS); | ^~~~~~~~~~~~~~ | historystore callbacks.cc:13604:41: error: 'inhistory' was not declared in this scope 13604 | inhistory.push_front(svalue); | ^~~~~~~~~ callbacks.cc:13605:41: error: 'inhistory_type' was not declared in this scope; did you mean 'historystore'? 13605 | inhistory_type.push_front(QALCULATE_HISTORY_PARSE_APPROXIMATE); | ^~~~~~~~~~~~~~ | historystore callbacks.cc:13607:41: error: 'inhistory' was not declared in this scope 13607 | inhistory.push_front(svalue); | ^~~~~~~~~ callbacks.cc:13608:41: error: 'inhistory_type' was not declared in this scope; did you mean 'historystore'? 13608 | inhistory_type.push_front(QALCULATE_HISTORY_REGISTER_MOVED); | ^~~~~~~~~~~~~~ | historystore callbacks.cc:13610:41: error: 'inhistory' was not declared in this scope 13610 | inhistory.push_front(svalue); | ^~~~~~~~~ callbacks.cc:13611:41: error: 'inhistory_type' was not declared in this scope; did you mean 'historystore'? 13611 | inhistory_type.push_front(QALCULATE_HISTORY_RPN_OPERATION); | ^~~~~~~~~~~~~~ | historystore callbacks.cc:13613:41: error: 'inhistory' was not declared in this scope 13613 | inhistory.push_front(svalue); | ^~~~~~~~~ callbacks.cc:13614:41: error: 'inhistory_type' was not declared in this scope; did you mean 'historystore'? 13614 | inhistory_type.push_front(QALCULATE_HISTORY_WARNING); | ^~~~~~~~~~~~~~ | historystore callbacks.cc:13616:41: error: 'inhistory' was not declared in this scope 13616 | inhistory.push_front(svalue); | ^~~~~~~~~ callbacks.cc:13617:41: error: 'inhistory_type' was not declared in this scope; did you mean 'historystore'? 13617 | inhistory_type.push_front(QALCULATE_HISTORY_ERROR); | ^~~~~~~~~~~~~~ | historystore callbacks.cc:13619:44: error: 'inhistory' was not declared in this scope 13619 | if(inhistory.size() > 0) { | ^~~~~~~~~ callbacks.cc:13630:100: error: 'save_mode_as' cannot be used as a function 13630 | mode_index = save_mode_as(stmp.substr(5, stmp.length() - 5)); | ^ callbacks.cc:13648:35: error: 'inhistory' was not declared in this scope 13648 | initial_inhistory_index = inhistory.size() - 1; | ^~~~~~~~~ callbacks.cc: In function 'void save_preferences(bool)': callbacks.cc:13663:9: error: 'string' was not declared in this scope 13663 | string homedir = getLocalDir(); | ^~~~~~ callbacks.cc:13663:9: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:13664:26: error: 'homedir' was not declared in this scope; did you mean 'rmdir'? 13664 | recursiveMakeDir(homedir); | ^~~~~~~ | rmdir callbacks.cc:13770:104: error: 'custom_result_font' was not declared in this scope; did you mean 'use_custom_result_font'? 13770 | if(use_custom_result_font || save_custom_result_font) fprintf(file, "custom_result_font=%s\n", custom_result_font.c_str()); | ^~~~~~~~~~~~~~~~~~ | use_custom_result_font callbacks.cc:13771:116: error: 'custom_expression_font' was not declared in this scope; did you mean 'use_custom_expression_font'? 13771 | if(use_custom_expression_font || save_custom_expression_font) fprintf(file, "custom_expression_font=%s\n", custom_expression_font.c_str()); | ^~~~~~~~~~~~~~~~~~~~~~ | use_custom_expression_font callbacks.cc:13772:104: error: 'custom_status_font' was not declared in this scope; did you mean 'use_custom_status_font'? 13772 | if(use_custom_status_font || save_custom_status_font) fprintf(file, "custom_status_font=%s\n", custom_status_font.c_str()); | ^~~~~~~~~~~~~~~~~~ | use_custom_status_font callbacks.cc:13773:77: error: 'status_error_color' was not declared in this scope; did you mean 'status_error_color_set'? 13773 | if(status_error_color_set) fprintf(file, "status_error_color=%s\n", status_error_color.c_str()); | ^~~~~~~~~~~~~~~~~~ | status_error_color_set callbacks.cc:13774:81: error: 'status_warning_color' was not declared in this scope; did you mean 'status_warning_color_set'? 13774 | if(status_warning_color_set) fprintf(file, "status_warning_color=%s\n", status_warning_color.c_str()); | ^~~~~~~~~~~~~~~~~~~~ | status_warning_color_set callbacks.cc:13778:31: error: 'expression_history' was not declared in this scope; did you mean 'expression_undo'? 13778 | for(size_t i = 0; i < expression_history.size(); i++) { | ^~~~~~~~~~~~~~~~~~ | expression_undo callbacks.cc:13784:21: error: 'inhistory' was not declared in this scope 13784 | size_t hi = inhistory.size(); | ^~~~~~~~~ callbacks.cc:13787:24: error: 'inhistory_type' was not declared in this scope; did you mean 'historystore'? 13787 | switch(inhistory_type[hi]) { | ^~~~~~~~~~~~~~ | historystore callbacks.cc:13852:26: error: 'string' is not a class, namespace, or enumeration 13852 | if(i3 == string::npos) { | ^~~~~~ callbacks.cc:13858:37: error: 'string' is not a class, namespace, or enumeration 13858 | while(i2 != string::npos) { | ^~~~~~ callbacks.cc:13869:28: error: 'recent_functions' was not declared in this scope; did you mean 'insert_function'? 13869 | for(int i = (int) (recent_functions.size()) - 1; i >= 0; i--) { | ^~~~~~~~~~~~~~~~ | insert_function callbacks.cc:13875:28: error: 'recent_variables' was not declared in this scope; did you mean 'insert_variable'? 13875 | for(int i = (int) (recent_variables.size()) - 1; i >= 0; i--) { | ^~~~~~~~~~~~~~~~ | insert_variable callbacks.cc:13881:28: error: 'recent_units' was not declared in this scope 13881 | for(int i = (int) (recent_units.size()) - 1; i >= 0; i--) { | ^~~~~~~~~~~~ callbacks.cc:13890:31: error: 'modes' was not declared in this scope; did you mean 'mode'? 13890 | for(size_t i = 1; i < modes.size(); i++) { | ^~~~~ | mode callbacks.cc:13955:40: error: 'default_plot_min' was not declared in this scope; did you mean 'default_plot_type'? 13955 | fprintf(file, "plot_min=%s\n", default_plot_min.c_str()); | ^~~~~~~~~~~~~~~~ | default_plot_type callbacks.cc:13956:40: error: 'default_plot_max' was not declared in this scope; did you mean 'default_plot_type'? 13956 | fprintf(file, "plot_max=%s\n", default_plot_max.c_str()); | ^~~~~~~~~~~~~~~~ | default_plot_type callbacks.cc:13957:41: error: 'default_plot_step' was not declared in this scope; did you mean 'default_plot_type'? 13957 | fprintf(file, "plot_step=%s\n", default_plot_step.c_str()); | ^~~~~~~~~~~~~~~~~ | default_plot_type callbacks.cc:13960:45: error: 'default_plot_variable' was not declared in this scope; did you mean 'default_plot_style'? 13960 | fprintf(file, "plot_variable=%s\n", default_plot_variable.c_str()); | ^~~~~~~~~~~~~~~~~~~~~ | default_plot_style callbacks.cc: In function 'void on_completion_match_selected(GtkTreeView*, GtkTreePath*, GtkTreeViewColumn*, gpointer)': callbacks.cc:14167:9: error: 'string' was not declared in this scope 14167 | string str; | ^~~~~~ callbacks.cc:14167:9: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:14241:17: error: 'str' was not declared in this scope; did you mean 'std'? 14241 | str = ename->name; | ^~~ | std callbacks.cc:14245:31: error: 'string' does not name a type; did you mean 'GString'? 14245 | const string *pname; | ^~~~~~ | GString callbacks.cc:14246:41: error: 'pname' was not declared in this scope; did you mean 'ename'? 14246 | if(name_i == 0) pname = &prefix->longName(false); | ^~~~~ | ename callbacks.cc:14247:46: error: 'pname' was not declared in this scope; did you mean 'ename'? 14247 | else if(name_i == 1) pname = &prefix->shortName(false); | ^~~~~ | ename callbacks.cc:14248:30: error: 'pname' was not declared in this scope; did you mean 'ename'? 14248 | else pname = &prefix->unicodeName(false); | ^~~~~ | ename callbacks.cc:14249:29: error: 'pname' was not declared in this scope; did you mean 'ename'? 14249 | if(!pname->empty() && strlen(gstr2) <= pname->length()) { | ^~~~~ | ename callbacks.cc:14258:87: error: 'str' was not declared in this scope; did you mean 'std'? 14258 | if(name_i == 1 && printops.use_unicode_signs) str = prefix->unicodeName(); | ^~~ | std callbacks.cc:14259:46: error: 'str' was not declared in this scope; did you mean 'std'? 14259 | else str = *pname; | ^~~ | std callbacks.cc:14264:20: error: 'str' was not declared in this scope; did you mean 'std'? 14264 | if(str.empty()) str = prefix->longName(); | ^~~ | std callbacks.cc:14269:17: error: 'str' was not declared in this scope; did you mean 'gstr'? 14269 | str = gstr; | ^~~ | gstr callbacks.cc:14271:25: error: 'string' is not a class, namespace, or enumeration 14271 | if(i != string::npos) {str = str.substr(0, i - 1);} | ^~~~~~ callbacks.cc:14284:73: error: 'str' was not declared in this scope; did you mean 'gstr'? 14284 | gtk_text_buffer_insert(expressionbuffer, &ipos, str.c_str(), -1); | ^~~ | gstr callbacks.cc:14287:25: error: 'str' was not declared in this scope; did you mean 'gstr'? 14287 | str += "()"; | ^~~ | gstr callbacks.cc:14294:65: error: 'str' was not declared in this scope; did you mean 'std'? 14294 | gtk_text_buffer_insert(expressionbuffer, &ipos, str.c_str(), -1); | ^~~ | std callbacks.cc: In function 'void on_colorbutton_status_error_color_color_set(GtkColorButton*, gpointer)': callbacks.cc:14313:9: error: 'status_error_color' was not declared in this scope; did you mean 'status_error_color_set'? 14313 | status_error_color = color_str; | ^~~~~~~~~~~~~~~~~~ | status_error_color_set callbacks.cc: In function 'void on_colorbutton_status_warning_color_color_set(GtkColorButton*, gpointer)': callbacks.cc:14322:9: error: 'status_warning_color' was not declared in this scope; did you mean 'status_warning_color_set'? 14322 | status_warning_color = color_str; | ^~~~~~~~~~~~~~~~~~~~ | status_warning_color_set callbacks.cc: In function 'void on_preferences_checkbutton_display_expression_status_toggled(GtkToggleButton*, gpointer)': callbacks.cc:14453:17: error: 'set_status_text' was not declared in this scope; did you mean 'update_status_text'? 14453 | set_status_text(""); | ^~~~~~~~~~~~~~~ | update_status_text callbacks.cc: In function 'void on_preferences_checkbutton_custom_result_font_toggled(GtkToggleButton*, gpointer)': callbacks.cc:14462:48: error: 'custom_result_font' was not declared in this scope; did you mean 'use_custom_result_font'? 14462 | gchar *gstr = font_name_to_css(custom_result_font.c_str()); | ^~~~~~~~~~~~~~~~~~ | use_custom_result_font callbacks.cc: In function 'void on_preferences_checkbutton_custom_expression_font_toggled(GtkToggleButton*, gpointer)': callbacks.cc:14481:48: error: 'custom_expression_font' was not declared in this scope; did you mean 'use_custom_expression_font'? 14481 | gchar *gstr = font_name_to_css(custom_expression_font.c_str()); | ^~~~~~~~~~~~~~~~~~~~~~ | use_custom_expression_font callbacks.cc: In function 'void on_preferences_checkbutton_custom_status_font_toggled(GtkToggleButton*, gpointer)': callbacks.cc:14499:48: error: 'custom_status_font' was not declared in this scope; did you mean 'use_custom_status_font'? 14499 | gchar *gstr = font_name_to_css(custom_status_font.c_str()); | ^~~~~~~~~~~~~~~~~~ | use_custom_status_font callbacks.cc: In function 'void on_preferences_button_result_font_font_set(GtkFontButton*, gpointer)': callbacks.cc:14611:9: error: 'custom_result_font' was not declared in this scope; did you mean 'use_custom_result_font'? 14611 | custom_result_font = gtk_font_chooser_get_font(GTK_FONT_CHOOSER(w)); | ^~~~~~~~~~~~~~~~~~ | use_custom_result_font callbacks.cc: In function 'void on_preferences_button_expression_font_font_set(GtkFontButton*, gpointer)': callbacks.cc:14626:9: error: 'custom_expression_font' was not declared in this scope; did you mean 'use_custom_expression_font'? 14626 | custom_expression_font = gtk_font_chooser_get_font(GTK_FONT_CHOOSER(w)); | ^~~~~~~~~~~~~~~~~~~~~~ | use_custom_expression_font callbacks.cc: In function 'void on_preferences_button_status_font_font_set(GtkFontButton*, gpointer)': callbacks.cc:14641:9: error: 'custom_status_font' was not declared in this scope; did you mean 'use_custom_status_font'? 14641 | custom_status_font = gtk_font_chooser_get_font(GTK_FONT_CHOOSER(w)); | ^~~~~~~~~~~~~~~~~~ | use_custom_status_font callbacks.cc: In function 'void update_resultview_popup()': callbacks.cc:14931:17: error: 'vector' was not declared in this scope 14931 | vector to_us; | ^~~~~~ callbacks.cc:14931:17: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stl_vector.h:423:11: note: 'std::vector' 423 | class vector : protected _Vector_base<_Tp, _Alloc> | ^~~~~~ /usr/include/c++/12.2.0/vector:84:13: note: 'std::pmr::vector' 84 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>; | ^~~~~~ callbacks.cc:14931:28: error: expected primary-expression before '*' token 14931 | vector to_us; | ^ callbacks.cc:14931:29: error: expected primary-expression before '>' token 14931 | vector to_us; | ^ callbacks.cc:14931:31: error: 'to_us' was not declared in this scope; did you mean 'top_ips'? 14931 | vector to_us; | ^~~~~ | top_ips callbacks.cc:14943:105: error: 'string_is_less' cannot be used as a function 14943 | if(string_is_less(u->title(true), to_us[i2]->title(true))) { | ^ interface.h:18:111: error: 'unordered_map' was not declared in this scope 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~ interface.h:18:111: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~ interface.h:18:111: note: suggested alternatives: 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~ interface.h:18:111: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~ /usr/include/c++/12.2.0/bits/unordered_map.h:102:11: note: 'std::unordered_map' 102 | class unordered_map | ^~~~~~~~~~~~~ /usr/include/c++/12.2.0/unordered_map:64:13: note: 'std::pmr::unordered_map' 64 | using unordered_map | ^~~~~~~~~~~~~ interface.h:18:125: error: 'string' was not declared in this scope 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~ interface.h:18:125: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~ interface.h:18:125: note: suggested alternatives: 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~ interface.h:18:125: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~ /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ interface.h:18:142: error: expected primary-expression before '*' token 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^ callbacks.cc:14953:33: note: in expansion of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 14953 | MENU_ITEM_WITH_POINTER_AND_FLAG(to_us[i]->title(true).c_str(), convert_to_unit, to_us[i]) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ interface.h:18:143: error: expected primary-expression before '>' token 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^ callbacks.cc:14953:33: note: in expansion of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 14953 | MENU_ITEM_WITH_POINTER_AND_FLAG(to_us[i]->title(true).c_str(), convert_to_unit, to_us[i]) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ interface.h:18:146: error: '::const_iterator' has not been declared 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~~ interface.h:18:146: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~~ interface.h:18:212: error: 'it_flag' was not declared in this scope 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~ interface.h:18:212: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~ interface.h:18:223: error: 'flag_images' was not declared in this scope 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~ interface.h:18:223: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~ callbacks.cc:14955:36: error: expected primary-expression before '*' token 14955 | vector to_us2; | ^ callbacks.cc:14955:37: error: expected primary-expression before '>' token 14955 | vector to_us2; | ^ callbacks.cc:14955:39: error: 'to_us2' was not declared in this scope 14955 | vector to_us2; | ^~~~~~ interface.h:18:111: error: 'unordered_map' was not declared in this scope 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~ interface.h:18:111: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~ interface.h:18:111: note: suggested alternatives: 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~ interface.h:18:111: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~ /usr/include/c++/12.2.0/bits/unordered_map.h:102:11: note: 'std::unordered_map' 102 | class unordered_map | ^~~~~~~~~~~~~ /usr/include/c++/12.2.0/unordered_map:64:13: note: 'std::pmr::unordered_map' 64 | using unordered_map | ^~~~~~~~~~~~~ interface.h:18:125: error: 'string' was not declared in this scope 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~ interface.h:18:125: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~ interface.h:18:125: note: suggested alternatives: 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~ interface.h:18:125: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~ /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ interface.h:18:142: error: expected primary-expression before '*' token 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^ callbacks.cc:14977:41: note: in expansion of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 14977 | MENU_ITEM_WITH_POINTER_AND_FLAG(to_us2[i]->title(true).c_str(), convert_to_unit, to_us2[i]) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ interface.h:18:143: error: expected primary-expression before '>' token 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^ callbacks.cc:14977:41: note: in expansion of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 14977 | MENU_ITEM_WITH_POINTER_AND_FLAG(to_us2[i]->title(true).c_str(), convert_to_unit, to_us2[i]) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ interface.h:18:146: error: '::const_iterator' has not been declared 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~~ interface.h:18:146: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~~ interface.h:18:212: error: 'it_flag' was not declared in this scope 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~ interface.h:18:212: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~ interface.h:18:223: error: 'flag_images' was not declared in this scope 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~ interface.h:18:223: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~ callbacks.cc:14982:25: error: 'string' was not declared in this scope 14982 | string s_cat = u_result->category(); | ^~~~~~ callbacks.cc:14982:25: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:14984:72: error: 's_cat' was not declared in this scope; did you mean 'strcat'? 14984 | if(CALCULATOR->units[i]->category() == s_cat) { | ^~~~~ | strcat callbacks.cc:14989:113: error: 'string_is_less' cannot be used as a function 14989 | if(string_is_less(u->title(true), to_us[i2]->title(true))) { | ^ callbacks.cc: In function 'gboolean on_units_entry_from_val_focus_out_event(GtkEntry*, GdkEventFocus*, gpointer)': callbacks.cc:15288:12: error: 'old_fromValue' was not declared in this scope 15288 | if(old_fromValue != gtk_entry_get_text(GTK_ENTRY(gtk_builder_get_object(units_builder, "units_entry_from_val")))) convert_in_wUnits(0); | ^~~~~~~~~~~~~ callbacks.cc: In function 'gboolean on_units_entry_to_val_focus_out_event(GtkEntry*, GdkEventFocus*, gpointer)': callbacks.cc:15292:12: error: 'old_toValue' was not declared in this scope 15292 | if(old_toValue != gtk_entry_get_text(GTK_ENTRY(gtk_builder_get_object(units_builder, "units_entry_to_val")))) convert_in_wUnits(1); | ^~~~~~~~~~~ callbacks.cc: In function 'gboolean on_gcalc_exit(GtkWidget*, GdkEvent*, gpointer)': callbacks.cc:15376:31: error: 'history_parsed' was not declared in this scope; did you mean 'historystore'? 15376 | for(size_t i = 0; i < history_parsed.size(); i++) { | ^~~~~~~~~~~~~~ | historystore callbacks.cc:15378:20: error: 'history_answer' was not declared in this scope; did you mean 'history_index'? 15378 | if(history_answer[i]) history_answer[i]->unref(); | ^~~~~~~~~~~~~~ | history_index callbacks.cc: In function 'void do_completion()': callbacks.cc:15820:9: error: 'string' was not declared in this scope 15820 | string str = gstr2; | ^~~~~~ callbacks.cc:15820:9: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:15822:12: error: 'str' was not declared in this scope; did you mean 'std'? 15822 | if(str.length() < (size_t) completion_min) {gtk_widget_hide(completion_window); return;} | ^~~ | std callbacks.cc:15826:12: error: 'str' was not declared in this scope; did you mean 'std'? 15826 | if(str.length() > 0 && is_not_in(NUMBERS NOT_IN_NAMES, str[0]) && gtk_tree_model_get_iter_first(GTK_TREE_MODEL(completion_store), &iter)) { | ^~~ | std callbacks.cc:15827:23: error: expected ';' before 'str2' 15827 | string str2, str3, str4; | ^~~~~ | ; callbacks.cc:15834:47: error: 'string' does not name a type; did you mean 'GString'? 15834 | const string *pname; | ^~~~~~ | GString callbacks.cc:15835:57: error: 'pname' was not declared in this scope; did you mean 'tzname'? 15835 | if(name_i == 0) pname = &prefix->shortName(false); | ^~~~~ | tzname callbacks.cc:15836:62: error: 'pname' was not declared in this scope; did you mean 'tzname'? 15836 | else if(name_i == 1) pname = &prefix->longName(false); | ^~~~~ | tzname callbacks.cc:15837:46: error: 'pname' was not declared in this scope; did you mean 'tzname'? 15837 | else pname = &prefix->unicodeName(false); | ^~~~~ | tzname callbacks.cc:15838:45: error: 'pname' was not declared in this scope; did you mean 'tzname'? 15838 | if(!pname->empty() && pname->length() < str.length() - completion_min + 1) { | ^~~~~ | tzname callbacks.cc:15847:60: error: 'str2' was not declared in this scope; did you mean 'gstr2'? 15847 | if(str2.empty()) {p2 = prefix; str2 = str.substr(pname->length());} | ^~~~ | gstr2 callbacks.cc:15848:65: error: 'str3' was not declared in this scope 15848 | else if(str3.empty()) {p3 = prefix; str3 = str.substr(pname->length());} | ^~~~ callbacks.cc:15849:65: error: 'str4' was not declared in this scope 15849 | else if(str4.empty()) {p4 = prefix; str4 = str.substr(pname->length());} | ^~~~ callbacks.cc:15873:119: error: 'str2' was not declared in this scope; did you mean 'gstr2'? 15873 | if(icmp == 1 && (item->type() != TYPE_UNIT || str2.empty() || !((Unit*) item)->useWithPrefixesByDefault())) break; | ^~~~ | gstr2 callbacks.cc:15874:79: error: 'string' does not name a type; did you mean 'GString'? 15874 | const string *cmpstr; | ^~~~~~ | GString callbacks.cc:15875:87: error: 'cmpstr' was not declared in this scope 15875 | if(icmp == 0) cmpstr = &str; | ^~~~~~ callbacks.cc:15876:92: error: 'cmpstr' was not declared in this scope 15876 | else if(icmp == 1) cmpstr = &str2; | ^~~~~~ callbacks.cc:15876:102: error: 'str2' was not declared in this scope; did you mean 'gstr2'? 15876 | else if(icmp == 1) cmpstr = &str2; | ^~~~ | gstr2 callbacks.cc:15877:92: error: 'cmpstr' was not declared in this scope 15877 | else if(icmp == 2) cmpstr = &str3; | ^~~~~~ callbacks.cc:15877:102: error: 'str3' was not declared in this scope 15877 | else if(icmp == 2) cmpstr = &str3; | ^~~~ callbacks.cc:15878:78: error: 'cmpstr' was not declared in this scope 15878 | else cmpstr = &str4; | ^~~~~~ callbacks.cc:15878:88: error: 'str4' was not declared in this scope 15878 | else cmpstr = &str4; | ^~~~ callbacks.cc:15879:76: error: 'cmpstr' was not declared in this scope 15879 | if(cmpstr->empty()) break; | ^~~~~~ callbacks.cc:15880:76: error: 'cmpstr' was not declared in this scope 15880 | if(cmpstr->length() <= ename->name.length()) { | ^~~~~~ callbacks.cc:15905:103: error: 'str2' was not declared in this scope; did you mean 'gstr2'? 15905 | if(icmp == 1 && (item->type() != TYPE_UNIT || str2.empty() || !((Unit*) item)->useWithPrefixesByDefault())) break; | ^~~~ | gstr2 callbacks.cc:15906:63: error: 'string' does not name a type; did you mean 'GString'? 15906 | const string *cmpstr; | ^~~~~~ | GString callbacks.cc:15907:71: error: 'cmpstr' was not declared in this scope 15907 | if(icmp == 0) cmpstr = &str; | ^~~~~~ callbacks.cc:15908:76: error: 'cmpstr' was not declared in this scope 15908 | else if(icmp == 1) cmpstr = &str2; | ^~~~~~ callbacks.cc:15908:86: error: 'str2' was not declared in this scope; did you mean 'gstr2'? 15908 | else if(icmp == 1) cmpstr = &str2; | ^~~~ | gstr2 callbacks.cc:15909:76: error: 'cmpstr' was not declared in this scope 15909 | else if(icmp == 2) cmpstr = &str3; | ^~~~~~ callbacks.cc:15909:86: error: 'str3' was not declared in this scope 15909 | else if(icmp == 2) cmpstr = &str3; | ^~~~ callbacks.cc:15910:62: error: 'cmpstr' was not declared in this scope 15910 | else cmpstr = &str4; | ^~~~~~ callbacks.cc:15910:72: error: 'str4' was not declared in this scope 15910 | else cmpstr = &str4; | ^~~~ callbacks.cc:15911:60: error: 'cmpstr' was not declared in this scope 15911 | if(cmpstr->empty()) break; | ^~~~~~ callbacks.cc:15913:99: error: 'cmpstr' was not declared in this scope 15913 | if(item->getName(name_i).name == *cmpstr) { | ^~~~~~ callbacks.cc:15932:55: error: expected ';' before 'nstr' 15932 | string nstr; | ^~~~~ | ; callbacks.cc:15934:57: error: 'nstr' was not declared in this scope; did you mean 'gstr'? 15934 | nstr = gstr; | ^~~~ | gstr callbacks.cc:15936:65: error: 'string' is not a class, namespace, or enumeration 15936 | if(i != string::npos && i > 2) { | ^~~~~~ callbacks.cc:15946:60: error: 'nstr' was not declared in this scope; did you mean 'gstr'? 15946 | if(nstr.empty()) nstr = gstr; | ^~~~ | gstr callbacks.cc:15947:57: error: 'nstr' was not declared in this scope; did you mean 'gstr'? 15947 | nstr.insert(0, "-) "); | ^~~~ | gstr callbacks.cc:15957:47: error: 'string' does not name a type; did you mean 'GString'? 15957 | const string *pname; | ^~~~~~ | GString callbacks.cc:15958:57: error: 'pname' was not declared in this scope; did you mean 'tzname'? 15958 | if(name_i == 0) pname = &prefix->shortName(false); | ^~~~~ | tzname callbacks.cc:15959:62: error: 'pname' was not declared in this scope; did you mean 'tzname'? 15959 | else if(name_i == 1) pname = &prefix->unicodeName(false); | ^~~~~ | tzname callbacks.cc:15960:46: error: 'pname' was not declared in this scope; did you mean 'tzname'? 15960 | else pname = &prefix->longName(false); | ^~~~~ | tzname callbacks.cc:15961:45: error: 'pname' was not declared in this scope; did you mean 'tzname'? 15961 | if(!pname->empty() && str.length() <= pname->length()) { | ^~~~~ | tzname callbacks.cc:15976:58: error: 'completion_names_match' cannot be used as a function 15976 | if(completion_names_match(gstr, str)) { | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ callbacks.cc: In function 'void on_expressionbuffer_changed(GtkTextBuffer*, gpointer)': callbacks.cc:16032:12: error: 'result_text' was not declared in this scope 16032 | if(result_text.empty()) return; | ^~~~~~~~~~~ callbacks.cc: In function 'void on_button_brace_wrap_clicked(GtkButton*, gpointer)': callbacks.cc:16088:9: error: 'string' was not declared in this scope 16088 | string expr = get_expression_text(); | ^~~~~~ callbacks.cc:16088:9: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:16090:19: error: 'expr' was not declared in this scope; did you mean 'expl'? 16090 | gint il = expr.length(); | ^~~~ | expl callbacks.cc:16116:31: error: expected ';' before 'str' 16116 | string str = CALCULATOR->unlocalizeExpression(gstr, evalops.parse_options); | ^~~~ | ; callbacks.cc:16118:48: error: 'str' was not declared in this scope; did you mean 'gstr'? 16118 | CALCULATOR->parseSigns(str); | ^~~ | gstr callbacks.cc:16136:31: error: expected ';' before 'str' 16136 | string str = CALCULATOR->unlocalizeExpression(gstr, evalops.parse_options); | ^~~~ | ; callbacks.cc:16138:48: error: 'str' was not declared in this scope; did you mean 'gstr'? 16138 | CALCULATOR->parseSigns(str); | ^~~ | gstr callbacks.cc:16161:15: error: expected ';' before 'str' 16161 | string str = CALCULATOR->unlocalizeExpression(gstr, evalops.parse_options); | ^~~~ | ; callbacks.cc:16163:32: error: 'str' was not declared in this scope; did you mean 'gstr'? 16163 | CALCULATOR->parseSigns(str); | ^~~ | gstr callbacks.cc: In function 'void on_button_to_clicked(GtkButton*, gpointer)': callbacks.cc:16200:9: error: 'string' was not declared in this scope 16200 | string to_str = CALCULATOR->localToString(); | ^~~~~~ callbacks.cc:16200:9: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:16201:27: error: 'to_str' was not declared in this scope 16201 | remove_blank_ends(to_str); | ^~~~~~ callbacks.cc: In function 'void on_button_factorize_clicked(GtkButton*, gpointer)': callbacks.cc:16226:23: error: invalid conversion from 'const char*' to 'int' [-fpermissive] 16226 | executeCommand(COMMAND_FACTORIZE); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ | | | const char* callbacks.cc: At global scope: callbacks.cc:16348:6: error: variable or field 'process_history_selection' declared void 16348 | void process_history_selection(vector *selected_rows, vector *selected_indeces, vector *selected_index_type, bool ans_priority = false) { | ^~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:16348:32: error: 'vector' was not declared in this scope 16348 | void process_history_selection(vector *selected_rows, vector *selected_indeces, vector *selected_index_type, bool ans_priority = false) { | ^~~~~~ callbacks.cc:16348:32: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stl_vector.h:423:11: note: 'std::vector' 423 | class vector : protected _Vector_base<_Tp, _Alloc> | ^~~~~~ /usr/include/c++/12.2.0/vector:84:13: note: 'std::pmr::vector' 84 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>; | ^~~~~~ callbacks.cc:16348:45: error: expected primary-expression before '>' token 16348 | void process_history_selection(vector *selected_rows, vector *selected_indeces, vector *selected_index_type, bool ans_priority = false) { | ^ callbacks.cc:16348:48: error: 'selected_rows' was not declared in this scope; did you mean 'selected_unit'? 16348 | void process_history_selection(vector *selected_rows, vector *selected_indeces, vector *selected_index_type, bool ans_priority = false) { | ^~~~~~~~~~~~~ | selected_unit callbacks.cc:16348:63: error: 'vector' was not declared in this scope 16348 | void process_history_selection(vector *selected_rows, vector *selected_indeces, vector *selected_index_type, bool ans_priority = false) { | ^~~~~~ callbacks.cc:16348:63: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stl_vector.h:423:11: note: 'std::vector' 423 | class vector : protected _Vector_base<_Tp, _Alloc> | ^~~~~~ /usr/include/c++/12.2.0/vector:84:13: note: 'std::pmr::vector' 84 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>; | ^~~~~~ callbacks.cc:16348:76: error: expected primary-expression before '>' token 16348 | void process_history_selection(vector *selected_rows, vector *selected_indeces, vector *selected_index_type, bool ans_priority = false) { | ^ callbacks.cc:16348:79: error: 'selected_indeces' was not declared in this scope; did you mean 'selected_unit'? 16348 | void process_history_selection(vector *selected_rows, vector *selected_indeces, vector *selected_index_type, bool ans_priority = false) { | ^~~~~~~~~~~~~~~~ | selected_unit callbacks.cc:16348:97: error: 'vector' was not declared in this scope 16348 | void process_history_selection(vector *selected_rows, vector *selected_indeces, vector *selected_index_type, bool ans_priority = false) { | ^~~~~~ callbacks.cc:16348:97: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stl_vector.h:423:11: note: 'std::vector' 423 | class vector : protected _Vector_base<_Tp, _Alloc> | ^~~~~~ /usr/include/c++/12.2.0/vector:84:13: note: 'std::pmr::vector' 84 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>; | ^~~~~~ callbacks.cc:16348:104: error: expected primary-expression before 'int' 16348 | void process_history_selection(vector *selected_rows, vector *selected_indeces, vector *selected_index_type, bool ans_priority = false) { | ^~~ callbacks.cc:16348:131: error: expected primary-expression before 'bool' 16348 | void process_history_selection(vector *selected_rows, vector *selected_indeces, vector *selected_index_type, bool ans_priority = false) { | ^~~~ callbacks.cc:16397:6: error: variable or field 'history_operator' declared void 16397 | void history_operator(string str_sign) { | ^~~~~~~~~~~~~~~~ callbacks.cc:16397:23: error: 'string' was not declared in this scope 16397 | void history_operator(string str_sign) { | ^~~~~~ callbacks.cc:16397:23: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc: In function 'void on_button_history_add_clicked(GtkButton*, gpointer)': callbacks.cc:16486:9: error: 'history_operator' was not declared in this scope 16486 | history_operator(expression_add_sign()); | ^~~~~~~~~~~~~~~~ callbacks.cc: In function 'void on_button_history_sub_clicked(GtkButton*, gpointer)': callbacks.cc:16489:9: error: 'history_operator' was not declared in this scope 16489 | history_operator(expression_sub_sign()); | ^~~~~~~~~~~~~~~~ callbacks.cc: In function 'void on_button_history_times_clicked(GtkButton*, gpointer)': callbacks.cc:16492:9: error: 'history_operator' was not declared in this scope 16492 | history_operator(expression_times_sign()); | ^~~~~~~~~~~~~~~~ callbacks.cc: In function 'void on_button_history_divide_clicked(GtkButton*, gpointer)': callbacks.cc:16495:9: error: 'history_operator' was not declared in this scope 16495 | history_operator(expression_divide_sign()); | ^~~~~~~~~~~~~~~~ callbacks.cc: In function 'void on_button_history_xy_clicked(GtkButton*, gpointer)': callbacks.cc:16498:9: error: 'history_operator' was not declared in this scope 16498 | history_operator("^"); | ^~~~~~~~~~~~~~~~ callbacks.cc: In function 'void on_button_history_sqrt_clicked(GtkButton*, gpointer)': callbacks.cc:16502:9: error: 'vector' was not declared in this scope 16502 | vector selected_indeces; | ^~~~~~ callbacks.cc:16502:9: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stl_vector.h:423:11: note: 'std::vector' 423 | class vector : protected _Vector_base<_Tp, _Alloc> | ^~~~~~ /usr/include/c++/12.2.0/vector:84:13: note: 'std::pmr::vector' 84 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>; | ^~~~~~ callbacks.cc:16502:22: error: expected primary-expression before '>' token 16502 | vector selected_indeces; | ^ callbacks.cc:16502:24: error: 'selected_indeces' was not declared in this scope; did you mean 'selected_unit'? 16502 | vector selected_indeces; | ^~~~~~~~~~~~~~~~ | selected_unit callbacks.cc:16503:16: error: expected primary-expression before 'int' 16503 | vector selected_index_type; | ^~~ callbacks.cc:16504:61: error: 'selected_index_type' was not declared in this scope 16504 | process_history_selection(NULL, &selected_indeces, &selected_index_type); | ^~~~~~~~~~~~~~~~~~~ callbacks.cc:16504:9: error: 'process_history_selection' was not declared in this scope 16504 | process_history_selection(NULL, &selected_indeces, &selected_index_type); | ^~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:16510:9: error: 'string' was not declared in this scope 16510 | string str = ename2->name; | ^~~~~~ callbacks.cc:16510:9: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:16511:9: error: 'str' was not declared in this scope; did you mean 'std'? 16511 | str += "("; | ^~~ | std callbacks.cc:16514:33: error: 'inhistory_type' was not declared in this scope; did you mean 'historystore'? 16514 | if(index > 0 && inhistory_type[index] == QALCULATE_HISTORY_TRANSFORMATION) index--; | ^~~~~~~~~~~~~~ | historystore callbacks.cc:16515:24: error: 'inhistory' was not declared in this scope 16515 | str += inhistory[index]; | ^~~~~~~~~ callbacks.cc: In function 'void on_button_history_insert_value_clicked(GtkButton*, gpointer)': callbacks.cc:16542:9: error: 'vector' was not declared in this scope 16542 | vector selected_indeces; | ^~~~~~ callbacks.cc:16542:9: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stl_vector.h:423:11: note: 'std::vector' 423 | class vector : protected _Vector_base<_Tp, _Alloc> | ^~~~~~ /usr/include/c++/12.2.0/vector:84:13: note: 'std::pmr::vector' 84 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>; | ^~~~~~ callbacks.cc:16542:22: error: expected primary-expression before '>' token 16542 | vector selected_indeces; | ^ callbacks.cc:16542:24: error: 'selected_indeces' was not declared in this scope; did you mean 'selected_unit'? 16542 | vector selected_indeces; | ^~~~~~~~~~~~~~~~ | selected_unit callbacks.cc:16543:16: error: expected primary-expression before 'int' 16543 | vector selected_index_type; | ^~~ callbacks.cc:16544:61: error: 'selected_index_type' was not declared in this scope 16544 | process_history_selection(NULL, &selected_indeces, &selected_index_type); | ^~~~~~~~~~~~~~~~~~~ callbacks.cc:16544:9: error: 'process_history_selection' was not declared in this scope 16544 | process_history_selection(NULL, &selected_indeces, &selected_index_type); | ^~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:16554:9: error: 'string' was not declared in this scope 16554 | string str = ename->name; | ^~~~~~ callbacks.cc:16554:9: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:16555:9: error: 'str' was not declared in this scope; did you mean 'std'? 16555 | str += "("; | ^~~ | std callbacks.cc: In function 'void on_button_history_insert_text_clicked(GtkButton*, gpointer)': callbacks.cc:16575:9: error: 'vector' was not declared in this scope 16575 | vector selected_rows; | ^~~~~~ callbacks.cc:16575:9: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stl_vector.h:423:11: note: 'std::vector' 423 | class vector : protected _Vector_base<_Tp, _Alloc> | ^~~~~~ /usr/include/c++/12.2.0/vector:84:13: note: 'std::pmr::vector' 84 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>; | ^~~~~~ callbacks.cc:16575:22: error: expected primary-expression before '>' token 16575 | vector selected_rows; | ^ callbacks.cc:16575:24: error: 'selected_rows' was not declared in this scope; did you mean 'selected_unit'? 16575 | vector selected_rows; | ^~~~~~~~~~~~~ | selected_unit callbacks.cc:16576:9: error: 'process_history_selection' was not declared in this scope 16576 | process_history_selection(&selected_rows, NULL, NULL); | ^~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:16579:27: error: 'inhistory_type' was not declared in this scope; did you mean 'historystore'? 16579 | if(index > 0 && ((inhistory_type[index] == QALCULATE_HISTORY_TRANSFORMATION && (inhistory_type[index - 1] == QALCULATE_HISTORY_RESULT || inhistory_type[index - 1] == QALCULATE_HISTORY_RESULT_APPROXIMATE)) || inhistory_type[index] == QALCULATE_HISTORY_RPN_OPERATION || inhistory_type[index] == QALCULATE_HISTORY_REGISTER_MOVED)) index--; | ^~~~~~~~~~~~~~ | historystore callbacks.cc:16580:21: error: 'inhistory' was not declared in this scope 16580 | insert_text(inhistory[index].c_str()); | ^~~~~~~~~ callbacks.cc: In function 'void history_copy(bool)': callbacks.cc:16584:9: error: 'vector' was not declared in this scope 16584 | vector selected_rows; | ^~~~~~ callbacks.cc:16584:9: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stl_vector.h:423:11: note: 'std::vector' 423 | class vector : protected _Vector_base<_Tp, _Alloc> | ^~~~~~ /usr/include/c++/12.2.0/vector:84:13: note: 'std::pmr::vector' 84 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>; | ^~~~~~ callbacks.cc:16584:22: error: expected primary-expression before '>' token 16584 | vector selected_rows; | ^ callbacks.cc:16584:24: error: 'selected_rows' was not declared in this scope; did you mean 'selected_unit'? 16584 | vector selected_rows; | ^~~~~~~~~~~~~ | selected_unit callbacks.cc:16585:9: error: 'process_history_selection' was not declared in this scope 16585 | process_history_selection(&selected_rows, NULL, NULL); | ^~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:16589:35: error: 'inhistory_type' was not declared in this scope; did you mean 'historystore'? 16589 | if(index > 0 && ((inhistory_type[index] == QALCULATE_HISTORY_TRANSFORMATION && (inhistory_type[index - 1] == QALCULATE_HISTORY_RESULT || inhistory_type[index - 1] == QALCULATE_HISTORY_RESULT_APPROXIMATE)) || inhistory_type[index] == QALCULATE_HISTORY_RPN_OPERATION || inhistory_type[index] == QALCULATE_HISTORY_REGISTER_MOVED)) index--;; | ^~~~~~~~~~~~~~ | historystore callbacks.cc:16590:17: error: 'string' was not declared in this scope 16590 | string copy_text = inhistory[index]; | ^~~~~~ callbacks.cc:16590:17: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:16592:42: error: 'copy_text' was not declared in this scope 16592 | remove_separator(copy_text); | ^~~~~~~~~ callbacks.cc:16592:25: error: 'remove_separator' was not declared in this scope; did you mean 'copy_separator'? 16592 | remove_separator(copy_text); | ^~~~~~~~~~~~~~~~ | copy_separator callbacks.cc:16594:96: error: 'copy_text' was not declared in this scope 16594 | gtk_clipboard_set_text(gtk_clipboard_get(gdk_atom_intern("CLIPBOARD", FALSE)), copy_text.c_str(), -1); | ^~~~~~~~~ callbacks.cc:16596:17: error: 'string' was not declared in this scope 16596 | string str; | ^~~~~~ callbacks.cc:16596:17: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:16599:35: error: 'str' was not declared in this scope; did you mean 'std'? 16599 | if(i > 0) str += '\n'; | ^~~ | std callbacks.cc:16603:32: error: 'inhistory_type' was not declared in this scope; did you mean 'historystore'? 16603 | switch(inhistory_type[hindex]) { | ^~~~~~~~~~~~~~ | historystore callbacks.cc:16605:51: error: 'str' was not declared in this scope; did you mean 'std'? 16605 | if(i > 0) str += '\n'; | ^~~ | std callbacks.cc:16606:41: error: 'str' was not declared in this scope; did you mean 'std'? 16606 | str += inhistory[hindex]; | ^~~ | std callbacks.cc:16606:48: error: 'inhistory' was not declared in this scope 16606 | str += inhistory[hindex]; | ^~~~~~~~~ callbacks.cc:16611:51: error: 'str' was not declared in this scope; did you mean 'std'? 16611 | if(i > 0) str += '\n'; | ^~~ | std callbacks.cc:16612:41: error: 'str' was not declared in this scope; did you mean 'std'? 16612 | str += _("RPN Register Moved"); | ^~~ | std callbacks.cc:16617:51: error: 'str' was not declared in this scope; did you mean 'std'? 16617 | if(i > 0) str += '\n'; | ^~~ | std callbacks.cc:16618:41: error: 'str' was not declared in this scope; did you mean 'std'? 16618 | str += _("RPN Operation"); | ^~~ | std callbacks.cc:16623:41: error: 'str' was not declared in this scope; did you mean 'std'? 16623 | str += inhistory[hindex]; | ^~~ | std callbacks.cc:16623:48: error: 'inhistory' was not declared in this scope 16623 | str += inhistory[hindex]; | ^~~~~~~~~ callbacks.cc:16631:64: error: 'str' was not declared in this scope; did you mean 'std'? 16631 | case QALCULATE_HISTORY_PARSE: {str += " ";} | ^~~ | std callbacks.cc:16633:41: error: 'str' was not declared in this scope; did you mean 'std'? 16633 | str += "= "; | ^~~ | std callbacks.cc:16634:48: error: 'inhistory' was not declared in this scope 16634 | str += inhistory[hindex]; | ^~~~~~~~~ callbacks.cc:16637:76: error: 'str' was not declared in this scope; did you mean 'std'? 16637 | case QALCULATE_HISTORY_PARSE_APPROXIMATE: {str += " ";} | ^~~ | std callbacks.cc:16640:49: error: 'str' was not declared in this scope; did you mean 'std'? 16640 | str += SIGN_ALMOST_EQUAL " "; | ^~~ | std callbacks.cc:16642:49: error: 'str' was not declared in this scope; did you mean 'std'? 16642 | str += "= "; | ^~~ | std callbacks.cc:16646:41: error: 'str' was not declared in this scope; did you mean 'std'? 16646 | str += inhistory[hindex]; | ^~~ | std callbacks.cc:16646:48: error: 'inhistory' was not declared in this scope 16646 | str += inhistory[hindex]; | ^~~~~~~~~ callbacks.cc:16650:41: error: 'str' was not declared in this scope; did you mean 'std'? 16650 | str += " "; | ^~~ | std callbacks.cc:16651:48: error: 'inhistory' was not declared in this scope 16651 | str += inhistory[hindex]; | ^~~~~~~~~ callbacks.cc:16657:41: error: 'str' was not declared in this scope; did you mean 'std'? 16657 | str += inhistory[hindex]; | ^~~ | std callbacks.cc:16657:48: error: 'inhistory' was not declared in this scope 16657 | str += inhistory[hindex]; | ^~~~~~~~~ callbacks.cc:16661:56: error: 'inhistory_type' was not declared in this scope; did you mean 'historystore'? 16661 | if(add_parse && hindex > 0 && (inhistory_type[hindex - 1] == QALCULATE_HISTORY_PARSE || inhistory_type[hindex - 1] == QALCULATE_HISTORY_PARSE_APPROXIMATE || inhistory_type[hindex - 1] == QALCULATE_HISTORY_PARSE_WITHEQUALS)) { | ^~~~~~~~~~~~~~ | historystore callbacks.cc:16667:42: error: 'str' was not declared in this scope; did you mean 'std'? 16667 | remove_separator(str); | ^~~ | std callbacks.cc:16667:25: error: 'remove_separator' was not declared in this scope; did you mean 'copy_separator'? 16667 | remove_separator(str); | ^~~~~~~~~~~~~~~~ | copy_separator callbacks.cc:16669:96: error: 'str' was not declared in this scope; did you mean 'std'? 16669 | gtk_clipboard_set_text(gtk_clipboard_get(gdk_atom_intern("CLIPBOARD", FALSE)), str.c_str(), -1); | ^~~ | std callbacks.cc: In function 'void on_popup_menu_item_history_clear_activate(GtkMenuItem*, gpointer)': callbacks.cc:16678:9: error: 'inhistory' was not declared in this scope 16678 | inhistory.clear(); | ^~~~~~~~~ callbacks.cc:16679:9: error: 'inhistory_type' was not declared in this scope; did you mean 'historystore'? 16679 | inhistory_type.clear(); | ^~~~~~~~~~~~~~ | historystore callbacks.cc:16680:31: error: 'history_parsed' was not declared in this scope; did you mean 'historystore'? 16680 | for(size_t i = 0; i < history_parsed.size(); i++) { | ^~~~~~~~~~~~~~ | historystore callbacks.cc:16682:20: error: 'history_answer' was not declared in this scope; did you mean 'history_index'? 16682 | if(history_answer[i]) history_answer[i]->unref(); | ^~~~~~~~~~~~~~ | history_index callbacks.cc:16684:9: error: 'history_parsed' was not declared in this scope; did you mean 'historystore'? 16684 | history_parsed.clear(); | ^~~~~~~~~~~~~~ | historystore callbacks.cc:16685:9: error: 'history_answer' was not declared in this scope; did you mean 'history_index'? 16685 | history_answer.clear(); | ^~~~~~~~~~~~~~ | history_index callbacks.cc: In function 'void update_historyview_popup()': callbacks.cc:16705:9: error: 'vector' was not declared in this scope 16705 | vector selected_rows; | ^~~~~~ callbacks.cc:16705:9: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stl_vector.h:423:11: note: 'std::vector' 423 | class vector : protected _Vector_base<_Tp, _Alloc> | ^~~~~~ /usr/include/c++/12.2.0/vector:84:13: note: 'std::pmr::vector' 84 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>; | ^~~~~~ callbacks.cc:16705:22: error: expected primary-expression before '>' token 16705 | vector selected_rows; | ^ callbacks.cc:16705:24: error: 'selected_rows' was not declared in this scope; did you mean 'selected_unit'? 16705 | vector selected_rows; | ^~~~~~~~~~~~~ | selected_unit callbacks.cc:16706:22: error: expected primary-expression before '>' token 16706 | vector selected_indeces; | ^ callbacks.cc:16706:24: error: 'selected_indeces' was not declared in this scope; did you mean 'selected_unit'? 16706 | vector selected_indeces; | ^~~~~~~~~~~~~~~~ | selected_unit callbacks.cc:16707:16: error: expected primary-expression before 'int' 16707 | vector selected_index_type; | ^~~ callbacks.cc:16708:71: error: 'selected_index_type' was not declared in this scope 16708 | process_history_selection(&selected_rows, &selected_indeces, &selected_index_type); | ^~~~~~~~~~~~~~~~~~~ callbacks.cc:16708:9: error: 'process_history_selection' was not declared in this scope 16708 | process_history_selection(&selected_rows, &selected_indeces, &selected_index_type); | ^~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc: In function 'void on_historyview_selection_changed(GtkTreeSelection*, gpointer)': callbacks.cc:16850:9: error: 'vector' was not declared in this scope 16850 | vector selected_rows; | ^~~~~~ callbacks.cc:16850:9: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stl_vector.h:423:11: note: 'std::vector' 423 | class vector : protected _Vector_base<_Tp, _Alloc> | ^~~~~~ /usr/include/c++/12.2.0/vector:84:13: note: 'std::pmr::vector' 84 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>; | ^~~~~~ callbacks.cc:16850:22: error: expected primary-expression before '>' token 16850 | vector selected_rows; | ^ callbacks.cc:16850:24: error: 'selected_rows' was not declared in this scope; did you mean 'selected_unit'? 16850 | vector selected_rows; | ^~~~~~~~~~~~~ | selected_unit callbacks.cc:16851:22: error: expected primary-expression before '>' token 16851 | vector selected_indeces; | ^ callbacks.cc:16851:24: error: 'selected_indeces' was not declared in this scope; did you mean 'selected_unit'? 16851 | vector selected_indeces; | ^~~~~~~~~~~~~~~~ | selected_unit callbacks.cc:16852:16: error: expected primary-expression before 'int' 16852 | vector selected_index_type; | ^~~ callbacks.cc:16853:71: error: 'selected_index_type' was not declared in this scope 16853 | process_history_selection(&selected_rows, &selected_indeces, &selected_index_type); | ^~~~~~~~~~~~~~~~~~~ callbacks.cc:16853:9: error: 'process_history_selection' was not declared in this scope 16853 | process_history_selection(&selected_rows, &selected_indeces, &selected_index_type); | ^~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc: In function 'void on_historyview_row_activated(GtkTreeView*, GtkTreePath*, GtkTreeViewColumn*, gpointer)': callbacks.cc:16867:24: error: 'inhistory_type' was not declared in this scope; did you mean 'historystore'? 16867 | switch(inhistory_type[(size_t) hindex]) { | ^~~~~~~~~~~~~~ | historystore callbacks.cc:16873:53: error: 'inhistory' was not declared in this scope 16873 | insert_text(inhistory[(size_t) hindex - 1].c_str()); | ^~~~~~~~~ callbacks.cc:16884:53: error: 'inhistory' was not declared in this scope 16884 | insert_text(inhistory[(size_t) hindex].c_str()); | ^~~~~~~~~ callbacks.cc:16893:17: error: 'string' was not declared in this scope 16893 | string str = ename->name; | ^~~~~~ callbacks.cc:16893:17: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:16894:17: error: 'str' was not declared in this scope; did you mean 'std'? 16894 | str += "("; | ^~~ | std callbacks.cc:16907:35: error: 'inhistory_type' was not declared in this scope; did you mean 'historystore'? 16907 | if(hindex > 0 && (inhistory_type[hindex] == QALCULATE_HISTORY_TRANSFORMATION || inhistory_type[hindex] == QALCULATE_HISTORY_RPN_OPERATION || inhistory_type[hindex] == QALCULATE_HISTORY_REGISTER_MOVED)) hindex--; | ^~~~~~~~~~~~~~ | historystore callbacks.cc:16908:20: error: 'inhistory_type' was not declared in this scope; did you mean 'historystore'? 16908 | if(inhistory_type[hindex] != QALCULATE_HISTORY_WARNING && inhistory_type[hindex] != QALCULATE_HISTORY_ERROR) { | ^~~~~~~~~~~~~~ | historystore callbacks.cc:16909:37: error: 'inhistory' was not declared in this scope 16909 | insert_text(inhistory[(size_t) hindex].c_str()); | ^~~~~~~~~ callbacks.cc: In function 'void on_menu_item_convert_to_best_unit_activate(GtkMenuItem*, gpointer)': callbacks.cc:16947:23: error: invalid conversion from 'const char*' to 'int' [-fpermissive] 16947 | executeCommand(COMMAND_CONVERT_OPTIMAL); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ | | | const char* callbacks.cc: In function 'void on_menu_item_convert_to_base_units_activate(GtkMenuItem*, gpointer)': callbacks.cc:16950:23: error: invalid conversion from 'const char*' to 'int' [-fpermissive] 16950 | executeCommand(COMMAND_CONVERT_BASE); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ | | | const char* callbacks.cc: In function 'void on_menu_item_insert_matrix_activate(GtkMenuItem*, gpointer)': callbacks.cc:16959:9: error: 'string' was not declared in this scope 16959 | string str = get_selected_expression_text(); | ^~~~~~ callbacks.cc:16959:9: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:16960:27: error: 'str' was not declared in this scope; did you mean 'std'? 16960 | remove_blank_ends(str); | ^~~ | std callbacks.cc: In function 'void on_menu_item_insert_vector_activate(GtkMenuItem*, gpointer)': callbacks.cc:16974:9: error: 'string' was not declared in this scope 16974 | string str = get_selected_expression_text(); | ^~~~~~ callbacks.cc:16974:9: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:16975:27: error: 'str' was not declared in this scope; did you mean 'std'? 16975 | remove_blank_ends(str); | ^~~ | std callbacks.cc: In function 'void menu_to_rectangular(GtkMenuItem*, gpointer)': callbacks.cc:17414:23: error: invalid conversion from 'const char*' to 'int' [-fpermissive] 17414 | executeCommand(COMMAND_EVAL); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~ | | | const char* callbacks.cc: In function 'void menu_to_exponential(GtkMenuItem*, gpointer)': callbacks.cc:17420:23: error: invalid conversion from 'const char*' to 'int' [-fpermissive] 17420 | executeCommand(COMMAND_EVAL); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~ | | | const char* callbacks.cc: In function 'void menu_to_polar(GtkMenuItem*, gpointer)': callbacks.cc:17426:23: error: invalid conversion from 'const char*' to 'int' [-fpermissive] 17426 | executeCommand(COMMAND_EVAL); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~ | | | const char* callbacks.cc: In function 'void update_mb_to_menu()': callbacks.cc:17485:9: error: 'string' was not declared in this scope 17485 | string s_cat; | ^~~~~~ callbacks.cc:17485:9: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:17490:22: error: 's_cat' was not declared in this scope; did you mean 'strcat'? 17490 | if(u_result) s_cat = u_result->category(); | ^~~~~ | strcat callbacks.cc:17491:9: error: 'vector' was not declared in this scope 17491 | vector to_us; | ^~~~~~ callbacks.cc:17491:9: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stl_vector.h:423:11: note: 'std::vector' 423 | class vector : protected _Vector_base<_Tp, _Alloc> | ^~~~~~ /usr/include/c++/12.2.0/vector:84:13: note: 'std::pmr::vector' 84 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>; | ^~~~~~ callbacks.cc:17491:20: error: expected primary-expression before '*' token 17491 | vector to_us; | ^ callbacks.cc:17491:21: error: expected primary-expression before '>' token 17491 | vector to_us; | ^ callbacks.cc:17491:23: error: 'to_us' was not declared in this scope; did you mean 'top_ips'? 17491 | vector to_us; | ^~~~~ | top_ips callbacks.cc:17510:97: error: 'string_is_less' cannot be used as a function 17510 | if(string_is_less(u->title(true), to_us[i2]->title(true))) { | ^ interface.h:18:111: error: 'unordered_map' was not declared in this scope 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~ interface.h:18:111: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~ interface.h:18:111: note: suggested alternatives: 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~ interface.h:18:111: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~ /usr/include/c++/12.2.0/bits/unordered_map.h:102:11: note: 'std::unordered_map' 102 | class unordered_map | ^~~~~~~~~~~~~ /usr/include/c++/12.2.0/unordered_map:64:13: note: 'std::pmr::unordered_map' 64 | using unordered_map | ^~~~~~~~~~~~~ interface.h:18:142: error: expected primary-expression before '*' token 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^ callbacks.cc:17520:25: note: in expansion of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 17520 | MENU_ITEM_WITH_POINTER_AND_FLAG(to_us[i]->title(true).c_str(), convert_to_unit, to_us[i]) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ interface.h:18:143: error: expected primary-expression before '>' token 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^ callbacks.cc:17520:25: note: in expansion of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 17520 | MENU_ITEM_WITH_POINTER_AND_FLAG(to_us[i]->title(true).c_str(), convert_to_unit, to_us[i]) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ interface.h:18:146: error: '::const_iterator' has not been declared 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~~ interface.h:18:146: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~~ interface.h:18:212: error: 'it_flag' was not declared in this scope 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~ interface.h:18:212: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~ interface.h:18:223: error: 'flag_images' was not declared in this scope 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~ interface.h:18:223: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~ callbacks.cc:17523:28: error: expected primary-expression before '*' token 17523 | vector to_us2; | ^ callbacks.cc:17523:29: error: expected primary-expression before '>' token 17523 | vector to_us2; | ^ callbacks.cc:17523:31: error: 'to_us2' was not declared in this scope 17523 | vector to_us2; | ^~~~~~ interface.h:18:111: error: 'unordered_map' was not declared in this scope 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~ interface.h:18:111: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~ interface.h:18:111: note: suggested alternatives: 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~ interface.h:18:111: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~ /usr/include/c++/12.2.0/bits/unordered_map.h:102:11: note: 'std::unordered_map' 102 | class unordered_map | ^~~~~~~~~~~~~ /usr/include/c++/12.2.0/unordered_map:64:13: note: 'std::pmr::unordered_map' 64 | using unordered_map | ^~~~~~~~~~~~~ interface.h:18:142: error: expected primary-expression before '*' token 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^ callbacks.cc:17561:25: note: in expansion of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 17561 | MENU_ITEM_WITH_POINTER_AND_FLAG(to_us[i]->title(true).c_str(), convert_to_unit, to_us[i]) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ interface.h:18:143: error: expected primary-expression before '>' token 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^ callbacks.cc:17561:25: note: in expansion of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 17561 | MENU_ITEM_WITH_POINTER_AND_FLAG(to_us[i]->title(true).c_str(), convert_to_unit, to_us[i]) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ interface.h:18:146: error: '::const_iterator' has not been declared 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~~ interface.h:18:146: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~~ interface.h:18:212: error: 'it_flag' was not declared in this scope 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~ interface.h:18:212: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~ interface.h:18:223: error: 'flag_images' was not declared in this scope 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~ interface.h:18:223: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~ interface.h:18:111: error: 'unordered_map' was not declared in this scope 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~ interface.h:18:111: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~ interface.h:18:111: note: suggested alternatives: 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~ interface.h:18:111: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~ /usr/include/c++/12.2.0/bits/unordered_map.h:102:11: note: 'std::unordered_map' 102 | class unordered_map | ^~~~~~~~~~~~~ /usr/include/c++/12.2.0/unordered_map:64:13: note: 'std::pmr::unordered_map' 64 | using unordered_map | ^~~~~~~~~~~~~ interface.h:18:142: error: expected primary-expression before '*' token 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^ callbacks.cc:17566:25: note: in expansion of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 17566 | MENU_ITEM_WITH_POINTER_AND_FLAG(to_us2[i]->title(true).c_str(), convert_to_unit, to_us2[i]) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ interface.h:18:143: error: expected primary-expression before '>' token 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^ callbacks.cc:17566:25: note: in expansion of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 17566 | MENU_ITEM_WITH_POINTER_AND_FLAG(to_us2[i]->title(true).c_str(), convert_to_unit, to_us2[i]) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ interface.h:18:146: error: '::const_iterator' has not been declared 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~~ interface.h:18:146: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~~~~ interface.h:18:212: error: 'it_flag' was not declared in this scope 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~ interface.h:18:212: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~ interface.h:18:223: error: 'flag_images' was not declared in this scope 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~ interface.h:18:223: note: in definition of macro 'MENU_ITEM_WITH_POINTER_AND_FLAG' 18 | #define MENU_ITEM_WITH_POINTER_AND_FLAG(x,y,z) {GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6); unordered_map::const_iterator it_flag = flag_images.find(z->referenceName()); if(it_flag != flag_images.end()) {GtkWidget *image_w = gtk_image_new_from_pixbuf(it_flag->second); gtk_widget_set_size_request(image_w, 32, -1); gtk_container_add(GTK_CONTAINER(box), image_w);} gtk_container_add(GTK_CONTAINER(box), gtk_label_new(x)); item = gtk_menu_item_new(); gtk_container_add(GTK_CONTAINER(item), box); gtk_widget_show_all(item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK(y), (gpointer) z); gtk_menu_shell_append(GTK_MENU_SHELL(sub), item);} | ^~~~~~~~~~~ callbacks.cc:17568:20: error: 's_cat' was not declared in this scope; did you mean 'strcat'? 17568 | } else if(!s_cat.empty()) { | ^~~~~ | strcat callbacks.cc:17575:105: error: 'string_is_less' cannot be used as a function 17575 | if(string_is_less(u->title(true), to_us[i2]->title(true))) { | ^ callbacks.cc:17593:28: error: expected primary-expression before '*' token 17593 | vector to_us2; | ^ callbacks.cc:17593:29: error: expected primary-expression before '>' token 17593 | vector to_us2; | ^ callbacks.cc:17593:31: error: 'to_us2' was not declared in this scope 17593 | vector to_us2; | ^~~~~~ callbacks.cc:17605:98: error: 'string_is_less' cannot be used as a function 17605 | if(string_is_less(u->title(true), to_us2[i2]->title(true))) { | ^ callbacks.cc: In function 'void update_mb_units_menu()': callbacks.cc:17639:24: error: 'recent_units' was not declared in this scope 17639 | for(size_t i = recent_units.size(); i > 0; i--) { | ^~~~~~~~~~~~ callbacks.cc: In function 'void update_mb_fx_menu()': callbacks.cc:17720:24: error: 'recent_functions' was not declared in this scope; did you mean 'insert_function'? 17720 | for(size_t i = recent_functions.size(); i > 0; i--) { | ^~~~~~~~~~~~~~~~ | insert_function callbacks.cc: In function 'void update_mb_pi_menu()': callbacks.cc:17749:24: error: 'recent_variables' was not declared in this scope; did you mean 'insert_variable'? 17749 | for(size_t i = recent_variables.size(); i > 0; i--) { | ^~~~~~~~~~~~~~~~ | insert_variable callbacks.cc: In function 'void on_menu_item_factorize_activate(GtkMenuItem*, gpointer)': callbacks.cc:18393:23: error: invalid conversion from 'const char*' to 'int' [-fpermissive] 18393 | executeCommand(COMMAND_FACTORIZE); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ | | | const char* callbacks.cc: In function 'void on_menu_item_expand_partial_fractions_activate(GtkMenuItem*, gpointer)': callbacks.cc:18396:23: error: invalid conversion from 'const char*' to 'int' [-fpermissive] 18396 | executeCommand(COMMAND_EXPAND_PARTIAL_FRACTIONS); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | const char* callbacks.cc: In function 'void on_menu_item_simplify_activate(GtkMenuItem*, gpointer)': callbacks.cc:18399:23: error: invalid conversion from 'const char*' to 'int' [-fpermissive] 18399 | executeCommand(COMMAND_EXPAND); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ | | | const char* callbacks.cc: In function 'void on_menu_item_convert_number_bases_activate(GtkMenuItem*, gpointer)': callbacks.cc:18436:13: error: 'result_text' was not declared in this scope 18436 | if(!result_text.empty()) return convert_number_bases(result_text.c_str(), true); | ^~~~~~~~~~~ callbacks.cc:18437:9: error: 'string' was not declared in this scope 18437 | string str = get_selected_expression_text(true), str2; | ^~~~~~ callbacks.cc:18437:9: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:18438:42: error: 'str' was not declared in this scope; did you mean 'std'? 18438 | CALCULATOR->separateToExpression(str, str2, evalops, true); | ^~~ | std callbacks.cc:18438:47: error: 'str2' was not declared in this scope 18438 | CALCULATOR->separateToExpression(str, str2, evalops, true); | ^~~~ callbacks.cc: In function 'void on_menu_item_show_percentage_dialog_activate(GtkMenuItem*, gpointer)': callbacks.cc:18450:13: error: 'result_text' was not declared in this scope 18450 | if(!result_text.empty()) return show_percentage_dialog(result_text.c_str()); | ^~~~~~~~~~~ callbacks.cc:18451:9: error: 'string' was not declared in this scope 18451 | string str = get_selected_expression_text(true), str2; | ^~~~~~ callbacks.cc:18451:9: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:18452:42: error: 'str' was not declared in this scope; did you mean 'std'? 18452 | CALCULATOR->separateToExpression(str, str2, evalops, true); | ^~~ | std callbacks.cc:18452:47: error: 'str2' was not declared in this scope 18452 | CALCULATOR->separateToExpression(str, str2, evalops, true); | ^~~~ callbacks.cc: In function 'void calendar_changed(GtkWidget*, gpointer)': callbacks.cc:18476:70: error: 'cal_year' was not declared in this scope 18476 | y = gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(cal_year[(size_t) i])); | ^~~~~~~~ /usr/include/glib-2.0/gobject/gtype.h:2505:66: note: in definition of macro '_G_TYPE_CIC' 2505 | ((ct*) (void *) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) | ^~ /usr/include/gtk-3.0/gtk/gtkspinbutton.h:42:48: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_CAST' 42 | #define GTK_SPIN_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SPIN_BUTTON, GtkSpinButton)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:18476:54: note: in expansion of macro 'GTK_SPIN_BUTTON' 18476 | y = gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(cal_year[(size_t) i])); | ^~~~~~~~~~~~~~~ callbacks.cc:18478:61: error: 'cal_month' was not declared in this scope 18478 | long int m = gtk_combo_box_get_active(GTK_COMBO_BOX(cal_month[(size_t) i])) + 1; | ^~~~~~~~~ /usr/include/glib-2.0/gobject/gtype.h:2505:66: note: in definition of macro '_G_TYPE_CIC' 2505 | ((ct*) (void *) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) | ^~ /usr/include/gtk-3.0/gtk/gtkcombobox.h:32:41: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_CAST' 32 | #define GTK_COMBO_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_COMBO_BOX, GtkComboBox)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:18478:47: note: in expansion of macro 'GTK_COMBO_BOX' 18478 | long int m = gtk_combo_box_get_active(GTK_COMBO_BOX(cal_month[(size_t) i])) + 1; | ^~~~~~~~~~~~~ callbacks.cc:18479:61: error: 'cal_day' was not declared in this scope 18479 | long int d = gtk_combo_box_get_active(GTK_COMBO_BOX(cal_day[(size_t) i])) + 1; | ^~~~~~~ /usr/include/glib-2.0/gobject/gtype.h:2505:66: note: in definition of macro '_G_TYPE_CIC' 2505 | ((ct*) (void *) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) | ^~ /usr/include/gtk-3.0/gtk/gtkcombobox.h:32:41: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_CAST' 32 | #define GTK_COMBO_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_COMBO_BOX, GtkComboBox)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:18479:47: note: in expansion of macro 'GTK_COMBO_BOX' 18479 | long int d = gtk_combo_box_get_active(GTK_COMBO_BOX(cal_day[(size_t) i])) + 1; | ^~~~~~~~~~~~~ callbacks.cc:18486:9: error: 'string' was not declared in this scope 18486 | string failed_str; | ^~~~~~ callbacks.cc:18486:9: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:18496:83: error: 'cal_year' was not declared in this scope 18496 | gtk_spin_button_set_value(GTK_SPIN_BUTTON(cal_year[i2]), y); | ^~~~~~~~ /usr/include/glib-2.0/gobject/gtype.h:2505:66: note: in definition of macro '_G_TYPE_CIC' 2505 | ((ct*) (void *) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) | ^~ /usr/include/gtk-3.0/gtk/gtkspinbutton.h:42:48: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_CAST' 42 | #define GTK_SPIN_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SPIN_BUTTON, GtkSpinButton)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:18496:67: note: in expansion of macro 'GTK_SPIN_BUTTON' 18496 | gtk_spin_button_set_value(GTK_SPIN_BUTTON(cal_year[i2]), y); | ^~~~~~~~~~~~~~~ callbacks.cc:18501:37: error: 'failed_str' was not declared in this scope 18501 | if(!failed_str.empty()) failed_str += ", "; | ^~~~~~~~~~ callbacks.cc:18502:33: error: 'failed_str' was not declared in this scope 18502 | failed_str += gtk_label_get_text(GTK_LABEL(cal_label[i2])); | ^~~~~~~~~~ callbacks.cc:18502:76: error: 'cal_label' was not declared in this scope 18502 | failed_str += gtk_label_get_text(GTK_LABEL(cal_label[i2])); | ^~~~~~~~~ /usr/include/glib-2.0/gobject/gtype.h:2505:66: note: in definition of macro '_G_TYPE_CIC' 2505 | ((ct*) (void *) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) | ^~ /usr/include/gtk-3.0/gtk/gtklabel.h:39:36: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_CAST' 39 | #define GTK_LABEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_LABEL, GtkLabel)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:18502:66: note: in expansion of macro 'GTK_LABEL' 18502 | failed_str += gtk_label_get_text(GTK_LABEL(cal_label[i2])); | ^~~~~~~~~ callbacks.cc:18506:13: error: 'failed_str' was not declared in this scope 18506 | if(!failed_str.empty()) { | ^~~~~~~~~~ callbacks.cc: In function 'void on_menu_item_show_calendarconversion_dialog_activate(GtkMenuItem*, gpointer)': callbacks.cc:18517:59: error: 'cal_year' was not declared in this scope 18517 | gtk_spin_button_set_value(GTK_SPIN_BUTTON(cal_year[CALENDAR_GREGORIAN]), mstruct->datetime()->year()); | ^~~~~~~~ /usr/include/glib-2.0/gobject/gtype.h:2505:66: note: in definition of macro '_G_TYPE_CIC' 2505 | ((ct*) (void *) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) | ^~ /usr/include/gtk-3.0/gtk/gtkspinbutton.h:42:48: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_CAST' 42 | #define GTK_SPIN_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SPIN_BUTTON, GtkSpinButton)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:18517:43: note: in expansion of macro 'GTK_SPIN_BUTTON' 18517 | gtk_spin_button_set_value(GTK_SPIN_BUTTON(cal_year[CALENDAR_GREGORIAN]), mstruct->datetime()->year()); | ^~~~~~~~~~~~~~~ callbacks.cc:18518:56: error: 'cal_month' was not declared in this scope 18518 | gtk_combo_box_set_active(GTK_COMBO_BOX(cal_month[CALENDAR_GREGORIAN]), mstruct->datetime()->month() - 1); | ^~~~~~~~~ /usr/include/glib-2.0/gobject/gtype.h:2505:66: note: in definition of macro '_G_TYPE_CIC' 2505 | ((ct*) (void *) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) | ^~ /usr/include/gtk-3.0/gtk/gtkcombobox.h:32:41: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_CAST' 32 | #define GTK_COMBO_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_COMBO_BOX, GtkComboBox)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:18518:42: note: in expansion of macro 'GTK_COMBO_BOX' 18518 | gtk_combo_box_set_active(GTK_COMBO_BOX(cal_month[CALENDAR_GREGORIAN]), mstruct->datetime()->month() - 1); | ^~~~~~~~~~~~~ callbacks.cc:18519:56: error: 'cal_day' was not declared in this scope 18519 | gtk_combo_box_set_active(GTK_COMBO_BOX(cal_day[CALENDAR_GREGORIAN]), mstruct->datetime()->day() - 1); | ^~~~~~~ /usr/include/glib-2.0/gobject/gtype.h:2505:66: note: in definition of macro '_G_TYPE_CIC' 2505 | ((ct*) (void *) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) | ^~ /usr/include/gtk-3.0/gtk/gtkcombobox.h:32:41: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_CAST' 32 | #define GTK_COMBO_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_COMBO_BOX, GtkComboBox)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:18519:42: note: in expansion of macro 'GTK_COMBO_BOX' 18519 | gtk_combo_box_set_active(GTK_COMBO_BOX(cal_day[CALENDAR_GREGORIAN]), mstruct->datetime()->day() - 1); | ^~~~~~~~~~~~~ callbacks.cc: In function 'void on_popup_menu_item_calendarconversion_activate(GtkMenuItem*, gpointer)': callbacks.cc:18525:59: error: 'cal_year' was not declared in this scope 18525 | gtk_spin_button_set_value(GTK_SPIN_BUTTON(cal_year[CALENDAR_GREGORIAN]), mstruct->datetime()->year()); | ^~~~~~~~ /usr/include/glib-2.0/gobject/gtype.h:2505:66: note: in definition of macro '_G_TYPE_CIC' 2505 | ((ct*) (void *) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) | ^~ /usr/include/gtk-3.0/gtk/gtkspinbutton.h:42:48: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_CAST' 42 | #define GTK_SPIN_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SPIN_BUTTON, GtkSpinButton)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:18525:43: note: in expansion of macro 'GTK_SPIN_BUTTON' 18525 | gtk_spin_button_set_value(GTK_SPIN_BUTTON(cal_year[CALENDAR_GREGORIAN]), mstruct->datetime()->year()); | ^~~~~~~~~~~~~~~ callbacks.cc:18526:56: error: 'cal_month' was not declared in this scope 18526 | gtk_combo_box_set_active(GTK_COMBO_BOX(cal_month[CALENDAR_GREGORIAN]), mstruct->datetime()->month() - 1); | ^~~~~~~~~ /usr/include/glib-2.0/gobject/gtype.h:2505:66: note: in definition of macro '_G_TYPE_CIC' 2505 | ((ct*) (void *) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) | ^~ /usr/include/gtk-3.0/gtk/gtkcombobox.h:32:41: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_CAST' 32 | #define GTK_COMBO_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_COMBO_BOX, GtkComboBox)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:18526:42: note: in expansion of macro 'GTK_COMBO_BOX' 18526 | gtk_combo_box_set_active(GTK_COMBO_BOX(cal_month[CALENDAR_GREGORIAN]), mstruct->datetime()->month() - 1); | ^~~~~~~~~~~~~ callbacks.cc:18527:56: error: 'cal_day' was not declared in this scope 18527 | gtk_combo_box_set_active(GTK_COMBO_BOX(cal_day[CALENDAR_GREGORIAN]), mstruct->datetime()->day() - 1); | ^~~~~~~ /usr/include/glib-2.0/gobject/gtype.h:2505:66: note: in definition of macro '_G_TYPE_CIC' 2505 | ((ct*) (void *) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) | ^~ /usr/include/gtk-3.0/gtk/gtkcombobox.h:32:41: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_CAST' 32 | #define GTK_COMBO_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_COMBO_BOX, GtkComboBox)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.cc:18527:42: note: in expansion of macro 'GTK_COMBO_BOX' 18527 | gtk_combo_box_set_active(GTK_COMBO_BOX(cal_day[CALENDAR_GREGORIAN]), mstruct->datetime()->day() - 1); | ^~~~~~~~~~~~~ callbacks.cc: In function 'void on_menu_item_plot_functions_activate(GtkMenuItem*, gpointer)': callbacks.cc:18542:102: error: 'get_selected_expression_text' was not declared in this scope; did you mean 'set_expression_text'? 18542 | gtk_entry_set_text(GTK_ENTRY(gtk_builder_get_object(plot_builder, "plot_entry_expression")), get_selected_expression_text(true).c_str()); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | set_expression_text callbacks.cc:18553:103: error: 'default_plot_min' was not declared in this scope; did you mean 'default_plot_type'? 18553 | gtk_entry_set_text(GTK_ENTRY(gtk_builder_get_object(plot_builder, "plot_entry_min")), default_plot_min.c_str()); | ^~~~~~~~~~~~~~~~ | default_plot_type callbacks.cc:18554:103: error: 'default_plot_max' was not declared in this scope; did you mean 'default_plot_type'? 18554 | gtk_entry_set_text(GTK_ENTRY(gtk_builder_get_object(plot_builder, "plot_entry_max")), default_plot_max.c_str()); | ^~~~~~~~~~~~~~~~ | default_plot_type callbacks.cc:18555:104: error: 'default_plot_step' was not declared in this scope; did you mean 'default_plot_type'? 18555 | gtk_entry_set_text(GTK_ENTRY(gtk_builder_get_object(plot_builder, "plot_entry_step")), default_plot_step.c_str()); | ^~~~~~~~~~~~~~~~~ | default_plot_type callbacks.cc:18556:108: error: 'default_plot_variable' was not declared in this scope; did you mean 'default_plot_style'? 18556 | gtk_entry_set_text(GTK_ENTRY(gtk_builder_get_object(plot_builder, "plot_entry_variable")), default_plot_variable.c_str()); | ^~~~~~~~~~~~~~~~~~~~~ | default_plot_style callbacks.cc: In function 'void on_plot_dialog_hide(GtkWidget*, gpointer)': callbacks.cc:18610:9: error: 'default_plot_min' was not declared in this scope; did you mean 'default_plot_type'? 18610 | default_plot_min = gtk_entry_get_text(GTK_ENTRY(gtk_builder_get_object(plot_builder, "plot_entry_min"))); | ^~~~~~~~~~~~~~~~ | default_plot_type callbacks.cc:18611:9: error: 'default_plot_max' was not declared in this scope; did you mean 'default_plot_type'? 18611 | default_plot_max = gtk_entry_get_text(GTK_ENTRY(gtk_builder_get_object(plot_builder, "plot_entry_max"))); | ^~~~~~~~~~~~~~~~ | default_plot_type callbacks.cc:18612:9: error: 'default_plot_step' was not declared in this scope; did you mean 'default_plot_type'? 18612 | default_plot_step = gtk_entry_get_text(GTK_ENTRY(gtk_builder_get_object(plot_builder, "plot_entry_step"))); | ^~~~~~~~~~~~~~~~~ | default_plot_type callbacks.cc:18613:9: error: 'default_plot_variable' was not declared in this scope; did you mean 'default_plot_style'? 18613 | default_plot_variable = gtk_entry_get_text(GTK_ENTRY(gtk_builder_get_object(plot_builder, "plot_entry_variable"))); | ^~~~~~~~~~~~~~~~~~~~~ | default_plot_style callbacks.cc: In function 'void on_menu_item_copy_activate(GtkMenuItem*, gpointer)': callbacks.cc:19128:9: error: 'string' was not declared in this scope 19128 | string copy_text = result_text; | ^~~~~~ callbacks.cc:19128:9: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:19130:34: error: 'copy_text' was not declared in this scope 19130 | remove_separator(copy_text); | ^~~~~~~~~ callbacks.cc:19130:17: error: 'remove_separator' was not declared in this scope; did you mean 'copy_separator'? 19130 | remove_separator(copy_text); | ^~~~~~~~~~~~~~~~ | copy_separator callbacks.cc:19132:88: error: 'copy_text' was not declared in this scope 19132 | gtk_clipboard_set_text(gtk_clipboard_get(gdk_atom_intern("CLIPBOARD", FALSE)), copy_text.c_str(), -1); | ^~~~~~~~~ callbacks.cc: In function 'void on_button_registerup_clicked(GtkButton*, gpointer)': callbacks.cc:19193:53: error: invalid conversion from 'const char*' to 'int' [-fpermissive] 19193 | setResult(NULL, true, false, false, "", 0, true); | ^~ | | | const char* callbacks.cc:7164:91: note: initializing argument 5 of 'void setResult(Prefix*, bool, bool, bool, int, size_t, bool)' 7164 | void setResult(Prefix *prefix, bool update_history, bool update_parse, bool force, string transformation, size_t stack_index, bool register_moved) { | ~~~~~~~^~~~~~~~~~~~~~ callbacks.cc: In function 'void on_button_registerdown_clicked(GtkButton*, gpointer)': callbacks.cc:19223:53: error: invalid conversion from 'const char*' to 'int' [-fpermissive] 19223 | setResult(NULL, true, false, false, "", 0, true); | ^~ | | | const char* callbacks.cc:7164:91: note: initializing argument 5 of 'void setResult(Prefix*, bool, bool, bool, int, size_t, bool)' 7164 | void setResult(Prefix *prefix, bool update_history, bool update_parse, bool force, string transformation, size_t stack_index, bool register_moved) { | ~~~~~~~^~~~~~~~~~~~~~ callbacks.cc: In function 'void on_button_registerswap_clicked(GtkButton*, gpointer)': callbacks.cc:19251:45: error: invalid conversion from 'const char*' to 'int' [-fpermissive] 19251 | setResult(NULL, true, false, false, "", 0, true); | ^~ | | | const char* callbacks.cc:7164:91: note: initializing argument 5 of 'void setResult(Prefix*, bool, bool, bool, int, size_t, bool)' 7164 | void setResult(Prefix *prefix, bool update_history, bool update_parse, bool force, string transformation, size_t stack_index, bool register_moved) { | ~~~~~~~^~~~~~~~~~~~~~ callbacks.cc: In function 'void on_button_copyregister_clicked(GtkButton*, gpointer)': callbacks.cc:19269:9: error: 'RPNRegisterAdded' was not declared in this scope; did you mean 'RPNRegisterRemoved'? 19269 | RPNRegisterAdded(text_copy, 0); | ^~~~~~~~~~~~~~~~ | RPNRegisterRemoved callbacks.cc:19274:45: error: invalid conversion from 'const char*' to 'int' [-fpermissive] 19274 | setResult(NULL, true, false, false, "", 0, true); | ^~ | | | const char* callbacks.cc:7164:91: note: initializing argument 5 of 'void setResult(Prefix*, bool, bool, bool, int, size_t, bool)' 7164 | void setResult(Prefix *prefix, bool update_history, bool update_parse, bool force, string transformation, size_t stack_index, bool register_moved) { | ~~~~~~~^~~~~~~~~~~~~~ callbacks.cc: In function 'void on_button_deleteregister_clicked(GtkButton*, gpointer)': callbacks.cc:19307:53: error: invalid conversion from 'const char*' to 'int' [-fpermissive] 19307 | setResult(NULL, true, false, false, "", 0, true); | ^~ | | | const char* callbacks.cc:7164:91: note: initializing argument 5 of 'void setResult(Prefix*, bool, bool, bool, int, size_t, bool)' 7164 | void setResult(Prefix *prefix, bool update_history, bool update_parse, bool force, string transformation, size_t stack_index, bool register_moved) { | ~~~~~~~^~~~~~~~~~~~~~ callbacks.cc: In function 'void on_unit_edit_entry_relation_changed(GtkEditable*, gpointer)': callbacks.cc:19354:9: error: 'string' was not declared in this scope 19354 | string str = gtk_entry_get_text(GTK_ENTRY(w)); | ^~~~~~ callbacks.cc:19354:9: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using string = basic_string; | ^~~~~~ callbacks.cc:19355:114: error: 'str' was not declared in this scope; did you mean 'std'? 19355 | gtk_widget_set_sensitive(GTK_WIDGET(gtk_builder_get_object(unitedit_builder, "unit_edit_box_reversed")), str.find("\\x") != string::npos); | ^~~ | std callbacks.cc:19355:133: error: 'string' is not a class, namespace, or enumeration 19355 | gtk_widget_set_sensitive(GTK_WIDGET(gtk_builder_get_object(unitedit_builder, "unit_edit_box_reversed")), str.find("\\x") != string::npos); | ^~~~~~ callbacks.cc: In function 'void correct_name_entry(GtkEditable*, ExpressionItemType, gpointer)': callbacks.cc:19359:9: error: 'string' was not declared in this scope 19359 | string str = gtk_entry_get_text(GTK_ENTRY(editable)); | ^~~~~~ callbacks.cc:19359:9: note: suggested alternatives: /usr/include/c++/12.2.0/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string string; | ^~~~~~ /usr/include/c++/12.2.0/string:65:11: note: 'std::pmr::string' 65 | using str