关于boost库的一个auto_link问题?

gaoxinglong_9999 2011-11-21 07:51:48
C:\Program Files\boost_1_47_0\boost/config/auto_link.hpp(258): catastrophic error: #error directive: "Build options aren't compatible with pre-built libraries"
1> # error "Build options aren't compatible with pre-built libraries"

这是提示错误:
错误定位:

if (defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION)) && (defined(_STLP_OWN_IOSTREAMS) || defined(__STL_OWN_IOSTREAMS))

# if defined(_DEBUG) && (defined(__STL_DEBUG) || defined(_STLP_DEBUG))\
&& defined(BOOST_DEBUG_PYTHON) && defined(BOOST_LINKING_PYTHON)
# define BOOST_LIB_RT_OPT "-sgydp"
# elif defined(_DEBUG) && (defined(__STL_DEBUG) || defined(_STLP_DEBUG))
# define BOOST_LIB_RT_OPT "-sgdp"
# elif defined(_DEBUG)\
&& defined(BOOST_DEBUG_PYTHON) && defined(BOOST_LINKING_PYTHON)
# define BOOST_LIB_RT_OPT "-sgydp"
# pragma message("warning: STLPort debug versions are built with /D_STLP_DEBUG=1")
# error "Build options aren't compatible with pre-built libraries"
# elif defined(_DEBUG)
# define BOOST_LIB_RT_OPT "-sgdp"
# pragma message("warning: STLPort debug versions are built with /D_STLP_DEBUG=1")
# error "Build options aren't compatible with pre-built libraries" <------------此处定位错误!!!
# else
# define BOOST_LIB_RT_OPT "-sp"
# endif


我只在cpp文件里面写了一行字;#include <boost/regex/concepts.hpp>
然后编译+链接,就这样了!
...全文
387 6 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
gaoxinglong_9999 2011-11-22
  • 打赏
  • 举报
回复
可是我确实把目录拷贝了。我现在知道是什么原因了。主要是我同时用了STL5.2.1和boost1.4.8,但是boost并没有依赖stl编译,按照网上说的各种修改办法,我的依赖编译都没能成功。谁能给我一个好点的办法呢?谢谢……谢谢……[Quote=引用 4 楼 taodm 的回复:]

那又如何。你没有把正确的.lib文件拷到vc目录里。
[/Quote]
taodm 2011-11-22
  • 打赏
  • 举报
回复
你既然用的intel2011xe编译器,vs2008链接,就没必要瞎折腾stlport了。
拆掉stlport就好了。
taodm 2011-11-21
  • 打赏
  • 举报
回复
那又如何。你没有把正确的.lib文件拷到vc目录里。
gaoxinglong_9999 2011-11-21
  • 打赏
  • 举报
回复
我编译选用的是complete啊[Quote=引用 2 楼 taodm 的回复:]

说得多清楚啊,你编译boost用的选项和你现在项目的选项不兼容啊。要么重新编译boost,要么重新调整你现在的工程。
[/Quote]
taodm 2011-11-21
  • 打赏
  • 举报
回复
说得多清楚啊,你编译boost用的选项和你现在项目的选项不兼容啊。要么重新编译boost,要么重新调整你现在的工程。
gaoxinglong_9999 2011-11-21
  • 打赏
  • 举报
回复
补充:我用的是intel2011xe编译器,vs2008链接
基于Python以及Flask的微型本地Arcaea服务器.zip 特性 Features :x: : 不支持 Not supported :warning: : 可能存在问题 / 可能与官方不一样 Possible issues / may differ from official :wastebasket: : 不再更新,可能会移除或重构 No longer updated, may be removed or refactored :construction: : 建设中 In construction 登录、注册 Login and registration 多设备自动封号 Auto-ban of multiple devices :warning: 多设备登录 Multi device login 登录频次限制 Login rate limit :x: 销号 Destroy account 成绩上传 Score upload 成绩校验 Score check 成绩排名 Score rank 潜力值机制 Potential Best 30 :warning: Recent Top 10 :warning: 世界排名 Global rank 段位系统 Course system :warning: Link Play 好友系统 Friends :x: 好友位提升 Max friend number increase 云端存档 Cloud save 尝试全剧情、曲目解锁 Try to unlock all the stories and songs 世界模式 World mode 体力系统 Stamina system :warning: 普通梯子强化和绳子强化 Normal steps boost & beyond boost :warning: 角色技能 Character skills 歌曲下载 Songs downloading :x: 加密下载 Encrypted downloading 下载校验 Download check 下载频次限制 Download rate limit 购买系统 Purchase system 单曲和曲包 Single & Pack :x: 捆绑包 Bundle 折扣 Discount 五周年兑换券 5-th anniversary ticket :x: Extend 包自动降价 Extend pack automatic price reduction 奖励系统 Present system 兑换码系统 Redeem code system 角色系统 Character system 数据记录 Data recording 用户成绩 Users' scores 用户每日潜力值 Users' daily potential :wastebasket: 简单的网页管理后台 Simple web admin backend :construction: API 服务器日志 Server log

65,184

社区成员

发帖
与我相关
我的任务
社区描述
C++ 语言相关问题讨论,技术干货分享,前沿动态等
c++ 技术论坛(原bbs)
社区管理员
  • C++ 语言社区
  • encoderlee
  • paschen
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
  1. 请不要发布与C++技术无关的贴子
  2. 请不要发布与技术无关的招聘、广告的帖子
  3. 请尽可能的描述清楚你的问题,如果涉及到代码请尽可能的格式化一下

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