Thread: Compiler Error
View Single Post
  #3   Spotlight this post!  
Unread 04-02-2008, 12:33
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Compiler Error

The other possibility is that you've copied your code to another directory. Until you do a "Clean" (or a "Build"), something in the MPLAB project information is still pointing to the original files, and it picks up some of the same data twice.

The easiest way to fix this requires a single keystroke. Instead of just pressing F10 to compile, use Control-F10 to do a full build of the project. That will clear up anything still hanging on from the previous directory. Once that's done, F10 alone will be fine -- until the next time you copy your code to another directory.