[ns] ns2.26 problem

2010-12-08 Thread YANLI

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_iteratortypename
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_iteratortypename
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


[ns] Quorum based power saving protocol in IEEE802.11

2010-11-25 Thread YANLI

Hello!
I am studying power saving in 802.11.
Does anyone know about quorum system?
I want add it in the 802.11 and simulate, but I have not any idea how do it
Everybody gives a dot the opinion, please