Sir i got the results and i got it compiled
i just used this command while compiling "g++ opencv_ex1.cpp 'pkg-config opencv --cflags --libs' -o opencv_ex1"
Though it took around 5 min to compile and generate binaries , it took only like a half a second to execute it....i am very much impressed with this board........