17.02.2015 Views

CCS C Compiler Manual PCB / PCM / PCH

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Generally this is due to too many characters within the single quotes. For example 'ab' is an<br />

error as is '\nr'. The backslash is permitted provided the result is a single character such as<br />

'\010' or '\n'.<br />

Constant out of the valid range<br />

This will usually occur in inline assembly where a constant must be within a particular range and<br />

it is not. For example BTFSC 3,9 would cause this error since the second operand must be from<br />

0-8.<br />

Data item too big<br />

Define expansion is too large<br />

A fully expanded DEFINE must be less than 255 characters. Check to be sure the DEFINE is<br />

not recursively defined.<br />

Define syntax error<br />

This is usually caused by a missing or misplaced (or) within a define.<br />

Demo period has expired<br />

Please contact <strong>CCS</strong> to purchase a licensed copy.<br />

www.ccsinfo.com/pricing<br />

Different levels of indirection<br />

This is caused by a INLINE function with a reference parameter being called with a parameter<br />

that is not a variable. Usually calling with a constant causes this.<br />

Divide by zero<br />

An attempt was made to divide by zero at compile time using constants.<br />

Duplicate case value<br />

Two cases in a switch statement have the same value.<br />

Duplicate DEFAULT statements<br />

The DEFAULT statement within a SWITCH may only appear once in each SWITCH. This error<br />

indicates a second DEFAULT was encountered.<br />

Duplicate function<br />

A function has already been defined with this name. Remember that the compiler is not case<br />

sensitive unless a #CASE is used.<br />

Duplicate Interrupt Procedure<br />

Only one function may be attached to each interrupt level. For example the #INT_RB may only<br />

appear once in each program.<br />

Element is not a member<br />

A field of a record identified by the compiler is not actually in the record. Check the identifier<br />

spelling.<br />

ELSE with no corresponding IF<br />

<strong>Compiler</strong> found an ELSE statement without a corresponding IF. Make sure the ELSE statement<br />

always match with the previous IF statement.<br />

End of file while within define definition<br />

The end of the source file was encountered while still expanding a define. Check for a missing<br />

).<br />

End of source file reached without closing comment */ symbol<br />

The end of the source file has been reached and a comment (started with /*) is still in effect.<br />

The */ is missing.<br />

type are INT and CHAR.<br />

Expect ;<br />

Expect }<br />

Expect CASE<br />

340

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!