问题构建/链接C ++库:XML ++和GLIB

时间:2014-02-10 22:11:23

标签: c++ xml dll compiler-construction linker

我正在使用代码块IDE为Windows编写一个c ++应用程序。我很有兴趣使用以下XML ++库:     http://libxmlplusplus.sourceforge.net/

它需要glibmm-2.4和libxml2,如网站所述。我下载了这些模块的源代码,并将其头文件/目录包含在我的项目中。我使用libxml ++的examples / dom_parser目录中的示例代码作为主要代码。

但是,我在“建立”或“链接”项目时遇到了麻烦。我收到“未定义的引用”错误消息。我是使用.lib,.a和.dll库文件的新手。我需要哪些特定文件“链接”到我的项目?我似乎无法在下载的zip文件中找到它们中的任何一个。谢谢。以下是消息:

C:/Users/b/Desktop/workspace/xmlpp/main.cpp:44: undefined reference to `xmlpp::ContentNode::is_white_space() const'
C:/Users/b/Desktop/workspace/xmlpp/main.cpp:47: undefined reference to `xmlpp::Node::get_name() const'
C:/Users/b/Desktop/workspace/xmlpp/main.cpp:49: undefined reference to `Glib::ustring::empty() const'
C:/Users/b/Desktop/workspace/xmlpp/main.cpp:53: undefined reference to `xmlpp::Node::get_namespace_prefix() const'
C:/Users/b/Desktop/workspace/xmlpp/main.cpp:54: undefined reference to `Glib::ustring::empty() const'

0 个答案:

没有答案
相关问题