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

'multiple definition' errors while building QtSerialBus examples on Windows

    XMLWordPrintable

    Details

      Description

      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

        Attachments

          Issue Links

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

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes