#IF DEV == "PIC10F200"
#DEFINE M 0
#ELIF DEV == "PIC12F508"
#DEFINE M 1
#ENDIF
gives me.........
*** Error 27 "J:\Electronics\101\Serial\10F200\mcproc.h" Line 5(11,13): Expression must evaluate to a constant
I'm simply trying to create a central header that will encapsulate all
additional device-specific #defines and whatnot that are not included in
the default headers. It seems as if i cannot call getenv("device") more
than once per source file.
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Posted: Thu Sep 11, 2008 12:26 pm
The first line needs parentheses around it. Example:
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum