11.07.2015 Views

PicC 9.50 dsPIC Manual.pdf

PicC 9.50 dsPIC Manual.pdf

PicC 9.50 dsPIC Manual.pdf

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Error and Warning Messages(337) line does not have a newline on the end (Parser)The last line in the file is missing the newline (operating system dependent character) from the end.Some editors will create such files, which can cause problems for include files. The ANSI C standardrequires all source files to consist of complete lines only.(338) can’t create * file "*" (Code Generator, Assembler, Linker, Optimiser)The application tried to create the named file, but it could not be created. Check that all file pathnamesare correct.(338) can’t create * file "*" (Linker, Code Generator Driver)The compiler was unable to create a temporary file. Check the DOS Environment variable TEMP(and TMP) and verify it points to a directory that exists, and that there is space available on thatdrive. For example, AUTOEXEC.BAT should have something like:SET TEMP=C:\TEMPwhere the directory C:\TEMP exists.(339) initializer in "extern" declaration (Parser)A declaration containing the keyword extern has an initialiser. This overrides the extern storageclass, since to initialise an object it is necessary to define (i.e. allocate storage for ) it, e.g.:extern int other = 99;/* if it’s extern and not allocated storage,how can it be initialized? */(343) implicit return at end of non-void function (Parser)A function which has been declared to return a value has an execution path that will allow it to reachthe end of the function body, thus returning without a value. Either insert a return statement with avalue, or if the function is not to return a value, declare it void, e.g.:int mydiv(double a, int b){if(b != 0)return a/b; /* what about when b is 0? */} /* warning flagged here */268

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

Saved successfully!

Ooh no, something went wrong!