In you environment, does it fix the example if posted before ? i.e.:
void png_double_x_axis_title(){
TCanvas *c1 = new TCanvas("c1","c1",0,0,1000,2000);
c1->DrawFrame(0.,0.,10.,10.);
c1->Print("test1.gif");
c1->Print("test1.png");
c1->Print("test1.pdf");
}