SW500010 Microchip Technology, SW500010 Datasheet - Page 342

HI-TECH C PRO FOR PIC10/12/16

SW500010

Manufacturer Part Number
SW500010
Description
HI-TECH C PRO FOR PIC10/12/16
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC10/12/16r
Datasheets

Specifications of SW500010

Supported Families
PIC10, PIC12, PIC16
Core Architecture
PIC
Software Edition
Professional
Kit Contents
Software And Docs
Mcu Supported Families
PIC10/12/16
Tool Type
Compiler
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
PIC10, PIC12, PIC14, PIC16, PIC16E
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
019P
778-1006
778-1006
(108) #if[n][def] without an argument
The preprocessor directives #if, #ifdef and #ifndef must have an argument. The argument
to #if should be an expression, while the argument to #ifdef or #ifndef should be a single
name, e.g.:
(109) #include syntax error
The syntax of the filename argument to #include is invalid. The argument to #include must
be a valid file name, either enclosed in double quotes "" or angle brackets < >. Spaces should not
be included, and the closing quote or bracket must be present. There should be nothing else on the
line other than comments, e.g.:
(110) too many file arguments; usage: cpp [input [output]]
CPP should be invoked with at most two file arguments. Contact HI-TECH Support if the prepro-
cessor is being executed by a compiler driver.
(111) redefining preprocessor macro "*"
The macro specified is being redefined, to something different to the original definition. If you want
to deliberately redefine a macro, use #undef first to remove the original definition, e.g.:
(112) #define syntax error
A macro definition has a syntax error. This could be due to a macro or formal parameter name that
does not start with a letter or a missing closing parenthesis , ), e.g.:
342
#if
#else
#endif
#include stdio.h
#define ONE 1
/ * elsewhere: * /
/ * Is this correct? It will overwrite the first definition. * /
#define ONE one
#define FOO(a, 2b)
output = 10;
output = 20;
/ * oops -- no argument to check * /
/ * oops -- should be: #include <stdio.h> * /
bar(a, 2b)
/ * 2b is not to be! * /
Error and Warning Messages
(Preprocessor)
(Preprocessor)
(Preprocessor)
(Preprocessor)
(Preprocessor)

Related parts for SW500010