在AIX系统下使用boost_regex库编译问题

莫飞侠 2017-08-25 11:17:13
报错信息:
ld: 0711-317 ERROR: Undefined symbol: .boost::re_detail_106400::perl_matcher<const char*,std::allocator<boost::sub_match<const char*> >,boost::regex_traits<char,boost::cpp_regex_traits<char> > >::find()
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
make: The error code from the last command is 8.
在AIX下已经顺利编译(编译器xlC)过boost的regex库了,生成了一个对应的so文件,然后自己写了一个应用程序去调用这个regex库的函数,编译时-l链接了这个boost_regex库然后报错了,求指导,为啥,然道还要额外链接其他的库?这个情况在linux下不会发生的。
...全文
172 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

23,121

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧