I am new to the Raspberry Pi and opencv lib, I have spent some time learning opencv up until I finished my first program written in c++ .
Now I want to compile and execute the same c++ file on the Pi , but I get errors, mostly "undefined references". I know I installed Opencv correctly because I have run some of the sample codes successfully.
My question is. Can I simply copy the code I have written on the Pi and execute it there? Or what else do I need to do before to make that possible?