I can't see your entire command line, but it looks like you're not linking with the opencv libraries. I don't know what libraries are needed, but you might start by adding -lopencv_core.
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........