Unresolved while linking [cling interface function]!

I guess you compiled ROOT 6 with gcc 5.x.
If this is the case, see the beginning of: ROOT v6-06-04 on Ubuntu 16.04