Guess what the error could be
undefined reference to `Dialog::addtext()'
Maybe addText()? how does your Dialog class look like?