Log in

View Full Version : Has anyone run into this problem?


ImmortalAres
29-06-2005, 13:34
Has anyone run into the following problem while using MP Lab?

i'm coding for the pic18f452 and i've got the header file from the c18 compiler for that pic included but for some reason when i reference PIR1bits (a register clearly defined in the 452 header file) it starts yelling about how it can't find a definition for it. I find this very baffling. Any advice?

Thanks

Ryan M.
30-06-2005, 06:24
Did you include the header? IE:
#include <headerFile.h>

What are you doing directly referencing those bit structures? There's nothing technially wrong with it, but I'd generally discourage myself from doing it... :)

RbtGal1351
30-06-2005, 19:09
did you add the headerFile to the project too?

MPLab -> Project -> Add files to project -> [Select "HeaderFile.h" and "HeaderFile.c"]

~Stephanie
Team 1351