请教大牛关于Boost.Interprocess managed_shared_memory 问题、多谢
本人刚开始用boost 、程序在linux上没问题、在aix上编译就有问题、aix下弄好久编译boost都没有过、最后看到网上说用Boost.Interprocess可以不用编译库、最后放弃编译、直接编译程序,程序如下:
managed_shared_memory segment ( create_only
, "MySharedMemory" //Shared memory object name
, 65536);
经推理好像走到这、就会报错、错误如下:
1540-0216 (S) An expression of type "overloaded function: U::to_node_ptr" cannot be converted to type "boost::interprocess::offset_ptr<boost::intrusive::compact_rbtree_node<boost::interprocess::offset_ptr<void,long,unsigned long,0> >,long,unsigned long,0> (boost::intrusive::detail::base_hook_traits<boost::interprocess::rbtree_best_fit<boost::interprocess::mutex_family,boost::interprocess::offset_ptr<void,long,unsigned long,0>,0>::block_ctrl,boost::intrusive::rbtree_node_traits<boost::interprocess...".
"/cbs/cbstest/src/piliang/olbatch/boost/boost/intrusive/detail/utilities.hpp", line 384.20: 1540-0424 (I) "boost::intrusive::detail::base_hook_traits<boost::interprocess::rbtree_best_fit<boost::interprocess::mutex_family,boost::interprocess::offset_ptr<void,long,unsigned long,0>,0>::block_ctrl,boost::intrusive::rbtree_node_traits<boost::interprocess::offset_ptr<void,long,unsigned long,0>,1>,0,boost::intrusive::default_tag,3>::to_node_ptr(reference)" is declared on line 384 of "/cbs/cbstest/src/piliang/olbatch/boost/boost/intrusive/detail/utilities.hpp".
"/cbs/cbstest/src/piliang/olbatch/boost/boost/intrusive/detail/utilities.hpp", line 387.26: 1540-0424 (I) "boost::intrusive::detail::base_hook_traits<boost::interprocess::rbtree_best_fit<boost::interprocess::mutex_family,boost::interprocess::offset_ptr<void,l