First time here? Check out the FAQ!
I had the same issue, the problem was that I had the wrong opencv lib file in Project properties > Linker > Input