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 error while trying to build QStyledPlugin
Forum Updated to NodeBB v4.3 + New Features

Undefined reference error while trying to build QStyledPlugin

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 911 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.
  • S Offline
    S Offline
    Silencekeeper
    wrote on last edited by
    #1

    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
    0

    • Login

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