본문 바로가기

Programming/MFC

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

PCL 라이브러리를 사용하다보니 아래와 같은 오류가 발생하였다.

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


PCL 라이브러리에서 제시한 방법으로 선언을 했지만 어이가 없게도 new 연산자에서 오류가 난다....

PointCloud<PointXYZRGB>::Ptr cloud(new PointCloud<PointXYZRGB>); // x, y, z, r, g, b


구글링을 해보니 잘 나오지 않았는데 www.pcl-user.org 에서 heap을 늘려보라는 생각치도 못한 답변이....


프로젝트의 속성 > C/C++ > 명령줄의 추가 옵션 부분에 /Zm1000를 입력하고 확인 버튼을 누르니 놀랍게도 오류가 사라졌다....

factor의 값

메모리 할당 제한

10

7.5MB

100

75MB

200

150MB

1000

750MB

2000

1500MB

무슨 이런 오류가...ㅠㅠ 어쨌든 또 한 건 해결!!