Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Undefined reference
Qt 6.11 is out! See what's new in the release blog

Undefined reference

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 1.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Binu JanardhananB Offline
    Binu JanardhananB Offline
    Binu Janardhanan
    wrote on last edited by Binu Janardhanan
    #1

    Hi,
    I am trying to integrate 3rdparty library into QT but it shows following error,

    16:50:55: Running steps for project MyQtApp...
    16:50:55: Configuration unchanged, skipping qmake step.
    16:50:55: Starting: "C:\Qt\Tools\mingw492_32\bin\mingw32-make.exe"
    C:\Qt\5.6\mingw49_32\bin\qmake.exe -spec win32-g++ -o Makefile MyQtApp.pro
    C:/Qt/Tools/mingw492_32/bin/mingw32-make -f Makefile.Release
    mingw32-make[1]: Entering directory 'G:/Official/MRI/DICOM/dev/DcmtkQtLink'
    g++ -Wl,-s -Wl,-subsystem,console -mthreads -o bin\release\MyQtApp.exe release/main.o -LG:\Official\MRI\DICOM\dev\DcmtkQtLink\thirdparty\dcmtk\lib -ldcmdata -ldcmimage -ldcmimgle -ldcmjpeg -ldcmjpls -loflog -lofstd -LC:\Qt\5.6\mingw49_32\lib C:\Qt\5.6\mingw49_32\lib\libQt5Core.a
    release/main.o:main.cpp:(.text.startup+0x265): undefined reference to _imp___ZN13DcmFileFormatC1Ev' release/main.o:main.cpp:(.text.startup+0x29b): undefined reference to _imp___ZN10OFFilenameC1EPKcb'
    C:/Qt/Tools/mingw492_32/bin/../lib/gcc/i686-w64-mingw32/4.9.2/../../../../i686-w64-mingw32/bin/ld.exe: release/main.o: bad reloc address 0x29b in section `.text.startup'
    collect2.exe: error: ld returned 1 exit status
    Makefile.Release:61: recipe for target 'bin\release\MyQtApp.exe' failed
    mingw32-make[1]: Leaving directory 'G:/Official/MRI/DICOM/dev/DcmtkQtLink'
    makefile:34: recipe for target 'release' failed
    mingw32-make[1]: *** [bin\release\MyQtApp.exe] Error 1
    mingw32-make: *** [release] Error 2
    16:50:58: The process "C:\Qt\Tools\mingw492_32\bin\mingw32-make.exe" exited with code 2.
    Error while building/deploying project MyQtApp (kit: Desktop Qt 5.6.1 MinGW 32bit2)
    When executing step "Make"
    16:50:58: Elapsed time: 00:03.

    Please help me to solve the issue

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by mrjj
      #2

      @Binu-Janardhanan said:

      3rdparty library

      Hi and welcome
      If this 3rdparty library is a DLL, then it must ALSO be compiled with mingw492_32.
      You cannot link dlls compiled with one compiler to another compiler.
      You will have to rebuild the DLL with your compiler. (mingw)

      Often supplied DLLS are for a version of visual studio.

      So please check if the DLLS are indeed for mingw :)

      1 Reply Last reply
      3
      • Binu JanardhananB Offline
        Binu JanardhananB Offline
        Binu Janardhanan
        wrote on last edited by
        #3

        Thanks your response. I will try to sort out the issue from your thread

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved