OpenCV C++ : Undefined Reference in Geany build command

I had installed opencv with c++ in my linux mint 20.
I created simple program to check and if I ran command in terminal it could build success with output as shown in the picture.
However I wish to run it on Geany, so I set build command in Geany as follow and it showed that undefined reference…
(Geany build command is shown in the picture)

I’m not sure what I’ve done wrong , please help

Thank in Advance