PDA

View Full Version : Stubborn linker errors (Qwt 6.1.0 Win32)



Mesozoic
18th September 2013, 19:46
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::operator/=(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

Mesozoic
8th November 2013, 20:55
Seriously, nobody knows?

Where does QFontInfo and QTransform::isRotating get defined?

Uwe
9th November 2013, 08:11
In the Qt libs.

Uwe