Who faced this problem when working with OpenCV? C ++ language, I work in VS2013.
Error 1 error C2864: "cv :: sfinae :: has_parenthesis_operator :: value": a static data item with an initializer inside a class must have an immutable integer type const c: \ users \ admin \ documents \ visual studio 2013 \ projects \ opencv2 \ core \ cvstd_wrapper.hpp 52 1 Second_test
That's actually all the code:
#include "opencv2/core/core.hpp" #include <opencv2/core/types_c.h> #include "opencv2/highgui/highgui.hpp" #include "opencv2/imgproc/imgproc.hpp" #include <opencv2/core/core_c.h> #include <opencv2/imgproc/imgproc_c.h> #include <opencv2/highgui/highgui_c.h> #include <iostream> int main(int argc, char** argv) { system("pause"); return 0; }
cvstd_wrapper.hpp
is an interface header file, then it does not matter whether the library is already compiled or not. - AnT pm