Is this a linker error during compile time, or an OS error during runtime?
If it's a linker error, make sure that you remember to import the functions using the applicable header.
If it's a runtime error, you need to either build the DLLs yourself, or get them from the publishers of OpenCV (I think you need to build this project). Then the resulting DLLs just need to go into the directory accompanying your executable.