I am adding new .c file to existing project consisting of few .c file and few .h files. The existing project builds properly.( BC++ 4.0)
But when I include one of the existing .h file in my new .c file, I get error, "Declaration Syntax error."
I get error on following lines of existing .h file.
extern BOOL k1;
extern BOOL f1;
extern BOOL foo1(char ID, char *p);
extern BOOL foo2(char ID, char *p);
extern BYTE foo3(char ID, char mark);
I strongly feel that the problem is with BOOL and BYTE typedefs.
BOOL has been typdefed in one of the .h file, provided by envirnment file( NOT BC include file) and BYTE has typdefed in another user .h file of same project.
Any help will be highly appreciated.
Thx.