Tool/software: TI C/C++ Compiler
I try to move some application from linux to dsp. And I try to use ti-cgt-c6000_8.3.1/bin/cl6x to compile my code.
But I got some errors:
>> Compilation failure
"dSFMT.c", line 348: error: function call is not allowed in a constant expression
"dSFMT.c", line 367: error: function call is not allowed in a constant expression
The code snippets are as the following:
#define DSFMT_PCV2 UINT64_C(0x0000000000000001)
uint64_t pcv[2] = {DSFMT_PCV1, DSFMT_PCV2};
uint64_t tmp[2];
uint64_t inner;
int i;
#if (DSFMT_PCV2 & 1) != 1
int j;
uint64_t work;
#endif
The UINT64_C is a macro function defined at stdint.h
So why it cannot evaluate at compile time?