typedef struct note_data NOTE_DATA;and move it above the definition for board_data.
struct this_data
{ SOME_DATA * var;
};
struct some_data
{ int other_var;
};
typedef struct some_data SOME_DATA;
struct this_data
{ SOME_DATA * var;
};
struct some_data
{ int other_var;
};
struct this_data
{ SOME_DATA * var;
};
typedef struct some_data SOME_DATA;
struct some_data
{ int other_var;
};
struct this_data
{ SOME_DATA *var;
};
#include "this.h"
typedef struct some_data SOME_DATA;
struct some_data
{ int another_var;
};
gcc -c -Wall -O -ggdb -Dunix -DOLD_RAND -DNOCRYPT act_comm.c
In file included from merc.h:12,
from act_comm.c:40:
board.h:39: error: expected specifier-qualifier-list before âNOTE_DATAâ
board.h:54: error: expected declaration specifiers or â…â before âNOTE_DATAâ
board.h:55: error: expected â)â before â*â token
board.h:58: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âis_note_toâ
board.h:64: error: expected â)â before â*â token
board.h:65: error: expected â)â before â*â token
board.h:66: error: expected â)â before â*â token
board.h:67: error: expected â)â before â*â token
board.h:68: error: expected â)â before â*â token
board.h:73: warning: data definition has no type or storage class
board.h:73: warning: type defaults to âintâ in declaration of âDECLARE_DO_FUNâ
board.h:73: warning: parameter names (without types) in function declaration
board.h:74: warning: data definition has no type or storage class
board.h:74: warning: type defaults to âintâ in declaration of âDECLARE_DO_FUNâ
board.h:74: warning: parameter names (without types) in function declaration
act_comm.c: In function âdo_quitâ:
act_comm.c:1509: warning: implicit declaration of function âfree_noteâ
make: *** [act_comm.o] Error 1
I have added #include board.h to the merc.h file and am unable to determine why I am getting this error.
I am using Rom2.4b6. Any help would be appreciated.
Thanks in advance.