I'm writing a C++ application in visual studio express for windows phone 8.
I'm trying to use flite, a text to speech library written in c, so far I've added its source files and headers, and I've set the option to use precompiled headers to no on all of the individual c files, However the source files still do not compile, instead the compiler complains (many times) :
error C2059: syntax error : '.'
error C2059: syntax error : '}'
It complains of these problems for this code in the flite source:
DEF_STATIC_CONST_VAL_STRING(ffeature_default_val,"0");
The definition of DEF_STATIC_CONST_VAL_STRING being:
#define DEF_CONST_VAL_STRING(N,S) const cst_val N = {{.a={.type=CST_VAL_TYPE_STRING,.ref_count=-1,.v={.vval= (void *)S}}}}
Here you can see the "." and "}" the compiler complains of. I've not modified the c source in anyway, and it builds for iOS and Android projects, so I'd assume I've not grasped how to include C files in visual express. On a side note, in Visual Express, the icons next to the .c files are "++" :/
Any help is greatly appreciated.