There is no compiler problem or any special thing to consider for this.
Usually this is a very basic error:
- typing error in variable name
- typing error in header file name
- editing in a file which does not belong to the active project (either for source or header file)