On Tue, Jan 06, 2004 at 09:31:41AM +0000, Angus Leeming wrote: > Kayvan A. Sylvan wrote: > > g++ -DHAVE_CONFIG_H -I. -I../../../lyx/src/support -I../../src > > -I../../../lyx/src/support/../ -I../../../lyx/boost > > -I/u/ksylvan/include -I/usr/openwin/include -O2 -fno-exceptions -W > > -Wall -MT globbing.lo -MD -MP -MF .deps/globbing.Tpo -c > > ../../../lyx/src/support/globbing.C > > ../../../lyx/src/support/globbing.C: In function `const > > std::vector<std::string, std::allocator<std::string> > > > lyx::support::glob(const std::string&, int)': > > ../../../lyx/src/support/globbing.C:70: excess elements in aggregate > > initializer > > Thanks, Kayvan. > Could you replace > glob_t glob_buffer = {0, 0, 0, 0, 0, 0, 0, 0, 0}; > with > static glob_t const zero; > glob_t glob_buffer = zero;
Hi Angus, Now I get: g++ -DHAVE_CONFIG_H -I. -I../../../lyx/src/support -I../../src -I../../../lyx/src/support/../ -I../../../lyx/boost -I/u/ksylvan/include -I/usr/openwin/include -O2 -fno-exceptions -W -Wall -MT globbing.lo -MD -MP -MF .deps/globbing.Tpo -c ../../../lyx/src/support/globbing.C ../../../lyx/src/support/globbing.C: In function `const std::vector<std::string, std::allocator<std::string> > lyx::support::glob(const std::string&, int)': ../../../lyx/src/support/globbing.C:70: uninitialized const `zero' -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92)