{"id":331,"date":"2022-08-30T14:59:34","date_gmt":"2022-08-30T14:59:34","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/11\/06\/compile-error-when-using-cvminmaxloc-on-ios-collection-of-common-programming-errors\/"},"modified":"2022-08-30T14:59:34","modified_gmt":"2022-08-30T14:59:34","slug":"compile-error-when-using-cvminmaxloc-on-ios-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/compile-error-when-using-cvminmaxloc-on-ios-collection-of-common-programming-errors\/","title":{"rendered":"compile error when using cv::minMaxLoc() on iOS-Collection of common programming errors"},"content":{"rendered":"<p>I am using OpenCV on iOS, the project works fine and can detect harris corners but when I try to use the following line I get a compile error:<\/p>\n<pre><code>cv::minMaxLoc(cornerStrength,&amp;minStrength,&amp;maxStrength);\n<\/code><\/pre>\n<p>The error from xcode is:<\/p>\n<p><strong>Undefined symbols for architecture armv7: &#8220;___udivmodsi4&#8221;, referenced from: cv::minMaxIdx(cv::_InputArray const&amp;, double*, double*, int*, int*, cv::_InputArray const&amp;)in OpenCV(stat.o) ld: symbol(s) not found for architecture armv7 collect2: ld returned 1 exit status<\/strong><\/p>\n<p>Any advice much appreciated as I cant find a way past this at the moment.<\/p>\n<p>Cheers, Fraser<\/p>\n<p id=\"rop\"><small>Originally posted 2013-11-06 03:08:26. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I am using OpenCV on iOS, the project works fine and can detect harris corners but when I try to use the following line I get a compile error: cv::minMaxLoc(cornerStrength,&amp;minStrength,&amp;maxStrength); The error from xcode is: Undefined symbols for architecture armv7: &#8220;___udivmodsi4&#8221;, referenced from: cv::minMaxIdx(cv::_InputArray const&amp;, double*, double*, int*, int*, cv::_InputArray const&amp;)in OpenCV(stat.o) ld: symbol(s) not [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-331","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/331","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=331"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/331\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=331"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=331"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=331"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}