I create a static library using Qt library. But when 开发者_JS百科I use this created static library and link to my application, then the problem is it will give me undefine symbol of QImage.
Please advise.
Many thanks.
some error message:
undefined reference to `QImage::~QImage()'
You need to link the application with your library AND Qt libraries. You library is not linked to Qt.
When you create a a static library, it doesn't pull in everything from QT. It pulls in only the object files to satisfy the undefined symbols.
So you still need to link with QT libraries.
精彩评论