opencv with codeblocks installation

I am trying to get the following combination working: openframeworks=71, codeblocks+mingw=10.05, opencv=2.4.2, and on win7

In the OF installation, I found some files addons/ofxOpenCv/…/*231.a - does this mean that it supports opencv-2.3.1 only ?

Also, is there any procedure for integrating the two - e.g. any environment variables to set before I run the example in examples/addons/opencvExample?

Has anybody tried this combination of softwares? If so, can you guide me - where to find the packages, how to install and run?

If needed, I can move to a previous version of opencv, just to get the combination working.