Seems not to find the implementation?

I try to use OpenCV 4.5.4 on CodeBlocks under Linux Mint.
The code is as follows:

int main(int argc, char *argv[])
{
Mat img = imread(“arnold_schwarzenegger.jpg”);
if(img.empty())
return -1;
namedWindow(“arnold_schwarzenegger”, WINDOW_AUTOSIZE );
imshow(“arnold_schwarzenegger”, img);
waitKey(0);
return 0;
}

It compiles allright but produces nothing. In Release it simply ends without any output, while in Debug it produces the following message:

In __cxa_throw () (/lib/x86_64-linux-gnu/libstdc++.so.6)
#5 0x00005555555553d4 in main (argc=1, argv=0x7fffffffe668) at /home/mikhail/CodeBlocksProjects/TryOpenCVALinux/main.cpp:15
/home/mikhail/CodeBlocksProjects/TryOpenCVALinux/main.cpp:15:372:beg:0x5555555553d4
15 namedWindow(“arnold_schwarzenegger”, WINDOW_AUTOSIZE );
At /home/mikhail/CodeBlocksProjects/TryOpenCVALinux/main.cpp:15

And it’s like this with any highgui function I try. It is strange, as libopencv_highgui.so.4.5.4 is located exactly in the same directory as libopencv_imgcodecs.so.4.5.4 which works allright.
Ant thoughts?
Thank you.

related: