The folder exist, path is correct and i've given all the permisions to both codeblocks and all the files. I've read the FAQ: Q: My build fails in the compile/link/run step with a Permission denied error?, followed all the instructions there and still the same problem. Rebooted PC, given permissions to the output file and the rest of them... Another friend of mine watched the same tutorial and it works for him. Sorry for bothering you guys but this problem is driving me crazy. Thanks again for your time.
mingw32-g++.exe
-LC:\opencv\build\x86\mingw\lib
-LC:\opencv\build\x86\mingw\lib
-o bin\Debug\test_opencv.exe obj\Debug\main.o
C:\opencv\build\x86\mingw\lib