Kayvan A. Sylvan wrote: > Clean repository, Cygwin environment: > > g++ -DHAVE_CONFIG_H -I. -I../../../lyx/src/insets -I../../src > -I../../../lyx/src/insets/../ -I../../../lyx/boost -I/usr/X11R6/include > -O2 -fno-exceptions -W -Wall -mms-bitfields -MT insetlabel.lo -MD -MP -MF > .deps/insetlabel.Tpo -c ../../../lyx/src/insets/insetlabel.C In file > included from ../../../lyx/src/insets/insetlabel.C:19: > ../../../lyx/src/insets/InsetList.h:21: error: redefinition of `class > InsetList > ' > ../../../lyx/src/InsetList.h:24: error: previous definition of `class > InsetList > ' > ../../../lyx/src/insets/InsetList.h:28: error: syntax error before `::' > token ../../../lyx/src/insets/InsetList.h:30: error: semicolon missing > after > declaration of `InsetList' > ../../../lyx/src/insets/InsetList.h:30: error: extraneous `int' ignored > ../../../lyx/src/insets/InsetList.h:30: error: non-member function > `InsetList > latex(const Buffer&, std::ostream&, const OutputParams&)' cannot have > `const ' method qualifier > ../../../lyx/src/insets/InsetList.h:32: error: syntax error before `const' > In file included from ../../../lyx/src/insets/insetlabel.C:20: > ../../../lyx/src/iterators.h:40: error: `iterator' is not a member of type > ` > InsetList' > ../../../lyx/src/iterators.h:40: error: template argument 1 is invalid > ../../../lyx/src/iterators.h:40: error: ISO C++ forbids declaration of > `it' > with no type > ../../../lyx/src/insets/insetlabel.C: In function `void > <unnamed>::changeRefsIfUnique(BufferView&, const std::string&, const > std::string&)': > ../../../lyx/src/insets/insetlabel.C:77: error: `iterator' is not a member > of > type `InsetList' > ../../../lyx/src/insets/insetlabel.C:77: error: parse error before `=' > token ../../../lyx/src/insets/insetlabel.C:78: error: `it2' undeclared > (first use > this function) > ../../../lyx/src/insets/insetlabel.C:78: error: (Each undeclared > identifier is > reported only once for each function it appears in.) > ../../../lyx/src/insets/insetlabel.C:78: error: `end' undeclared (first > use > this function) > make[3]: *** [insetlabel.lo] Error 1
There seems to be some kind of upper/lower case problem, src/insets/insetlabel.C should #include src/InsetList.h but it's wrongly including src/inset/insetlist.h in cwgwin. Alfredo