Errors with my Program
Posted: Sun Jul 05, 2015 10:59 am
My first post on this site - recommended by Ric..
Hi there,
My project is composed of a number of files and I have been experiencing problems with header files (pretty much fixed) and errors with global variables. There are four variables declared in the header file PIC16F1789_System_Manager.h that error. The error for each of the four variables is:
PIC16F1789_System_Manager.h:62: warning: (374) missing basic type; int assumed
PIC16F1789_System_Manager.h:62: error: (372) "," expected
PIC16F1789_System_Manager.h:64: warning: (374) missing basic type; int assumed
PIC16F1789_System_Manager.h:64: error: (372) "," expected
PIC16F1789_System_Manager.h:66: warning: (374) missing basic type; int assumed
PIC16F1789_System_Manager.h:66: error: (372) "," expected
PIC16F1789_System_Manager.h:68: warning: (374) missing basic type; int assumed
PIC16F1789_System_Manager.h:68: error: (372) "," expected
PIC16F1789_Interrupt_Manager.c:63: warning: (374) missing basic type; int assumed
PIC16F1789_Interrupt_Manager.c:63: error: (372) "," expected
I have the keyword "extern" infront of them as they are used two of the source files. They have been defined in the source file main.c
Kind Regards
Simon
Hi there,
My project is composed of a number of files and I have been experiencing problems with header files (pretty much fixed) and errors with global variables. There are four variables declared in the header file PIC16F1789_System_Manager.h that error. The error for each of the four variables is:
PIC16F1789_System_Manager.h:62: warning: (374) missing basic type; int assumed
PIC16F1789_System_Manager.h:62: error: (372) "," expected
PIC16F1789_System_Manager.h:64: warning: (374) missing basic type; int assumed
PIC16F1789_System_Manager.h:64: error: (372) "," expected
PIC16F1789_System_Manager.h:66: warning: (374) missing basic type; int assumed
PIC16F1789_System_Manager.h:66: error: (372) "," expected
PIC16F1789_System_Manager.h:68: warning: (374) missing basic type; int assumed
PIC16F1789_System_Manager.h:68: error: (372) "," expected
PIC16F1789_Interrupt_Manager.c:63: warning: (374) missing basic type; int assumed
PIC16F1789_Interrupt_Manager.c:63: error: (372) "," expected
I have the keyword "extern" infront of them as they are used two of the source files. They have been defined in the source file main.c
Kind Regards
Simon