I don't have a Windows machine handy to test with, but where did you ever read any mention of a "namespace cv"? And where did you find "cv.hpp"?
Try
Maybe you'll find this opencv wiki helpful.Code:#include <cv.h> #include <cxcore.h> #include <highgui.h> #include <iostream> using namespace std; int main( int argc, char** argv ) { //...