Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Has anyone run into this problem? (http://www.chiefdelphi.com/forums/showthread.php?t=38778)

ImmortalAres 29-06-2005 13:34

Has anyone run into this problem?
 
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

Re: Has anyone run into this problem?
 
Did you include the header? IE:
Code:

#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

Re: Has anyone run into this problem?
 
did you add the headerFile to the project too?

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

~Stephanie
Team 1351


All times are GMT -5. The time now is 20:16.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi