Here is the step I followed to set code::blocks-10.04 global compiler setting for OpenCV, in Windows 7 64 bit.
Open code::blocks go to Setting->Compiler and debugger, a popup window will open.
Now select Search directories tab, and below select Compiler tab, now OpenCV include path, generally C:\opencv_path\build\include
Click on Linker tab next to Compiler tab add OpenCV bin directory, like C:\opencv_path\build\x86\mingw\bin, here I used 32 bit binaries.
Now open Linker settings tab and below Link libraries add OpenCV libraries, C:\opencv_path\build\x86\mingw\bin
Note that the above steps are global compiler setting for code:blocks and if you want to configure for a single project, just right click on the project name, select Build option and follow above steps.
And if you are using pre-built libraries there might be some issue with mingw, for me pre-built libraries works fine with Windows7 64-bit (32-bit binaries) but not on Windows 7 32-bit.
Any way just follow above and see it's working, if no you may have to build your own libraries for mingw from source.
What OS are you using?
I am using windows 8.
Hey i need also i have windows 8.1
Regards Mayolo
And i get the follow error:
||=== Build: Debug in ejemplosdd (compiler: GNU GCC Compiler) ===| obj\Debug\main.o||In function
ZN2cv3MatC1ERKS0_':| C:\opencv\build\include\opencv2\core\mat.hpp|125|undefined reference to
cv::Mat::copySize(cv::Mat const&)'| obj\Debug\main.o||In functionZN2cv3MatD2Ev':| C:\opencv\build\include\opencv2\core\mat.hpp|278|undefined reference to
cv::fastFree(void)'| obj\Debug\main.o||In functionZN2cv3Mat7releaseEv':| C:\opencv\build\include\opencv2\core\mat.hpp|367|undefined reference to
cv::Mat::deallocate()'| obj\Debug\main.o||In functionZN2cv3MatD1Ev':| C:\opencv\build\include\opencv2\core\mat.hpp|278|undefined reference to
cv::fastFree(void)'| obj\Debug\main.o||In function `ZN2cv3Mat7releaseEv':| C:\opencv\build\include\opencv2\core\mat.hIm using the follow example:
http://docs.opencv.org/_downloads/discrete_fourier_transform.cpp
please i will be happy if anyone can help me to configure opencv with code blocks 13.12 for mac OS X lion . thank you