Mplab header code error regarding undefined symbols

Status
Not open for further replies.

NNX

Newbie level 3
Joined
May 18, 2012
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
USA
Activity points
1,327
Hi! I've been having trouble with getting mplab and the hi-tech c compiler to work for me.
I'm trying to add a custom header file to my code but it keeps getting this error. I have them
included in my file that contains all the other stuff. If I add them using the little window where you
add header and source files it still errors out.
I'm using mplab 8.85 & hi-tech c 9.80 in LITE. Pic18f4620 as well.

Error [500] ; 0. undefined symbols:
_LCD_Move(timer0.obj) _LCD_Init(timer0.obj) _LCD_Write(timer0.obj)

I removed my code for the timer part and just kept my lcd stuff.
That's why you see timer0.obj
Code:
#include <htc.h>
#include <string.h>
#include <lcd_out.h>

void lcd_msg(void)
{
	unsigned char A[20];
	unsigned char i;

	LCD_Move(0,0);
	strcpy(A, "I am Locutus of Borg");
	for (i=0; i<20; i++) LCD_Write(A[i]);
}

void main()
{
	TRISD = 0;
   LCD_Init();
   lcd_msg();
while(1);
}
 

Attachments

  • src.txt
    2.4 KB · Views: 51
  • header.txt
    354 bytes · Views: 45

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…