Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.7.0
-
-
47ff7d99a (dev), a2b94167a (6.8), 4f77d117c (6.7), 15c1ef513 (tqtc/lts-6.5)
Description
if QT_DISABLE_DEPRECATED_UP_TO 0x060400 in static build environment it gives
Linker Tools Error LNK2005: symbol already defined in object
Linker Tools Error LNK1169: The build failed due to multiple definitions of one or more symbols.
This can be seen with following tiny code.
#define QT_DISABLE_DEPRECATED_UP_TO 0x060400 #include <QByteArray> #include <QLocale> int main(int , char* []) { QLocale l("C"); return QByteArray().isNull(); }
Same code works with QT_DISABLE_DEPRECATED_UP_TO=0x060300
Attachments
Issue Links
- is duplicated by
-
QTBUG-127070 QT_DISABLE_DEPRECATED_UP_TO breaks ABI with static builds
- Closed
- relates to
-
QTBUG-111884 FTBFS: qtbase can't be built in static mode
- Closed
For Gerrit Dashboard: QTBUG-125975 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
584545,2 | Clarify QT_DISABLE_DEPRECATED_UP_TO usage in static builds | dev | qt/qtbase | Status: MERGED | +2 | 0 |
585688,2 | Clarify QT_DISABLE_DEPRECATED_UP_TO usage in static builds | 6.8 | qt/qtbase | Status: MERGED | +2 | 0 |
585695,2 | Clarify QT_DISABLE_DEPRECATED_UP_TO usage in static builds | 6.7 | qt/qtbase | Status: MERGED | +2 | 0 |
585779,2 | Clarify QT_DISABLE_DEPRECATED_UP_TO usage in static builds | tqtc/lts-6.5 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |