centos32位换64位 gcc版本一样 链接错误

swuxd 2014-04-14 06:43:04
g++ -g  -gstabs  -g -o baidumap  util/Asock.o util/basehtmlparser.o util/xml.o util/Cbaidu.o util/threadpool.o util/threadjob.o util/findfile.o util/convert.o util/Cookie.o util/crawlerutil.o util/des.o util/md5.o util/md5set.o util/mutex.o util/mysqladmin.o util/parsedate.o util/sock.o util/speeddetector.o util/thread.o util/globalvar.o util/urlparser.o util/utf8conv.o gzip/bits.o gzip/deflate.o gzip/gzip.o gzip/inflate.o gzip/trees.o gzip/unzip.o gzip/util.o gzip/zip.o LifeConfig.o LogFile.o pop3.o URLEncode.o CommMethod.o UrlFeature.o DnsClient.o mainBaiduMapDistance.o -lpthread -lssl -liconv -lboost_regex `mysql_config --libs`  
/usr/lib/../lib64/libboost_regex.so: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::basic_ostream<char, std::char_traits<char> >::_M_insert<unsigned long>(unsigned long)@GLIBCXX_3.4.9'
/usr/lib/../lib64/libboost_regex.so: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)@GLIBCXX_3.4.9'
/usr/lib/../lib64/libboost_regex.so: undefined reference to `std::ctype<char>::_M_widen_init() const@GLIBCXX_3.4.11'
collect2: ld returned 1 exit status
make: *** [baidumap] Error 1


何解
...全文
88 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
swuxd 2014-04-14
  • 打赏
  • 举报
回复
解决 boost库版本的问题 删除原来的 /lib64 下面的库文件 重新安装

23,125

社区成员

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

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