Closed RaymiiOrg closed 8 months ago
Fails:
In file included from /usr/include/x86_64-linux-gnu/qt5/QtQml/qtqmlglobal.h:47, from /usr/include/x86_64-linux-gnu/qt5/QtQml/qqmlprivate.h:57, from qmlcache_loader.cpp:1: qmlcache_loader.cpp:89:25: error: redefinition of ‘int qInitResources_qt5()’ 89 | int QT_MANGLE_NAMESPACE(qInitResources_qt5)() { | ^~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:160:36: note: in definition of macro ‘QT_MANGLE_NAMESPACE’ 160 | # define QT_MANGLE_NAMESPACE(name) name | ^~~~ qmlcache_loader.cpp:79:25: note: ‘int qInitResources_qt5()’ previously defined here 79 | int QT_MANGLE_NAMESPACE(qInitResources_qt5)() { | ^~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:160:36: note: in definition of macro ‘QT_MANGLE_NAMESPACE’ 160 | # define QT_MANGLE_NAMESPACE(name) name | ^~~~ qmlcache_loader.cpp:94:44: error: redefinition of ‘struct {anonymous}::qInitResources_qt5_ctor_class_’ 94 | Q_CONSTRUCTOR_FUNCTION(QT_MANGLE_NAMESPACE(qInitResources_qt5)) | ^~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:492:25: note: in definition of macro ‘Q_CONSTRUCTOR_FUNCTION0’ 492 | static const struct AFUNC ## _ctor_class_ { \ | ^~~~~ qmlcache_loader.cpp:94:1: note: in expansion of macro ‘Q_CONSTRUCTOR_FUNCTION’ 94 | Q_CONSTRUCTOR_FUNCTION(QT_MANGLE_NAMESPACE(qInitResources_qt5)) | ^~~~~~~~~~~~~~~~~~~~~~ qmlcache_loader.cpp:94:24: note: in expansion of macro ‘QT_MANGLE_NAMESPACE’ 94 | Q_CONSTRUCTOR_FUNCTION(QT_MANGLE_NAMESPACE(qInitResources_qt5)) | ^~~~~~~~~~~~~~~~~~~ qmlcache_loader.cpp:84:44: note: previous definition of ‘struct {anonymous}::qInitResources_qt5_ctor_class_’ 84 | Q_CONSTRUCTOR_FUNCTION(QT_MANGLE_NAMESPACE(qInitResources_qt5)) | ^~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:492:25: note: in definition of macro ‘Q_CONSTRUCTOR_FUNCTION0’ 492 | static const struct AFUNC ## _ctor_class_ { \ | ^~~~~ qmlcache_loader.cpp:84:1: note: in expansion of macro ‘Q_CONSTRUCTOR_FUNCTION’ 84 | Q_CONSTRUCTOR_FUNCTION(QT_MANGLE_NAMESPACE(qInitResources_qt5)) | ^~~~~~~~~~~~~~~~~~~~~~ qmlcache_loader.cpp:84:24: note: in expansion of macro ‘QT_MANGLE_NAMESPACE’ 84 | Q_CONSTRUCTOR_FUNCTION(QT_MANGLE_NAMESPACE(qInitResources_qt5)) | ^~~~~~~~~~~~~~~~~~~ qmlcache_loader.cpp:94:44: error: conflicting declaration ‘const int {anonymous}::qInitResources_qt5_ctor_instance_’ 94 | Q_CONSTRUCTOR_FUNCTION(QT_MANGLE_NAMESPACE(qInitResources_qt5)) | ^~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:494:7: note: in definition of macro ‘Q_CONSTRUCTOR_FUNCTION0’ 494 | } AFUNC ## _ctor_instance_; \ | ^~~~~ qmlcache_loader.cpp:94:1: note: in expansion of macro ‘Q_CONSTRUCTOR_FUNCTION’ 94 | Q_CONSTRUCTOR_FUNCTION(QT_MANGLE_NAMESPACE(qInitResources_qt5)) | ^~~~~~~~~~~~~~~~~~~~~~ qmlcache_loader.cpp:94:24: note: in expansion of macro ‘QT_MANGLE_NAMESPACE’ 94 | Q_CONSTRUCTOR_FUNCTION(QT_MANGLE_NAMESPACE(qInitResources_qt5)) | ^~~~~~~~~~~~~~~~~~~ qmlcache_loader.cpp:84:44: note: previous declaration as ‘const {anonymous}::qInitResources_qt5_ctor_class_ {anonymous}::qInitResources_qt5_ctor_instance_’ 84 | Q_CONSTRUCTOR_FUNCTION(QT_MANGLE_NAMESPACE(qInitResources_qt5)) | ^~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:494:7: note: in definition of macro ‘Q_CONSTRUCTOR_FUNCTION0’ 494 | } AFUNC ## _ctor_instance_; \ | ^~~~~ qmlcache_loader.cpp:84:1: note: in expansion of macro ‘Q_CONSTRUCTOR_FUNCTION’ 84 | Q_CONSTRUCTOR_FUNCTION(QT_MANGLE_NAMESPACE(qInitResources_qt5)) | ^~~~~~~~~~~~~~~~~~~~~~ qmlcache_loader.cpp:84:24: note: in expansion of macro ‘QT_MANGLE_NAMESPACE’ 84 | Q_CONSTRUCTOR_FUNCTION(QT_MANGLE_NAMESPACE(qInitResources_qt5)) | ^~~~~~~~~~~~~~~~~~~ qmlcache_loader.cpp:95:25: error: redefinition of ‘int qCleanupResources_qt5()’ 95 | int QT_MANGLE_NAMESPACE(qCleanupResources_qt5)() { | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:160:36: note: in definition of macro ‘QT_MANGLE_NAMESPACE’ 160 | # define QT_MANGLE_NAMESPACE(name) name | ^~~~ qmlcache_loader.cpp:85:25: note: ‘int qCleanupResources_qt5()’ previously defined here 85 | int QT_MANGLE_NAMESPACE(qCleanupResources_qt5)() { | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:160:36: note: in definition of macro ‘QT_MANGLE_NAMESPACE’ 160 | # define QT_MANGLE_NAMESPACE(name) name | ^~~~ make: *** [Makefile:1193: qmlcache_loader.o] Error 1 make: *** Waiting for unfinished jobs....
Fails: