S
sharat
Hi all.
I am writing a a code in c++ . i have defined a global structure in a
header file(user define header file) say headerfile1.h and declared a
class in file2.h which is having some public funtion which returns the
struct variable and definition of the fun in in file1.cpp .
I am getting the error in compilation that "struct_var' has
incomplete type and not allowed and return type is incoplete. If i am
trying to return the structure pointer instead of variable it is
compiling without error but returning structure variable is creating
problem.
Kindly help to solve the problem.
Thanx in advance
I am writing a a code in c++ . i have defined a global structure in a
header file(user define header file) say headerfile1.h and declared a
class in file2.h which is having some public funtion which returns the
struct variable and definition of the fun in in file1.cpp .
I am getting the error in compilation that "struct_var' has
incomplete type and not allowed and return type is incoplete. If i am
trying to return the structure pointer instead of variable it is
compiling without error but returning structure variable is creating
problem.
Kindly help to solve the problem.
Thanx in advance