View Single Post
  #11   Spotlight this post!  
Unread 01-12-2008, 11:41
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: Generic error in MPLAB

Quote:
Originally Posted by domoarigato View Post
Well, Everything is installed. So, I decided that I would try and build some code that is known to be working. However, upon my attempt to build the code, I was prompted with the error message:


[code]C:\Documents and Settings\Administrator.LENOVOGHOST\Desktop\Code\wo rking\main.c:15:Error [1027] unable to locate 'ifi_aliases.h;
#include '
I didn't pay enough attention to this when I first saw it. The initial diagnoses of the extraneous semicolon were correct, so far as they went. However, there's a more fundamental problem here that I just noticed:

Why did someone edit the main.c file in the first place? User code typically doesn't go there; it goes in other files. If you can't understand the error messages immediately, you really shouldn't be messing with the code in that file. It contains a clear warning right at the top: You should not need to modify this file.

I'm also a little worried by your description of a rookie programmer "randomly deleting" a character. C programming should not be done by trial and error. rfrank gave you exactly the answer you needed in order to correct the problem, and Roger confirmed it. Rather than following their advice, however, you instead tried something "randomly" and got a new error -- but one that is also addressed by the original answer. Next time you ask for help, it would probably be more productive for you to pay closer attention to the responses.