Re: new module 'c++defs'

2010-03-07 Thread Bruno Haible
Hi John, > | foo.cc: In function ‘int main()’: > | foo.cc:21: warning: call to ‘open’ declared with attribute warning: The > symbol ::open refers to the system function. Use gnulib::open instead. > > Will this warning happen on all systems when a module is used, or just > when the replacemen

Re: new module 'c++defs'

2010-03-07 Thread John W. Eaton
On 6-Mar-2010, Bruno Haible wrote: | John W. Eaton wrote: | > How can one easily find all the places where the GNULIB_NAMESPACE tag | > is needed? Is there some way we can get the compiler to help with | > this job? | | Good point. I'm adding a macro _GL_CXXALIASWARN, so that a warning will | b

Re: new module 'c++defs'

2010-03-06 Thread Bruno Haible
John W. Eaton wrote: > How can one easily find all the places where the GNULIB_NAMESPACE tag > is needed? Is there some way we can get the compiler to help with > this job? Good point. I'm adding a macro _GL_CXXALIASWARN, so that a warning will be emitted: foo.cc: In function ‘int main()’: f

Re: new module 'c++defs'

2010-02-23 Thread John W. Eaton
On 23-Feb-2010, Eric Blake wrote: | According to John W. Eaton on 2/23/2010 7:51 AM: | > The only other error I'm seeing is | > | > libtool: compile: g++ -DHAVE_CONFIG_H -I. -I/home/jwe/src/octave/liboctave -I.. -I../libgnu -I/home/jwe/src/octave/libgnu -I/home/jwe/src/octave/libcruft/misc -

Re: new module 'c++defs'

2010-02-23 Thread Eric Blake
According to John W. Eaton on 2/23/2010 7:51 AM: > The only other error I'm seeing is > > libtool: compile: g++ -DHAVE_CONFIG_H -I. -I/home/jwe/src/octave/liboctave > -I.. -I../libgnu -I/home/jwe/src/octave/libgnu > -I/home/jwe/src/octave/libcruft/misc -ggdb3 -DHAVE_CONFIG_H > -I/usr/include

Re: new module 'c++defs'

2010-02-23 Thread John W. Eaton
On 23-Feb-2010, Bruno Haible wrote: | John W. Eaton wrote: | | > The next problem I encountered was | > | > libtool: compile: g++ -DHAVE_CONFIG_H -I. -I/home/jwe/src/octave/liboctave -I.. -I../libgnu -I/home/jwe/src/octave/libgnu -I/home/jwe/src/octave/libcruft/misc -ggdb3 -DHAVE_CONFIG_H

Re: new module 'c++defs'

2010-02-23 Thread Bruno Haible
John W. Eaton wrote: > #define GNULIB_NAMESPACE gnulib > > to Octave's config.h file, I first saw this error: > > libtool: compile: g++ -DHAVE_CONFIG_H -I. -I/home/jwe/src/octave/liboctave > -I.. -I../libgnu -I/home/jwe/src/octave/libgnu > -I/home/jwe/src/octave/libcruft/misc -ggdb3 -DHAVE

Re: new module 'c++defs'

2010-02-22 Thread John W. Eaton
On 23-Feb-2010, Bruno Haible wrote: | John W. Eaton wrote: | > ../libgnu/stdio.h:1087: error: previous declaration of 'int _gl_cxxalias_dummy' with 'C++' linkage | > ../libgnu/signal.h:246: error: conflicts with new declaration with 'C' linkage | | Thanks for reporting this. I'll handle it

Re: new module 'c++defs'

2010-02-22 Thread Bruno Haible
John W. Eaton wrote: > ../libgnu/stdio.h:1087: error: previous declaration of 'int > _gl_cxxalias_dummy' with 'C++' linkage > ../libgnu/signal.h:246: error: conflicts with new declaration with 'C' > linkage Thanks for reporting this. I'll handle it through the patch below. But this error al

new module 'c++defs'

2010-02-22 Thread John W. Eaton
On 22-Feb-2010, Bruno Haible wrote: | Here come the proposed changes to allow C++ developers to choose among | the default mode with many | #define func rpl_func | macro definitions and a "namespace mode", which is more in line with the | way C++ programs are built. | | I handled all header fil