Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Undefined reference error while trying to build QStyledPlugin

    General and Desktop
    1
    1
    848
    Loading More Posts
    • 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.
    • S
      Silencekeeper last edited by

      I'm trying to build qstyledplugin from http://qt.gitorious.org/qt/qtstyleplugins using mingw-4.7.2 and Qt5.0.1 from http://qt-project.org/forums/viewthread/23002 but I get this error:

      mingw32-make.exe -f Makefile.Release
      g++ -Wl,-s -shared -Wl,--out-implib,C:\git\styled\qtstyleplugins\plugins\styles\libqcleanlooksstyle.a -o ..\..\..\..\plugins\styles\qcleanlooksstyle.dll .obj/release_shared/qcleanlooksstyle.o .obj/release_shared/plugin.o .obj/release_shared/qstylehelper.o .obj/release_shared/moc_qcleanlooksstyle.o  -Lc:/SDK/Qt5-x32/lib -lQt5Widgets -lQt5Gui -lQt5Core -llibEGL -llibGLESv2 -lgdi32 -luser32 
      .obj/release_shared/qcleanlooksstyle.o:qcleanlooksstyle.cpp:(.text+0x1001):  \
           undefined reference to `_imp___ZTV16QCleanlooksStyle' 
      .obj/release_shared/qcleanlooksstyle.o:qcleanlooksstyle.cpp:(.text+0x19017): \
           undefined reference to `_imp___ZTV16QCleanlooksStyle' 
      c:/qt/mingw-4.7.2/bin/../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/bin/ld.exe: .obj/release_shared/qcleanlooksstyle.o: \
           bad reloc address 0x36 in section `.text$_ZN8QPainter8drawLineERK6QPointS2_[__ZN8QPainter8drawLineERK6QPointS2_]'
      

      How can it be solved?

      I have the same error when trying to build with official Qt 5.0.1 for Windows 32-bit (MinGW 4.7).

      1 Reply Last reply Reply Quote 0
      • First post
        Last post