When trying to compile the svn trunk on linux 64 bit with gcc 4.7.2 (Debian 4.7.2-17), I get an error with a previous declaration of __mbstate_t.

Does anyone have any suggestions for fixing this?


This is the command line I am using to compile
 make BUILDDIR=/home/win/stdcxx_rsvn BUILDMODE=12D CONFIG=gcc.config
and this is a cut and paste of the error.

gcc -c -I/home/win/apache-stdcxx/include/ansi -I/home/win/apache-stdcxx/include -I/home/win/stdcxx_rsvn/include -pedantic -nostdinc++ -W -Wall -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long -Wcast-align /home/win/apache-stdcxx/src/assert.cpp
In file included from /home/win/apache-stdcxx/include/ansi/wchar.h:201:0,
                 from /usr/include/_G_config.h:20,
                 from /usr/include/libio.h:32,
                 from /usr/include/../include/stdio.h:74,
                 from /home/win/apache-stdcxx/include/ansi/stdio.h:92,
                 from /home/win/apache-stdcxx/src/assert.cpp:32:
/home/win/apache-stdcxx/include/rw/_mbstate.h:146:3: error: conflicting declaration 'typedef struct __mbstate_t __mbstate_t'
In file included from /home/win/apache-stdcxx/include/ansi/wchar.h:199:0,
                 from /usr/include/_G_config.h:20,
                 from /usr/include/libio.h:32,
                 from /usr/include/../include/stdio.h:74,
                 from /home/win/apache-stdcxx/include/ansi/stdio.h:92,
                 from /home/win/apache-stdcxx/src/assert.cpp:32:
/usr/include/../include/wchar.h:94:3: error: '__mbstate_t' has a previous declaration as 'typedef struct __mbstate_t __mbstate_t'


Thanks,
Win

Reply via email to