eepty
Full Member level 2
I am using the MAPLAB IDE with the MCC18 compiler, the microcontroller is PIC18F.
The compiler give me a syntax error at line 27 in the .h file when I compile the software, my code is:
myADC.h:
myADC.c:
Please help, I used similar structure with Hi-tech C compiler for PIC16 and no problem found.
The compiler give me a syntax error at line 27 in the .h file when I compile the software, my code is:
myADC.h:
Code:
#ifndef __myADC_H
#define __myADC_H
extern unsigned int room_ADval; //line 27
#endif
myADC.c:
Code:
#include <p18cxxx.h>
#include "main.h"
#include "myADC.h"
...
unsigned int room_ADval;
...
Please help, I used similar structure with Hi-tech C compiler for PIC16 and no problem found.