Example from "OpenCL C++ Bindings Documentation" don't work

Hello, I’m new to OpenCL world…
I’m try to understood the example at OpenCL C++ Bindings: OpenCL C++ Bindings but there is some bug, I think…
The variable output2 is not declared, so i have comment it but I get many many link error.
There is some one can help me?