Details
-
Bug
-
Resolution: Fixed
-
Not Evaluated
-
QDS 4.5.1
-
47f356cc2 (dev), f1120eb00 (qds-4.5)
-
QDS Berlin - 2024 Week 27/28
Description
Q_LOGGING_CATEGORY line was probably copy pasted to the other file, so they produce an error when they appear in the same translation unit.
The name of the symbol should probably be changed to match the category better in both cases.
[build] <path_to_root>/output-windows-x64/debug/_deps/ds-src/src/imports/utils/quickstudiofilereader.cpp:46:27: error: redefinition of 'const QLoggingCategory& texttomodelMergerDebug()' [build] 46 | static Q_LOGGING_CATEGORY(texttomodelMergerDebug, "qt.Studiofilereader.debug", QtDebugMsg) [build] | ^~~~~~~~~~~~~~~~~~~~~~ [build] <path_to_root>/output-windows-x64/debug/_deps/ds-src/src/imports/utils/quickstudiocsvtablemodel.cpp:158:27: note: 'const QLoggingCategory& texttomodelMergerDebug()' previously defined here [build] 158 | static Q_LOGGING_CATEGORY(texttomodelMergerDebug, "qt.StudioCsvTableModel.debug", QtDebugMsg) [build] | ^~~~~~~~~~~~~~~~~~~~~~
Unity build is a build mode in CMake that combines multiple .cpp files together so that is why it leads to these appearing in the same translation unit:
https://cmake.org/cmake/help/latest/prop_tgt/UNITY_BUILD.html
Attachments
Issue Links
- mentioned in
-
Page Loading...