PCL与MFC 冲突总结

(1):max,min问题

MFC程序过程中使用STL一些类编译出错,放到Console Application里一切正常。
比如:

void CMyDialog::OnBnClickedButton1()
{
    double min=std::numeric_limits<double>::max();
 }

这一个问题在前一篇文章解决.

(2):error C2661: “operator new” : 没有重载函数接受 3 个参数

对于mfc与pcl的各种冲突,例如其上。

解决方法为:http://bbs.csdn.net/topics/330096920

    我的方法是直接注销了,dlg里面的#define new DEBUG_NEW

#ifdef _DEBUG
//#define new DEBUG_NEW//wishchin 为消除pcl不能拿new三个参数!!!
#endif

转载:http://www.voidcn.com/article/p-eusxrxoq-op.html

猜你喜欢

转载自blog.csdn.net/hshqing/article/details/83313432
pcl