Bonjour, j'utilise pour mes besoins la librairie regex.h mais voilà j'ai un petit problème de compilation. Le compilateur mingw32-g++ avec comme option de compilation : -Wall -Wno-reorder -Wpointer-arith -pipe -Wno-deprecated -g -D__cplusplus.
les erreurs :
/inc/regex.h:566: error: expected primary-expression before "__restrict__"
/inc/regex.h:566: error: expected `]' before "__restrict__"
/inc/regex.h:566: error: expected `,' or `...' before "__restrict__"
regex.h :
extern int regexec _RE_ARGS ((const regex_t *__restrict __preg,
const char *__restrict __string, size_t __nmatch,
regmatch_t __pmatch[__restrict_arr],
int __eflags));
__restrict_arr vaut __restrict
En espérant que se sera utile pour d'autre.
Partager