How do I use gstreamer in c++

How can I use gstreamer in a c++ program?

I was able to use some of these commands successfully.

But I want to write a c++ program.
I found this tutorial.
But it seems to be in C. Should I just adjust it for c++?

I found gstreamermm which seems to be a c++ wrapper for gstreamer.
Is this the best option?

Would I have to install gstreamermm from here?

There are samples in below links. FYR.