更新升压库的RAD Studio [英] updating boost libraries for Rad Studio

查看:161
本文介绍了更新升压库的RAD Studio的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要更新Boost库到版本1_46,目前的RAD Studio XE / 2010有1_39版本。当我尝试只是为了覆盖提振包括路径编译失败与Borland的VCL各种错误。当我尝试添加新的动力库在其他的路径保持previous版本,它构建的std :: *类时也失败,编译条件的错误。
我需要shared_memory_manager支持,只有在新的动力版本可用。是否有任何其他的方式来升级Boost库或使用共享内存将提供给同样的流程?

只有新的动力版本,编译时编译错误


  

[BCC32错误] bad_weak_ptr.hpp(44):E2113虚拟功能bad_weak_ptr ::什么()const的掷()与基类冲突'的std ::例外


  
  

[BCC32错误] xlocale(953):E2228太多错误或警告讯息



解决方案

有几十个地点提振其内部,以检查的编译器版本,以确定是否需要一定的变通方法。 (检查对阵双方__ codeGEARC__和__BORLANDC__)您需要测试每一种和更新的版本号为合适。也有一些配置/编译器/ codegear.hpp文件(通常BOOST_HAS​​_ *和* BOOST_NO_)内设置定义,你还需要开启/关闭针对不同版本的编译器的。

这是一个非常棘手和耗时的过程。

I need to update boost libraries to version 1_46, currently Rad Studio XE/2010 have 1_39 version. When I try just to overwrite boost include path compile fails with various errors from Borland VCL. When i try to add new boost libs in other path keep previous version it also fails with compile condition errors when constructing std::* classes. I need shared_memory_manager support that is available only in new boost versions. Is there any other ways to upgrade boost libraries or use shared memory that will be available to same processes?

Compilation errors when compiling with new boost version only:

[BCC32 Error] bad_weak_ptr.hpp(44): E2113 Virtual function 'bad_weak_ptr::what() const throw()' conflicts with base class 'std::exception'

[BCC32 Error] xlocale(953): E2228 Too many error or warning messages

解决方案

There are dozens of locations inside of boost which check the compiler version in order to determine whether or not certain workarounds are needed. (checking against both __CODEGEARC__ and __BORLANDC__) You need to test each of these and update the version number as appropriate. Also there are a number of defines set inside the config/compiler/codegear.hpp file (typically BOOST_HAS_* and BOOST_NO_*) which you also need to turn on/off for different versions of the compiler.

It is a very tricky and time consuming process.

这篇关于更新升压库的RAD Studio的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆