본문 바로가기

Programming

[PCL] error C2661: 'pcl::PointCloud<PointT>::operator new' : no overloaded function takes 3 arguments

error C2661: 'pcl::PointCloud<PointT>::operator new' : no overloaded function takes 3 arguments 

라는 에러가 발생하였을 때 heap영역의 크기를 크게 하라는 방법이 제시되었지만 같은 오류가 발생하였다.


이때 아래와 같은 조치를 취해 해결하였다.


I had the same problem.(My PCL program runs well with win32, but failed in MFC.) I did two things to make it well in MFC. 


(1) add the following two lines in the place before you include pcl libraries 

#undef max 

#undef min 


(2)annotate these lines in your program 

//#ifdef _DEBUG 

//#define new DEBUG_NEW 

//#endif