Re: gcc 4.5 doesn't like gdbm.h

2011-01-08 Thread Sam Varshavchik
Rex Dieter writes: Sam Varshavchik wrote: gcc 4.5 complains when compiling some C++ code that includes gdbm.h, with a spurious warning: #include class xx { public: GDBM_FILE dbf; }; [mr...@octopus tmp]$ cat foo.c #include "foo.h" [mr...@octopus tmp]$ g++ -c foo.c In file included fr

Re: gcc 4.5 doesn't like gdbm.h

2011-01-08 Thread Rex Dieter
Sam Varshavchik wrote: > gcc 4.5 complains when compiling some C++ code that includes gdbm.h, with > a spurious warning: > > #include > > class xx { > > public: > GDBM_FILE dbf; > > }; > > [mr...@octopus tmp]$ cat foo.c > #include "foo.h" > [mr...@octopus tmp]$ g++ -c foo.c > In file in