i see. then, could you please leave a comment there explaining why boost should be included at the beginning , because this is an exceptional case. I guess there is no problem to move other includes (fstream, logog) after #include "BoostXmlGmlInterface.h"