Code: Select all
In file included from ../src/main.xc:11:
In file included from C:\Program Files (x86)\XMOS\xTIMEcomposer\Community_14.1.0\target/include/xc\time.h:4:
C:\Program Files (x86)\XMOS\xTIMEcomposer\Community_14.1.0\target/include\time.h:47:30: error: parse error before "void"
clock_t _EXFUN(clock, (void));
^
C:\Program Files (x86)\XMOS\xTIMEcomposer\Community_14.1.0\target/include\_ansi.h:75:35: note: expanded from macro '_EXFUN'
#define _EXFUN(name, proto) name proto
^
xmake[1]: *** [.build_X200/src//main.xc.pca.xml] Error 1
xmake: *** [analyze] Error 2
Code: Select all
clock_t _EXFUN(clock, (void));
Code: Select all
clock_t __clock_t(void);
When I compare to time.h headers found on Windows and OS X, the function name is clock as opposed to __clock_t found here.
I know that the clock() function in C just returns the tick count since the program launched. Perhaps XC is attempting to override it since it has it's own set of timer/clock hardware features?
Anyone else experience this issue?
Any insight would be appreciated!