Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to make Compiler.h file?

Status
Not open for further replies.

keshav98765

Newbie level 4
Newbie level 4
Joined
Oct 19, 2020
Messages
7
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
42
Hi, I am working on SD card interfacing with PIC18F4520 using MPLAB X IDE with XC8 compiler. I want to add compiler.h file to remove some bug. Which is " itoa expected identifier"

I tried created some, but its showing error. Please guide me to make the header file.
Code:
#ifndef __COMPILER_H
#define __COMPILER_H

// Include proper device header file
#if defined(__18FXX) && !defined(_XC8_)   
    // PIC18 processor with Microchip C18 compiler
    #define COMPILER_MPLAB_XC8
    #include <p18F4520.h>
#else
    #error Unknown processor or compiler.  See Compiler.h
#endif

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
 

Hi,

It says "see Compiler.h". Did you do his?
Show us compiler.h.

Klaus
 

Hi,

It says "see Compiler.h". Did you do his?
Show us compiler.h.

Klaus
HI, It is the same compiler.h file, in which i am getting error. I want to understand how will i make compiler.h file of processor xc8.
 

Hi,

Sorry I misread the above text. So "See compiler.h" isn´t the error message you got but it is just a part of your code.

the compiler.h comes with compiler.c and should be a part of your libraries.

Klaus
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top