Hi..
I am having a problem with a struct datatype. Even after including the header file, my program keeps giving me the following parse messages for each of the functions. The following are the errors for the function create.
prototype in the lp.h file is
struct {
int x;
int y;
}lp;
lp create(int, int);
Errors:::::
lp.h:9: parse error before `create'
lp.h:9: warning: data definition has no type or storage class
lp.h:10: warning: parameter names (without types) in function declaration
lp.h:11: warning: parameter names (without types) in function declaration
Am I making a mistake in the declaration of lp??
Any hints/leads would be appreciated.
Thanks.
Aimal