I'm building a project which uses stuff like this:-
Code:
---------
#define MXFPRIu08 "u"
// whatever...
fprintf(f, "%03"MXFPRIu08, i);
---------
I'm guessing the above should get converted to *fprintf(f, "%03u", i);* but instead, the compiler is giving me:-
Code:
---------
error C3688: invalid literal suffix 'MXFPRIu08'; literal operator or literal operator template 'operator ""MXFPRIu08' not found
---------
This code has been written by someone who I know to be a competent programmer so I assume there must be something wrong at my end. Do I need to set something up to make this work?
↧