Hello!
I instilled ns-2.26 in ubuntu8.10, but there was a big problem

/usr/include/c++/4.2/bits/stl_algobase.h: At global scope:
/usr/include/c++/4.2/bits/stl_algobase.h:182: error: expected unqualified-id
before ‘const’
/usr/include/c++/4.2/bits/stl_algobase.h:182: error: expected `)' before
‘const’
/usr/include/c++/4.2/bits/stl_algobase.h:182: error: expected `)' before
‘const’
/usr/include/c++/4.2/bits/stl_algobase.h:182: error: expected `)' before
‘const’
/usr/include/c++/4.2/bits/stl_algobase.h:182: error: expected initializer
before ‘const’
/usr/include/c++/4.2/bits/stl_algobase.h:204: error: expected unqualified-id
before ‘const’
/usr/include/c++/4.2/bits/stl_algobase.h:204: error: expected `)' before
‘const’
/usr/include/c++/4.2/bits/stl_algobase.h:204: error: expected `)' before
‘const’
/usr/include/c++/4.2/bits/stl_algobase.h:204: error: expected `)' before
‘const’
/usr/include/c++/4.2/bits/stl_algobase.h:204: error: expected initializer
before ‘const’
In file included from /usr/include/c++/4.2/vector:74,
                 from ./diffusion3/lib/nr/nr.hh:34,
                 from ./diffusion3/lib/main/message.hh:48,
                 from ./diffusion3/lib/main/filter.hh:41,
                 from ./diffusion3/lib/dr.hh:41,
                 from diffusion3/ns/diffagent.h:40,
                 from diffusion3/ns/diffagent.cc:33:
/usr/include/c++/4.2/bits/vector.tcc: In member function ‘void
std::vector<_Tp,
_Alloc>::_M_fill_insert(__gnu_cxx::__normal_iterator<typename
std::_Vector_base<_Tp, _Alloc>::_Tp_alloc_type::pointer, std::vector<_Tp,
_Alloc> >, size_t, const _Tp&)’:
/usr/include/c++/4.2/bits/vector.tcc:350: error: expected unqualified-id
before ‘(’ token
/usr/include/c++/4.2/bits/vector.tcc: In member function ‘void
std::vector<_Tp,
_Alloc>::_M_range_insert(__gnu_cxx::__normal_iterator<typename
std::_Vector_base<_Tp, _Alloc>::_Tp_alloc_type::pointer, std::vector<_Tp,
_Alloc> >, _ForwardIterator, _ForwardIterator, std::forward_iterator_tag)’:
/usr/include/c++/4.2/bits/vector.tcc:453: error: expected unqualified-id
before ‘(’ token
make: *** [diffusion3/ns/diffagent.o] error 1
Ns make failed!

What is that? How can I fix it

Reply via email to