All pastes #905459 Raw Edit

dll linkage problem

public text v1 · immutable
·published 2008-02-15 19:59 UTC
rendered paste body
*** An example of the compile error,

1>d:\stuff\KDE4_win32\svndir\trunk\extragear\multimedia\amarok\src\context\plasma\widgets\widget.cpp(81) : warning C4273: 'Plasma::Widget::graphicsItem' : inconsistent dll linkage
1>        D:\stuff\KDE4_win32\svndir\trunk\extragear\multimedia\amarok\src\context\plasma/widgets/widget.h(258) : see previous definition of 'graphicsItem'

*** The line of code in question :

QGraphicsItem* Widget::graphicsItem()

*** The class definition : 

class Q_GUI_EXPORT QGraphicsItem

*** definition of Q_GUI_EXPORT :

#    define Q_GUI_EXPORT Q_DECL_IMPORT

*** definition of Q_DECL_IMPORT

#    define Q_DECL_IMPORT __declspec(dllimport)