编译 QT4.6.3 出现 derefIfNotNull 未定义 解决

使用高版本的编译工具编译QT4.6.3

出现错误 

derefIfNotNull 未定义,

找到 RefPtr.h文件,在WFT  的 public 里面增加 两个函数的定义

void derefIfNotNull(T* ptr)
  {
if (LIKELY(ptr != 0))
ptr->deref();
}
void refIfNotNull(T* ptr)
{
if (LIKELY(ptr != 0))
ptr->ref();

}


继续 make 


 出错:error: ‘insert’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation
  解决办法:按照note提示,将./tools/porting/src/codemodel.h中的 99 行  insert改为this->insert,重新编译


继续 make ,

猜你喜欢

转载自blog.csdn.net/luy3728000/article/details/79405388
今日推荐