未定义的外部变量引用

时间:2014-01-07 08:02:55

标签: c++ extern qt4.8 qxmpp

我在扩展它时使用qxmpp库。当我使用该库中的extern char*变量时,我遇到了问题。有一个QXmppConstants.h包含namespaces。我已经包含qxmpp库它工作正常。但是当我在Windows中编译我的项目时,它会提示以下错误:

error: undefined reference to ns_bytestreams'

error: undefined reference to ns_disco_info'

error: undefined reference to ns_disco_items'

如何解决这个问题?

0 个答案:

没有答案