Jump to content

Meaningless Compiler Messages

Recommended Posts

Compilation of undefined symbols generate meaningless messages.


The fragment of code that follows defines the SPEN bit of register RCSTA for a HW USART. Reusing this code for a new project, the PIC target was changed to PIC16F84, the initial default. So, both symbols (RCSTA and SPEN) become undefined.


Compiler flagged the error BUT with the following message:


BoostC Optimizing C Compiler Version 2.0.1 Beta (for PIC16 architecture)


zztest.c(2): error: missing semicolon


#include <system.h>
volatile bit ser_spen @ RCSTA.SPEN;  //<<== compiler points error here
void main()


Expected messages:

zztest.c(2): error: undefined symbol RCSTA

zztest.c(2): error: undefined symbol SPEN


BoostC Optimizing C Compiler Version 2.0.1 Beta (for PIC16 architecture)

Under Windows-XP Pro

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.

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.

  • Create New...