As you said yourself, your application does compile fine, so you don't have a compile time problem. You have a runtime problem. Changing the compiler configuration will do nothing, because your application is not RUN by the compiler but by your OS, Linux in your case.
Actually, your problem is not a CodeBlocks problem but a Linux problem, so technically offtopic here. If you stop beeing so ignorant you still might get some help here.
There are multiple ways to configure the Linux dynamic library loader. If you install libraries with the package manager this should not be necessary and should just work, so the first question is, how did you actually get OpenCV on your system? Second question is, is it really OpenCV that is missing or might this library itself miss something else? To answer that question, run ldd <your-application-binary-goes-here>
and post the output.
Frankly speaking, I don't like you being so aggressive, but nevertheless, I will answer.
- I believed that CodeBlocks was an IDE, not just a compiler. IDE, as I understand it, not only compiles, but also guides the whole build process, including linking. As far as I see, my problem is that the linker does not find the libraries, although I filled-in in the CodeBlocks interface all the fields I could find that seemed related to linker configuration. If, as you say, the 'Linux dynamic library loader' is not configured after that, I believe it an IDE bug. Or I may be missing something in the IDE interface - that was my question.
- As for the installation, in Mint there is a list of applications that can be installed by the system automatically, I made confidence to this option.
- As for your hypothesis that it could be something wrong in the library itself, I don't think it could be the case. First, the message at run time clearly says that the required file could not be found. I think that kind of message is produced before accessing the file in question. Second, as I have already reported, I tried to explore the problem with model dummy libraries, produced with this very CodeBlocks installation, and it gave exactly the same result.
Anyhow, I see the problem is really complicated, I apologize for bothering the forum with it. Thanks to all who tried to help me and good luck.