【发布时间】:2014-02-12 13:35:25
【问题描述】:
我正在使用 code::blocks 和 boost。我可以使用 boost::regex 进行编译。
当我使用 boost::shared_ptr 并编译我的项目时。我收到此编译错误:
...\Local\Temp\ccviNbsT.s|30|错误:
xadd'| ...\Local\Temp\ccviNbsT.s|63|Error: no such instruction:incl DWORD 的操作数大小不匹配 PTR [eax]'|
注意:我注意到 shared_ptr 没有静态库。
include <boost/smart_ptr/shared_ptr.hpp>
class AClass
{
void VAddView(boost::shared_ptr<IClass> pView)
{
}
};
我很困惑,谁能告诉我发生了什么事?
【问题讨论】:
-
相关细节:安装的工具链、使用的编译器、标志、操作系统和架构 (32/64)?升压版
标签: boost size shared-ptr mismatch operand