View Single Post
  #1   Spotlight this post!  
Unread 31-01-2006, 17:34
Joel J's Avatar
Joel J Joel J is offline
do you..
no team
 
Join Date: May 2001
Rookie Year: 2000
Location: San Jose, CA
Posts: 1,445
Joel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond repute
C18 v2.4 -- Syntax error where there is no syntax error

This is really weird! When I try to compile some code, I get a syntax error where there is no error at all! Like, in the header file for serial_ports.h (Kevin's code), the compiler dies here,

// if needed, declare functions and global variables that
// are specific to serial port one receiver functionality
#ifdef ENABLE_SERIAL_PORT_ONE_RX
--> void Init_Serial_Port_One(void);

So I start removing files (carefully), and at each compile it craps out at some (seemingly) random point in a header file.

Anyone experienced this?

Anyone have an idea as to what is wrong here?

At first I thought I had to switch to the large code model (>64KB), but that didn't help anything.
__________________
Joel Johnson

Division By Zero (229) Alumni, 2003-2007
RAGE (173) Alumni, 1999-2003