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.

Error Messages<br />

In the meantime if the error was on a particular line, look for another way to perform the same<br />

operation. The error was probably caused by the syntax of the identified statement. If the error<br />

was the last line of the code, the problem was in linking. Look at the call tree for something out<br />

of the ordinary.<br />

Interrupt handler uses too much stack<br />

Too many stack locations are being used by an interrupt handler.<br />

Invalid conversion from LONG INT to INT<br />

In this case, a LONG INT cannot be converted to an INT. You can type cast the LONG INT to<br />

perform a truncation. For example:<br />

I = INT(LI);<br />

Invalid interrupt directive<br />

Invalid parameters to built in function<br />

Built-in shift and rotate functions (such as SHIFT_LEFT) require an expression that evaluates to<br />

a constant to specify the number of bytes.<br />

Invalid Pre-Processor directive<br />

The compiler does not know the preprocessor directive. This is the identifier in one of the<br />

following two places:<br />

#xxxxx<br />

#PRAGMA xxxxx<br />

Invalid ORG range<br />

The end address must be greater than or equal to the start address. The range may not overlap<br />

another range. The range may not include locations 0-3. If only one address is specified it<br />

must match the start address of a previous #org.<br />

Invalid overload function<br />

Invalid type conversion<br />

Label not permitted here<br />

Library in USE not found<br />

The identifier after the USE is not one of the pre-defined libraries for the compiler. Check the<br />

spelling.<br />

Linker Error: "%s" already defined in "%s"<br />

Linker Error: ("%s'<br />

Linker Error: Canont allocate memory for the section "%s" in the module "%s", because it<br />

overlaps with other sections.<br />

Linker Error: Cannot find unique match for symbol "%s"<br />

Linker Error: Cannot open file "%s"<br />

Linker Error: COFF file "%s" is corrupt; recompile module.<br />

Linker Error: Not enough memory in the target to reallocate the section "%s" in the module<br />

"%s".<br />

Linker Error: Section "%s" is found in the modules "%s" and "%s" with different section types.<br />

Linker Error: Unknown error, contact <strong>CCS</strong> support.<br />

Linker Error: Unresolved external symbol "%s" inside the module "%s".<br />

Linker option no compatible with prior options.<br />

Linker Warning: Section "%s" in module "%s" is declared as shared but there is no shared<br />

memory in the target chip. The shared flag is ignored.<br />

Linker option not compatible with prior options<br />

Conflicting linker options are specified. For example using both the EXCEPT= and ONLY=<br />

options in the same directive is not legal.<br />

LVALUE required<br />

This error will occur when a constant is used where a variable should be. For example 4=5; will<br />

give this error.<br />

Macro identifier requires parameters<br />

343

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

Saved successfully!

Ooh no, something went wrong!