Nextion multiple class instance

Dear community Members:

I try with the code

#include "Nextion.h"

NexText t0 = NexText(0, 1, "t0");
NexText t1 = NexText(0, 1, "t1");

NexText* pointer[]={
  &t0,
  &t1
};

pointer[0]->setText("123");

But i get the next error

CompText:38: error: expected declaration before '}' token

 }

 ^

Utilizando biblioteca Nextion en carpeta: C:\Users\Eduardo\Documents\Arduino\libraries\Nextion (legacy)
exit status 1
'pointer' does not name a type

Thanks for your kind attention