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
Code:
LCD_Chr_CP()
and I changed it to
Code:
LCD_Chr_Cp()
The function call
Code:
DHT11_init()
was replaced by
Code:
DHT11_Init()
and it Compiled.
I am attaching the Compiling project for reference.
Attachments
DHT11 Based Temperature and Humidity Monitor Strange Error.rar
340.2 KB · Views: 42
strange error.png
82.5 KB · Views: 102
DHT11 Based Temperature and Humidity Monitor For Testing.rar
I see your program uses DHT11_init
and the error refers to _ DHT11_init
That first under score may be the problem.
_LCD_Chr_CP may be a missing under score too.