Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You need to provide more information. But let me ask a question... How is your include? If they are like it:

#include <cv.h>
#include <highgui.h>

You need to change the includes to

#include <opencv2/highgui/highgui.hpp>
#include <opencv2/core/core.hpp>

And other includes, if you need to use specific functions of opencv. And use the namespace cv. Does it solves your problem?

Also take a look in the name of libraries and include in CodeBlocks. They also changed. See the changelog of version 2.2 to see which libraries to include, for example opencv_core, opencv_highgui, etc.