[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: C89 compatibility
From: |
Bruno Haible |
Subject: |
Re: C89 compatibility |
Date: |
Thu, 5 Mar 2009 23:06:51 +0100 |
User-agent: |
KMail/1.9.9 |
Reuben Thomas wrote:
> 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,
How did you do that, exactly? I.e. please show the configure command line and
the following steps.
> In file included from gl_array_list.c:31:
> [some errors]
You gave too few details about your configuration, gcc version, etc. - I don't
reproduce:
$ ./gnulib-tool --create-testdir --dir=/tmp/testdir7 array-list
$ cd /tmp/testdir7
$ gcc -v 2>&1 |grep 'version '
gcc version 4.3.1 20080507 (prerelease) [gcc-4_3-branch revision 135036] (SUSE
Linux)
$ ./configure CC="gcc -std=c89"
[works fine]
$ make
[works fine]
Bruno