Reuben Thomas <r...@sc3d.org> writes:

> Since gnulib works on many systems, I imagine it's supposed to work
> with C89 compilers?

Yes.

> I'm working on a project which uses C89, so I just added the -std=c89
> flag to GCC when building it, to find potential
> problems. Unfortunately, some of the gnulib code I'm using now doesn't
> work:
>
> In file included from gl_array_list.c:31:
> xsize.h:52: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before 
> ‘size_t’
> xsize.h:63: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before 
> ‘size_t’
> xsize.h:73: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before 
> ‘size_t’
> xsize.h:83: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before 
> ‘size_t’
> gl_array_list.c: In function ‘grow’:
> gl_array_list.c:239: warning: implicit declaration of function ‘xsum’
> gl_array_list.c: At top level:
> gl_array_list.c:492: warning: unused parameter ‘iterator’
>
> The problem here is the use of "inline".

Did you run all the gnulib configure tests using the same compiler and
flags?  You can't change compiler and flags after running configure.

/Simon


Reply via email to