Errors with my Program

Enhanced mid-range devices. PIC12F1xxx and PIC16F1xxx

Errors with my Program

Postby si2030 » 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
Attachments
DUMMY_LOAD_DAC_-VER-3.X.7z
Includes picture
(87.33 KiB) Downloaded 513 times
si2030
 
Posts: 2
Joined: Sun Jul 05, 2015 10:40 am
Location: Bendigo Australia

Re: Errors with my Program

Postby ric » Sun Jul 05, 2015 11:23 am

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/
Latest test project, an LED matrix display made from one reel of addressable LEDs. here
User avatar
ric
Verified identity
 
Posts: 659
Joined: Sat May 24, 2014 2:35 pm
Location: Melbourne, Australia
PIC experience: Professional 5+ years with MCHP products

Re: Errors with my Program

Postby si2030 » Sun Jul 05, 2015 11:37 am

Fantastic... it builds... Thanks Ric much appreciated. Simon
si2030
 
Posts: 2
Joined: Sun Jul 05, 2015 10:40 am
Location: Bendigo Australia


Return to 14-Bit Core (enhanced)

Who is online

Users browsing this forum: No registered users and 4 guests

cron