compile c++ linux

C++
g++ foo.cpp -o foo //plus other extension like the opencv to compile correctly
Source

Also in C++: