Can we use structure of structure in opencl?

Hello everyone !! I’m using structure as follows.
struct domain_data
int *no_h_domains,
struct domain_pixels
int dom_x, dom_y;
double sum,sum2;
int sym;
} ***pixel;
} domain;

But when I try

domain.pixel= (struct domain_pixels **) malloc(isizeof(struct domain_pixels **));

then it gives following errors.

error C2440: ‘=’ : cannot convert from ‘domain_pixels ***’ to ‘domain_data::domain_pixels ***’


a value of type “domain_pixels ***” cannot be assigned to an entity of type “domain_data::domain_pixels ***”

But the same code is executed perfectly fine in win32 application.

Can anyone tell me, whether I can do this in opencl? if yes then how? Plz reply ASAP.