Ask Your Question

Revision history [back]

static compile application error

I have compiled openCV 3.3.1 with static (BUILD_SHARED_LIBS off in cmake). Compile and install done successfully. Using this I compiled the following program. But it causes compilation errors, one line of which I have copied here (there are about 50 errors of similar kind). Request help. Thanks in advance.



Mat img = Mat::zeros(300, 300,CV_8UC3);

imshow("output", img);

cout <<"hello world" << endl;


libopencv_highgui331.a(window_w32.cpp.obj):window_w32.cpp:(.text$_ZL15icvRemoveWindowP8CvWindow+0x114)||undefined reference to `__imp_SelectObject'