[GH-ISSUE #1538] QMap declared but not defined in recent Qt #640

Open
opened 2026-10-13 20:25:44 +00:00 by bsakaguchi · 0 comments
Owner

Originally created by @mauro80 on GitHub (Apr 17, 2025).
Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/1538

Describe the bug
Probably recent versions of Qt break the building process. Building with qt6.9.0 gives the following error

 implicit instantiation of undefined template 'QMap<QString, QString>'       const QMap<QString, QString>& extra = QMap<QString, QString>()) const;  /usr/include/qt6/QtCore/qcontainerfwd.h:23:43: note: template is declared here

To Reproduce
Standard configure and build in linux with ninja + clang + qt6.9.0 (probably any qt6.4+).

Fix
Add #include <QMap> in client/daemon/interfaceconfig.h.

Originally created by @mauro80 on GitHub (Apr 17, 2025). Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/1538 **Describe the bug** Probably recent versions of Qt break the building process. Building with `qt6.9.0` gives the following error ``` implicit instantiation of undefined template 'QMap<QString, QString>' const QMap<QString, QString>& extra = QMap<QString, QString>()) const; /usr/include/qt6/QtCore/qcontainerfwd.h:23:43: note: template is declared here ``` **To Reproduce** Standard configure and build in linux with ninja + clang + qt6.9.0 (probably any qt6.4+). **Fix** Add `#include <QMap>` in `client/daemon/interfaceconfig.h`.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
amnezia-vpn/amnezia-client#640
No description provided.