클래스에 정적 구조체를 정의했습니다. 하지만 오류로 오류가 발생한다정적 구조체를 초기화하고 사용하는 방법
error LNK1120: 1 unresolved externals
내 헤더 파일
class CornerCapturer{
static struct configValues
{
int block;
int k_size;
int thre;
double k;
configValues() :block(2), k_size(3), thre(200), k(0.04){}
}configuration;
public:
void captureCorners(Mat frame);
}
내 CPP 파일
void CornerCapturer::captureCorners(Mat frame){
int y= CornerCapturer::configuration.thre;
}
당신의 CPP 파일에이 추가 내게
고맙습니다. –