I have a library called AQ250L.H; this library includes the following definitions
#ifndef FALSE
#define FALSE (0)
#endif
#ifndef TRUE
#define TRUE (1)
#endif
//#ifndef OFF
#define OFF (0)
//#endif
//#ifndef ON
#define ON (1)
//#endif
I have also included the full address of the header file into the LIB.DIR index file. However when I compile the project (main source code is Test1.c), I get the following errors:
line 58 : ERROR TEST1.C : OFF is out of scope/ not declared
line 85 : ERROR TEST1.C : OFF is out of scope/ not declared
line 85 : ERROR TEST1.C : ON is out of scope/ not declared
line 85 : ERROR TEST1.C : OFF is out of scope/ not declared
It’s like it finds the files, but it does not detects the declarations. What could be causing this error. Is there something else I should setup before compilation?
Note: I am using Dynamic C V9.62