pic.programmer
Advanced Member level 3
Hi-Tech PICC Project Not Compiling [Strange Error]
I have attached the project. Code is correct because I have ported mikroC PRO PIC Code to Hi-Tech PICC. I am using Lite version of the Hi-Tech PICC Compiler. I am using the last version of the MPLAB and Compiler.
Please see the attached Screenshot. I am getting this error and Code doesn't Compile. I tried all possible things.
If the whole DHT11 related code is deleted and Compiled then it Compiles fine and LCD code works on hardware but if DHT11 Code is inserted and Compiled then it doesn't Compile.
- - - Updated - - -
Edit: It Compiles fine now.
What were fixed ?
The DHT11 function prototypes were missing void.
In CustomChar() function definition it was
and I changed it to
The function call
was replaced by
and it Compiled.
I am attaching the Compiling project for reference.
I have attached the project. Code is correct because I have ported mikroC PRO PIC Code to Hi-Tech PICC. I am using Lite version of the Hi-Tech PICC Compiler. I am using the last version of the MPLAB and Compiler.
Please see the attached Screenshot. I am getting this error and Code doesn't Compile. I tried all possible things.
If the whole DHT11 related code is deleted and Compiled then it Compiles fine and LCD code works on hardware but if DHT11 Code is inserted and Compiled then it doesn't Compile.
- - - Updated - - -
Edit: It Compiles fine now.
What were fixed ?
The DHT11 function prototypes were missing void.
In CustomChar() function definition it was
Code:
LCD_Chr_CP()
and I changed it to
Code:
LCD_Chr_Cp()
The function call
Code:
DHT11_init()
Code:
DHT11_Init()
and it Compiled.
I am attaching the Compiling project for reference.