Re: question about correct usage of gnulib

2011-05-11 Thread Lorenzo Bettini
On 05/03/2011 01:11 PM, Lorenzo Bettini wrote: On 05/02/2011 02:59 PM, Bastien ROUCARIES wrote: On Mon, May 2, 2011 at 12:02 PM, Lorenzo Bettini lorenzo.bett...@gmail.com wrote: On 04/25/2011 06:36 PM, Bruno Haible wrote: Lorenzo Bettini wrote: on the manual I read These Gnulib substitute

Re: question about correct usage of gnulib

2011-05-11 Thread Lorenzo Bettini
On 05/03/2011 11:57 PM, Bruno Haible wrote: Lorenzo Bettini asked: Would it be correct to put config.h only say in file1.cpp (and use the ‘-I’ option that refers to the Gnulib library directory for that file only), and not in file2.cpp and file3.cpp (where I don't use -I to refer to gnulib

Re: question about correct usage of gnulib

2011-05-11 Thread Bruno Haible
Lorenzo Bettini wrote: actually I see that in the build directory (in the subdirectory where gnulib headers are generated) there's no stdint.h and stdbool.h, so I should be OK, right? Then you are likely OK. If you want to be sure, grep the header files that your library installs for

Re: question about correct usage of gnulib

2011-05-11 Thread Simon Josefsson
Lorenzo Bettini lorenzo.bett...@gmail.com writes: On 05/03/2011 01:11 PM, Lorenzo Bettini wrote: On 05/02/2011 02:59 PM, Bastien ROUCARIES wrote: On Mon, May 2, 2011 at 12:02 PM, Lorenzo Bettini lorenzo.bett...@gmail.com wrote: On 04/25/2011 06:36 PM, Bruno Haible wrote: Lorenzo Bettini

Re: question about correct usage of gnulib

2011-05-03 Thread Lorenzo Bettini
On 05/02/2011 02:59 PM, Bastien ROUCARIES wrote: On Mon, May 2, 2011 at 12:02 PM, Lorenzo Bettini lorenzo.bett...@gmail.com wrote: On 04/25/2011 06:36 PM, Bruno Haible wrote: Lorenzo Bettini wrote: on the manual I read These Gnulib substitute header files rely onconfig.hbeing already

Re: question about correct usage of gnulib

2011-05-03 Thread Bruno Haible
Lorenzo Bettini asked: Would it be correct to put config.h only say in file1.cpp (and use the ‘-I’ option that refers to the Gnulib library directory for that file only), and not in file2.cpp and file3.cpp (where I don't use -I to refer to gnulib library directory), and then link all the 3

Re: question about correct usage of gnulib

2011-05-02 Thread Lorenzo Bettini
On 04/25/2011 06:36 PM, Bruno Haible wrote: Lorenzo Bettini wrote: on the manual I read These Gnulib substitute header files rely onconfig.h being already included. Furthermoreconfig.h must be the first include in every compilation unit. This means that to all your source files and likely

Re: question about correct usage of gnulib

2011-05-02 Thread Bastien ROUCARIES
On Mon, May 2, 2011 at 12:02 PM, Lorenzo Bettini lorenzo.bett...@gmail.com wrote: On 04/25/2011 06:36 PM, Bruno Haible wrote: Lorenzo Bettini wrote: on the manual I read These Gnulib substitute header files rely onconfig.h  being already included. Furthermoreconfig.h  must be the first

question about correct usage of gnulib

2011-04-25 Thread Lorenzo Bettini
Hi I've been using gnulib for some years now in my GNU packages, but I was wondering whether I'm using correctly, since some people reported some compilation errors on some architectures... I'm using getopt module, and on that architecture the user gets this compilation error g++

question about correct usage of gnulib

2011-04-25 Thread Lorenzo Bettini
Hi I've been using gnulib for some years now in my GNU packages, but I was wondering whether I'm using correctly, since some people reported some compilation errors on some architectures... I'm using getopt module, and on that architecture the user gets this compilation error g++

question about correct usage of gnulib

2011-04-25 Thread Lorenzo Bettini
Hi I've been using gnulib for some years now in my GNU packages, but I was wondering whether I'm using correctly, since some people reported some compilation errors on some architectures... I'm using getopt module, and on that architecture the user gets this compilation error g++

Re: question about correct usage of gnulib

2011-04-25 Thread Bruno Haible
Lorenzo Bettini wrote: on the manual I read These Gnulib substitute header files rely on config.h being already included. Furthermore config.h must be the first include in every compilation unit. This means that to all your source files and likely also to all your tests source files you