On Sun, Jun 18, 2006 at 03:24:15PM +0400, Alexey Tourbin wrote: > On Sun, Jun 18, 2006 at 02:41:52PM +0400, Alexey Tourbin wrote: > > .libs/mql_parser.o:(.data+0x0): multiple definition of `_ZN11SmartVectorIT_T0_E10no_elementE' > > .libs/mql_yylex.o:(.data+0x0): first defined here > > Причем: > > $ c++filt _ZN11SmartVectorIT_T0_E10no_elementE > _ZN11SmartVectorIT_T0_E10no_elementE > $ > > Си+плюс глючит? (Который alt2.) --- ./include/smart_vector.h- 2006-06-18 10:22:11 +0000 +++ ./include/smart_vector.h 2006-06-18 11:37:28 +0000 @@ -126,7 +126,7 @@ private: std::vector m_vec; bool m_bDelete; public: - static const short int no_element; + static const short int no_element = -1; SmartVector(bool bDelete) : m_bDelete(bDelete) {}; ~SmartVector(void); // Returns index of value @@ -137,7 +137,7 @@ public: short int size(void) const { return m_vec.size(); }; }; -template const short int SmartVector::no_element = -1; +//template const short int SmartVector::no_element = -1; template SmartVector::~SmartVector(void) {