Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-51745

'multiple definition' errors while building QtSerialBus examples on Windows

XMLWordPrintable

      Hi, everyone,

      After applying https://codereview.qt-project.org/#/c/149611/ to branch 5.7 and running static build with MinGW-W64 got errors:

      C:\libQT-5.7-dev\src\qtserialbus\lib\libQt5SerialBus.a(qmodbusdevice.o):qmodbusdevice.cpp:(.text+0x2b0): multiple definition of `QT_MODBUS()'
      .obj/release/mainwindow.o:mainwindow.cpp:(.text+0x870): first defined here
      C:\libQT-5.7-dev\src\qtserialbus\lib\libQt5SerialBus.a(qmodbusdevice.o):qmodbusdevice.cpp:(.text+0x320): multiple definition of `QT_MODBUS_LOW()'
      .obj/release/mainwindow.o:mainwindow.cpp:(.text+0x8e0): first defined here
      collect2.exe: error: ld returned 1 exit status
      

      (log added in attachment).

      Regards,

      Alexander

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            heimrich Karsten Heimrich
            sav sav
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes