开发者

Undefine symbol from Qt library

开发者 https://www.devze.com 2023-03-16 15:28 出处:网络
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.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消