Introduction - If you have any usage issues, please Google them yourself
OpenCV and C++
A short howto for OpenCV and DevCPP on Windows
DevCPP is a free development environment based upon GCC (creates makefiles and all these)
which quite likely should make it easy to adapt to Linux (and possibly OS X).