Cant execute an opencv pgm

hey,

I'm new to Linux & i need to get started with programming using Opencv. I've gone thru the tutorials mentioned here -

http://www.cs.iit.edu/~agam/cs512/lect-notes/opencv-intro/opencv-intro.html

but i cant execute the 1st sample file. I've used the same command they'v shown -

g++ hello-world.cpp -o hello-world \
-I /usr/local/include/opencv -L /usr/local/lib \
-lm -lcv -lhighgui -lcvaux

In fact, i copied the file "opencv" into location /usr/local/include/ since it mentioned in the commandline statement. I'm not sure if thats the way to do it, neway i get the error stating -

/usr/bin/ld.real: cannot find -lcv
collect2: ld returned 1 exit status

I hav no idea how to go abt this. Any help would be appreciated.
Thanx
Topic archived. No new replies allowed.