Dividing canvas -> subcanvas name is not declared

This is my (simplified) code:

TCanvas *c=new TCanvas("c", " "); 
c->Divide(1,2);
c_1->SetLogy();

When compiling this, I get:

...........././makehistogra.C:192: error: ‘c_1’ was not declared in this scope

Am I not doing exactly the same as described in root.cern.ch/root/roottalk/roottalk99/1829.html ?

Thanks

TPad *c_1 = ((TPad*)(c->GetPad(1))); TPad *c_2 = ((TPad*)(c->GetPad(2)));
See also: http://root.cern.ch/root/html/TPad.html#TPad:cd

Thanks for the help!