Hi,
I had a problem with migrating my project from StellarisWare to TivaWare.
After this the compiler throwed error #18 several times in the file "ustdlib.h".
Here is an example error:
compiling ustdlib.c... ..\..\TivaWareM4C\utils/ustdlib.h(55): error: #18: expected a ")" extern int usnprintf(char * restrict s, size_t n, const char * restrict format,
The related source lines are these:
extern int usnprintf(char * restrict s, size_t n, const char * restrict format, ...);
StellarisWare also contains a file "ustdlib.c", which also has a line break. But compiling this causes no error.
Hy help of people in the Keil forum I got a solution:
Enable the "C99 Mode" checkbox in the project settings and the errors are gone.
I re-post it here, because maybe it's useful for others.
The people of the Keil forum also had the idea to add "use strict" to the file "ustdlib.h", but I don't want to modify files inside of the TivaWare framework.
If interested, here is the link to the thread in the Keil forum:
http://www.keil.com/forum/58608