This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

header file greyed out for build

hi - I'm assuming a block of code is greyed out when a #ifdefine evaluates as false and therefore it indicates that the section code will be skipped during compile - which is fine. my problem is I have a whole header file, with the usual blocking

#ifndef _PLATFORM_H

#define _PLATFORM_H

-

-

#endif

protecting the file. but everything within the block is greyed out and I don't know what it means and what I should do to remove it.

any help would be appreciated.

Jim

  • Hello Jim,

    Make sure that the project compilation does not have a define. Another way to check for compilation inclusion is to add a define in the header file and then call a for delay function with the define as the parameter. If it compiles then the file inclusion is successful.

    Regards
    Amit