Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-23668

QT fails to link the dll specified in LIBS

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • Qt Creator 4.10.2
    • C/C++/Obj-C++ Support
    • None
    • Windows 10, version 1909 (OS Build 18363.657). Qt version 5.12.4 with Qt Creator 4.10.2. with "Desktop Qt 5.12.4 MSVC2017 32bit" Build. see attached file.
    • Windows

    Description

      Following the instruction inĀ https://wiki.qt.io/How_to_link_to_a_dll, make the following modification:

      Replace 'MYLIBRARY_EXPORT' with the 'MYLIBRARYSHARED_EXPORT' specified in the link above.

      when building myProgram, you'll get the following error:

      C:\Temp\test\myProgram\myLibrary\mylibrary.dll : fatal error LNK1107: invalid or corrupt file: cannot read at 0x2B8.

      Attachments

        1. Capture.PNG
          132 kB
          Y Huang
        2. Capture1.PNG
          55 kB
          Y Huang
        3. test.zip
          485 kB
          Y Huang
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kandeler Christian Kandeler
            yhuang Y Huang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes