Pic18c452

Status
Not open for further replies.

fusian

New Member
i tried to compile the code 18motor.c using MPLABC18 but got the error message shown below...

181:Warning [2074] location PRODL specified in the interrupt save list is redundant
182:Warning [2074] location PRODH specified in the interrupt save list is redundant
468:Error [1105] symbol 'AARGB1' has not been defined
469:Error [1105] symbol 'AARGB0' has not been defined
477:Error [1105] symbol 'AARGB1' has not been defined
478:Error [1105] symbol 'AARGB0' has not been defined
485:Error [1105] symbol 'AARGB1' has not been defined
486:Error [1105] symbol 'AARGB0' has not been defined

shall i just ignore the warning message?

and what should i defined the AARGB0 & AARGB1 as?

i want to learn more about PIC programming in C, where can i find good tutorial? as all my previous projects are done in asm...

thanks!
 

Attachments

  • 18motor.c
    29.6 KB · Views: 274
The compiled program will not link if there is errors. It might link if there are warnings only.

The errors indicate the Compiler don't know about AARGB0 & AARGB1. It is possible that your "18motor.c" example is taken from the pre V3.02 Compiler time where compiler knows about these variables because they are reserved.

You can try prefixing the symbol name with two underscores to see if the errors went away.

See the following quote from the C18 change log.

 
thanks!

the error message is clear now!

but now got another

Error - could not find file 'c018i.o'.
Errors : 1

i can find the file 'c018i.o' in directory c:/mcc18/lib , why still got this error?
 
In Microchip MPLAB, clicks

Project->Set Language Tool Locations->Microchip C18 Tool Suite->Default Search path & Directory->Library Search Path,$(LIBDIR)

Browse to or simply enter C:\MCC18\lib into the location text box beneath.
 
finally the file can be compiled!
only after i closed and recreated the project again...

thanks!!
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…