Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
5.12.1
-
MSVC2017
-
-
c0f0d22a1ae85c7efafb4cee6d0e59effb68262c
Description
Compile output with QtCharts imported in QML:
Qt5Chartsd.lib(qbarmodelmapper.obj) : error LNK2005: "class QtCharts::QBarSet * (__cdecl* QtCharts::qt_allocate_bar_set)(class QString const &)" (?qt_allocate_bar_set@QtCharts@@3P6APEAVQBarSet@1@AEBVQString@@@ZEA) already defined in qtchartsqml2d.lib(declarativechart.obj)
Creating library debug\QtQuickChartsTest.lib and object debug\QtQuickChartsTest.exp
debug\QtQuickChartsTest.exe : fatal error LNK1169: one or more multiply defined symbols found
Steps to reproduce:
- Build an application with a static version of Qt 5.12.1 and import QtCharts in QML. See attached project for reference.