I have compiled a cpp program, but now I cannot run it. The error message I get says command not found
.
I compiled it by running this command:
gcc `pkg-config --cflags opencv` OpenCV_ViolaJones.cpp -o OpenCV_ViolaJones `pkg-config --libs opencv`
It's compiled successfully. However, when I run it:
./OpenCV_ViolaJones
It shows me "Command not found". I am pretty sure that I am in the same directory and using the correct name.
Could you explain this to me, please? Thank you very much!
chmod +x
left them unchanged. The answers there cover this.