【发布时间】:2012-02-01 13:15:55
【问题描述】:
我正在尝试使用已编译的 Boost 库进行编译。我可以使用仅头文件的 Boost 库进行编译,但现在我想使用需要编译的库,我无法让它工作。我使用 toolset=gcc 和 --build-type=complete 阶段构建了整个 Boost 库。我正在使用 Eclipse,并且正在链接库所在的文件夹:project_properties->c/c++ build->settings->mingw c++ linker->libraries 和库搜索路径 (-L) 我m 链接文件夹路径。我收到如下错误:
对`boost::regex_error::raise() const'的未定义引用
或
对`boost::re_detail::lookup_default_collate_name(std::string const&)'的未定义引用
我正在编译来自 boost 教程设置指南的示例代码,其中包括 boost/regex.hpp
【问题讨论】:
标签: c++ eclipse boost linker mingw