David812
6th June 2011, 12:12
Dear All,
I've a problem using a global struct.
Is possible to use it in Qt?
I've tried to declare it in a global.h file a struct
such as :
extern struct _Stxy1000{
double dY[];
double dX[];
} then i've put in a global.cpp file
struct _Stxy1000{
double dY[1000];
double dX[1000];
}_stxy1000;
when i try i acces to the struct member the compiler rise up some errors such as, the struct is not declared, even if i include the global.h in a proper way.
Thanks in advance
I've a problem using a global struct.
Is possible to use it in Qt?
I've tried to declare it in a global.h file a struct
such as :
extern struct _Stxy1000{
double dY[];
double dX[];
} then i've put in a global.cpp file
struct _Stxy1000{
double dY[1000];
double dX[1000];
}_stxy1000;
when i try i acces to the struct member the compiler rise up some errors such as, the struct is not declared, even if i include the global.h in a proper way.
Thanks in advance