Results 1 to 3 of 3

Thread: Stubborn linker errors (Qwt 6.1.0 Win32)

  1. #1
    Join Date
    Aug 2012
    Location
    Tucson, AZ, USA
    Posts
    7
    Thanks
    7
    Qt products
    Qt4
    Platforms
    Windows

    Question Stubborn linker errors (Qwt 6.1.0 Win32)

    I've been trying for about a week, on and off, to get rid of the following linker errors when I attempt to build an app linked statically to Qt 4.8.1 and Qwt 6.1.0. I built the Qwt libs against Qt 4.8.1 static:

    1>qwt_vs2010_qt481.lib(qwt_plot_marker.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class QSizeF & __thiscall QSizeF:perator/=(double)" (__imp_??_0QSizeF@@QAEAAV0@N@Z)
    1>qwt_vs2010_qt481.lib(qwt_plot_axis.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class QFontInfo __thiscall QWidget::fontInfo(void)const " (__imp_?fontInfo@QWidget@@QBE?AVQFontInfo@@XZ)
    1>qwt_vs2010_qt481.lib(qwt_plot.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class QFontInfo __thiscall QWidget::fontInfo(void)const " (__imp_?fontInfo@QWidget@@QBE?AVQFontInfo@@XZ)
    1>qwt_vs2010_qt481.lib(qwt_painter.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: bool __thiscall QTransform::isRotating(void)const " (__imp_?isRotating@QTransform@@QBE_NXZ)
    1>qwt_vs2010_qt481.lib(qwt_plot_canvas.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall QPainter::drawRects(class QVector<class QRect> const &)" (__imp_?drawRects@QPainter@@QAEXABV?$QVector@VQRec t@@@@@Z)
    1>qwt_vs2010_qt481.lib(qwt_scale_draw.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) double const * const qt_sine_table" (__imp_?qt_sine_table@@3QBNB)

    I did a dumpbin /LINKERMEMBER:1 on many of my static libs, but can't find anything with fontInfo, etc. Any help is appreciated!

    I built Qt 4.8.1 statically using the following switches:
    -static
    -release
    -platform win32-msvc2010
    -mp
    -nomake demos
    -nomake examples
    -no-scripttools
    -no-phonon
    -no-libtiff
    -vcproj
    -no-incredibuild-xge
    -no-native-gestures
    -no-dsp
    -no-rtti
    -ltcg
    -opensource
    -no-webkit
    -directwrite
    -stl
    Do it once, do it right.

  2. #2
    Join Date
    Aug 2012
    Location
    Tucson, AZ, USA
    Posts
    7
    Thanks
    7
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Stubborn linker errors (Qwt 6.1.0 Win32)

    Seriously, nobody knows?

    Where does QFontInfo and QTransform::isRotating get defined?
    Do it once, do it right.

  3. #3
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,325
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Stubborn linker errors (Qwt 6.1.0 Win32)

    In the Qt libs.

    Uwe

Similar Threads

  1. Linker errors with Q_OBJECT
    By dustin034 in forum Qt Programming
    Replies: 2
    Last Post: 13th May 2010, 19:14
  2. linker errors from MinGW 4.4.0 for Qt 4.6.2
    By planetLars in forum Qt Tools
    Replies: 1
    Last Post: 15th April 2010, 20:30
  3. please help with linker errors
    By jimboqt in forum Qt Programming
    Replies: 1
    Last Post: 5th July 2007, 09:49
  4. Linker errors!!
    By Seema Rao in forum Qt Programming
    Replies: 2
    Last Post: 25th April 2006, 08:14
  5. Linker Errors
    By MarkoSan in forum Qt Programming
    Replies: 5
    Last Post: 7th March 2006, 18:30

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.