[EDITED][PROBLEM SOLVED]

Discussion about projects that used PIC Microcontroller, Hardware Interface, Programming Algorithm and etc......

[EDITED][PROBLEM SOLVED]

Postby FakeSheep » Sat Jul 16, 2011 11:27 pm

It mention that include file got error, but i dunno what is it means and how to fix it,
Can anybody tell me what is the problem and help me to fix it??
Attachments
build error.png
FakeSheep
Novice
 
Posts: 24
Joined: Sun Jul 10, 2011 4:13 pm

Re: [HELP!!!]BUILD ERROR

Postby shahrul » Sun Jul 17, 2011 12:49 am

Maybe this is use C18 compiler, you use Hi-Tech compiler.
User avatar
shahrul
Professional
 
Posts: 812
Joined: Sat May 16, 2009 9:54 pm
Location: Selangor

Re: [HELP!!!]BUILD ERROR

Postby FakeSheep » Sun Jul 17, 2011 11:23 am

my active toolsuite is HI-TECH universal toolsuite
and i'm using HI-TECH ANSI C COMPILER
it still doesn't work....how come?
FakeSheep
Novice
 
Posts: 24
Joined: Sun Jul 10, 2011 4:13 pm

Re: [HELP!!!]BUILD ERROR

Postby robosang » Sun Jul 17, 2011 12:20 pm

I think you need to check the code you trying to compile. If you are compiling code for PIC18, you should use C Compiler for 18F. HI-TECH have several type of compiler, and most of the projects by Cytron (assuming you are referring to their projects) is using HI-TECH for Mid-Range PIC, which support PIC10/12/16. If you are compiling code for PIC16F, it should work accordingly. If you are compiling code for PIC18, it cannot work!

And there are more to know about compiler :lol: So what PIC are you plan to compile the code for?
robosang
Expert
 
Posts: 1239
Joined: Wed Jun 10, 2009 5:37 pm

Re: [HELP!!!]BUILD ERROR

Postby FakeSheep » Sun Jul 17, 2011 2:12 pm

this is my hi-tech c compiler location
C:\Program Files\HI-TECH Software\PICC-18\PRO\9.63\bin\picc18.exe
i think it is for pic18f series?
FakeSheep
Novice
 
Posts: 24
Joined: Sun Jul 10, 2011 4:13 pm

Re: [HELP!!!]BUILD ERROR

Postby shahrul » Sun Jul 17, 2011 3:03 pm

The sample code from Cytron for PIC18 use compiler C18. So, if you want compile that, must use C18.

In Hi-Tech PIC18 no file p18f4550.h, but use pic18.h. For Hi-Tech PIC18 see this example.
User avatar
shahrul
Professional
 
Posts: 812
Joined: Sat May 16, 2009 9:54 pm
Location: Selangor

Re: [HELP!!!]BUILD ERROR

Postby Brian Griffin » Sun Jul 17, 2011 7:26 pm

FakeSheep WROTE:It mention that include file got error, but i dunno what is it means and how to fix it,
Can anybody tell me what is the problem and help me to fix it??


That example is for MPLAB C18.

What you are compiling now with it is a Hi-Tech C compiler. If you need to compile that program, you can download the MPLAB C18 from the Microchip's official website.
PIC - UIC00B from Cytron (replacement for my broken PICKit 2), Pickit 3, MikroC for PIC
dsPIC - MikroC for dsPIC, mikromedia board (dsPIC33)
AVR - AVR Dragon
Parallax - Prop tool
User avatar
Brian Griffin
Enthusiast
 
Posts: 403
Joined: Mon Jan 17, 2011 9:36 am

Re: [HELP!!!]BUILD ERROR

Postby ober » Mon Jul 18, 2011 9:14 am

Yes, the USB Bootloader for SK40C is being compiled under MPLAB C18 C Compiler.
Ober Choo
Cytron Technologies Sdn Bhd
www.cytron.com.my
User avatar
ober
Moderator
 
Posts: 1486
Joined: Wed Apr 15, 2009 1:03 pm

Re: [HELP!!!]BUILD ERROR

Postby FakeSheep » Mon Jul 18, 2011 12:02 pm

yaya~thank you for all helps
the problem is solved dy~ finally now i knw how to use it= =
FakeSheep
Novice
 
Posts: 24
Joined: Sun Jul 10, 2011 4:13 pm

Re: [EDITED][PROBLEM SOLVED]

Postby ober » Mon Jul 18, 2011 9:10 pm

Good to hear that!
Ober Choo
Cytron Technologies Sdn Bhd
www.cytron.com.my
User avatar
ober
Moderator
 
Posts: 1486
Joined: Wed Apr 15, 2009 1:03 pm


Return to PIC Microcontroller

Who is online

Users browsing this forum: No registered users and 4 guests

cron