1 | initial version |
You can check this out: link
It explains and mentions every details you might need to get OpenCV working with Eclipse CDT. It has steps for linking your code to the OpenCV libraries without which your OpenCV dependent code will throw multiple errors.To further simplify the things for users like us, it also includes screenshots of various stages during setup process. A working example to make sure setup was successful is included at the end.
Follow this tutorial till the end and you shall be able to successfully run OpenCV code. Hope this helps!!