Opencv installed but not working in c++

That is not the problem because arch builds them on the fly for you. Is there a way to install opencv viz module correcty. I am not sure if i am using them but the error still persists.

I tried using Cmake but the same error came.