Jump to content
Sign in to follow this  
NDHolmes

Preprocessor bug

Recommended Posts

I was just converting over to the Microchip-derived header files, and think I found an issue with what I assume to be the preprocessor.  I put in

 

Even with the #define list below commented out, I still get:

line XX: Illegal redefinition of symbol: YYYY

where XX and YYYY are every #define line below in the sample code.

 

 

#include <p16f874.h>

/* #define T0IE 5
#define T0IF 2
#define TRMT 1
#define TXIF 4
#define TXIE 4
#define RXIE 5
#define RXIF 5
#define SPEN 7
#define CREN 4
#define INTE 4
#define INTF 1
#define RD   0 */

void main(void)
{
while(1);
}

Share this post


Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...