Error: Ambiguous overload resolution (1000002,2)

Which version of ROOT are you using? and which compiler/OS?
(you could also try this syntax: dir+obs.c_str())