Ich will mir für den C18 Compiler eine GLCD Bibliothek erstellen und
habe diese 2 Dateien erstellt. Die Funktionen funktionieren sicher, ich
habe sie in der Main getestet. Wenn ich das Programm aber compiliere
kommt mir die Fehlermeldung:
Error - could not find definition of symbol 'glcd_text' in file
'./main.o'.
main:
1 | #pragma config FOSC = HSHP, PLLCFG = OFF //FOSC = 20MHz
|
2 | #pragma config PWRTEN = OFF, BOREN=SBORDIS, BORV = 250
|
3 | #pragma config WDTEN = OFF
|
4 |
|
5 | #include "p18f45k22.h"
|
6 | #include "delays.h"
|
7 |
|
8 | #include "glcd.h"
|
9 |
|
10 | void main(void)
|
11 | {
|
12 | unsigned char text[]="GLCD Touch Test";
|
13 |
|
14 |
|
15 | LATA=0x00;
|
16 | TRISA=0x0F;
|
17 | ANSELA=0x0F;
|
18 |
|
19 | LATB=0x00;
|
20 | TRISB=0x00;
|
21 | ANSELB=0x00;
|
22 |
|
23 | LATC=0x01;
|
24 | TRISC=0x00;
|
25 | ANSELC=0x00;
|
26 |
|
27 | LATD=0x00;
|
28 | TRISD=0x00;
|
29 | ANSELD=0x00;
|
30 |
|
31 | glcd_init();
|
32 | glcd_text(6,0,0,text);
|
33 |
|
34 | while(1);
|
35 |
|
36 | }
|
Der letzte Teil in der glcd.c Datei ist NICHT auskommentiert, habe die
Flasche datei hochgeladen, der Rest stimmt.