compile cpp code example
Example 1: compile c++ linux
g++ foo.cpp -o foo //plus other extension like the opencv to compile correctly
Example 2: compile c++ program
$ g++ -o <name-you-want-to-give> source.cpp
$ ./myprogram
Example 3: compile in c++
$ g++ -o <name-you-want-to-give> source.cpp