I read at qtcentre (
http://www.qtcentre.org/archive/index.php/t-7223.html) that this problem was due to duplicate symbol definitions in the preprocessor and then it was related to the order of inclusion of header files. I didn't post anything here because this dubious insight is the result of a couple of minutes of googling and hardly any solution, but maybe Massimiliano can make something of that discussion...