From ba2f98edd8af7c462541399ea825d577aa975640 Mon Sep 17 00:00:00 2001 From: leroymusa Date: Wed, 12 Nov 2025 21:30:37 -0500 Subject: [PATCH 1/3] * Fixed: undefined reference linker errors for GroupCategory template categories() method on Linux/gcc 13. Added explicit template instantiations for KanjiGroup and WordGroup specializations. --- .gitignore | 16 ++++++++++++++++ groups.cpp | 5 +++++ 2 files changed, 21 insertions(+) diff --git a/.gitignore b/.gitignore index ec03eed..446dd89 100644 --- a/.gitignore +++ b/.gitignore @@ -196,3 +196,19 @@ ModelManifest.xml /tr2.bat /tr.bat /test + +# Qt build artifacts +*.o +*.a +moc_*.cpp +moc_*.h +ui_*.h +qrc_*.cpp +*.pro.user +*.pro.user.* +.qmake.stash +Makefile* +zkanji +zkanji.ini +data/ +import_data/ diff --git a/groups.cpp b/groups.cpp index 4abb230..8bb65a9 100644 --- a/groups.cpp +++ b/groups.cpp @@ -2786,3 +2786,8 @@ void Groups::processRemovedWord(int windex) //------------------------------------------------------------- +template GroupCategory::self_type* GroupCategory::categories(int index); +template const GroupCategory::self_type* GroupCategory::categories(int index) const; +template GroupCategory::self_type* GroupCategory::categories(int index); +template const GroupCategory::self_type* GroupCategory::categories(int index) const; + From 3ec43cca8bc18c33c0facae3231dde3dc6f1a708 Mon Sep 17 00:00:00 2001 From: leroymusa Date: Wed, 12 Nov 2025 21:30:38 -0500 Subject: [PATCH 2/3] * Fixed: missing include for cstdint header on Ubuntu 22.04 with gcc 13. --- checked_cast.h | 1 + 1 file changed, 1 insertion(+) diff --git a/checked_cast.h b/checked_cast.h index dd459b7..ea23192 100644 --- a/checked_cast.h +++ b/checked_cast.h @@ -18,6 +18,7 @@ #endif #include +#include /* // Converts T value to RESULT_TYPE, which must be a signed number. RESULT_TYPE is by default From 233a7e07256e68ae4e5c90abba462d82b7b7ac8a Mon Sep 17 00:00:00 2001 From: leroymusa Date: Wed, 12 Nov 2025 21:30:39 -0500 Subject: [PATCH 3/3] * Fixed: duplicate using declarations in ZColorComboBox causing compilation errors. --- zcolorcombobox.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zcolorcombobox.h b/zcolorcombobox.h index 04e8826..b176428 100644 --- a/zcolorcombobox.h +++ b/zcolorcombobox.h @@ -125,8 +125,8 @@ private slots: int oldindex; using QComboBox::activated; - using QComboBox::activated; - using QComboBox::currentIndexChanged; + // using QComboBox::activated; + // using QComboBox::currentIndexChanged; using QComboBox::currentIndexChanged; using QComboBox::currentTextChanged;