Page 1 of 1

Errors with my Program

PostPosted: Sun Jul 05, 2015 10:59 am
by si2030
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

Re: Errors with my Program

PostPosted: Sun Jul 05, 2015 11:23 am
by ric
You are including "PIC16F1789_System_Manager.h" into PIC16F1789_Interrupt_Manager.c
It needs stdint.h, so you need to include stdint.h into PIC16F1789_Interrupt_Manager.c
Doing that clears all your compile errors/

Re: Errors with my Program

PostPosted: Sun Jul 05, 2015 11:37 am
by si2030
Fantastic... it builds... Thanks Ric much appreciated. Simon