Are you writing to C99, and does your compiler support that? C89 does not support the "const" keyword.