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.

[SOLVED] Hi-Tech PICC Project Not Compiling [Strange Error]

Status
Not open for further replies.

pic.programmer

Advanced Member level 3
Joined
Aug 19, 2015
Messages
773
Helped
141
Reputation
284
Reaction score
140
Trophy points
43
Activity points
7,531
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: 39
  • strange error.png
    strange error.png
    82.5 KB · Views: 100
  • DHT11 Based Temperature and Humidity Monitor For Testing.rar
    440.5 KB · Views: 57

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.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top