Creating an application: root-config: TreeViewer missing?

Yes, not ideal. There are many missing libraries in root-config.

My suggestion is to just include the libraries you need for your program.

For example, if you need the class TTreeViewer, you would go to ROOT: TTreeViewer Class Reference

scroll all the way down, and there it tells you it belongs to library -lTreeViewer.