c++ - Undefined symbols for architecture x86_64 using OpenCV -


i'm getting error, i've read other relevant post yet still can't find solution.

when compiling, getting error. using opencv framework , own additional c++ classes.

undefined symbols architecture x86_64:   "person::detectedpersoninimage(cv::cascadeclassifier, cv::mat, double, int, int)" 

within .mm implementation file using c++ static method so,

cv::mat matimage = [image cvmat]; matimage = person::detectedpersoninimage(cascade, matimage, scale, min_neighbors, max_size); 

in person header,

static cv::mat detectedpersoninimage(cv::cascadeclassifier cascade, cv::mat image, double scale, int min_neighbors,                                     int max_size); 

in person.cpp file,

static cv::mat detectedpersoninimage(cv::cascadeclassifier cascade, cv::mat image, double scale, int min_neighbors,                                     int max_size) {     //work done here.     return image; } 

any ideas on how can resolved?

regards, c.

in person header, should have this

class person { // or struct person     static cv::mat detectedpersoninimage(cv::cascadeclassifier cascade, cv::mat image, double scale, int min_neighbors,                                     int max_size);  // other things... } 

in person.cpp file, should have this

// no static, add person:: cv::mat person::detectedpersoninimage(cv::cascadeclassifier cascade, cv::mat image, double scale, int min_neighbors,                                     int max_size) {     //work done here.     return image; } 

Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -