download OpenCV2.1 form this link, install it in C drive.
now open dev-cpp and open compiler options from tool menu, and link the files as shown in figure.
Click on image to see inlarge..



now open dev-cpp and open compiler options from tool menu, and link the files as shown in figure.
Click on image to see inlarge..