trying to compile celestia (from CVS) on Mandrake 9
Posted: 12.10.2002, 08:41
get this while compiling :
How to resolv this
Thanks
Code: Select all
g++ -DHAVE_CONFIG_H -I. -I. -I.. -O2 -Wall -ffast-math -fexpensive-optimizations -fomit-frame-pointer -c buildstardb.cpp
buildstardb.cpp: In function `void BuildMultistarSystemCatalog()':
buildstardb.cpp:926: cannot convert `__gnu_cxx::__normal_iterator<HipparcosStar*, std::vector<HipparcosStar, std::allocator<HipparcosStar> > >' to `HipparcosStar*' in assignment
buildstardb.cpp:938: cannot convert `__gnu_cxx::__normal_iterator<HipparcosStar*, std::vector<HipparcosStar, std::allocator<HipparcosStar> > >' to `HipparcosStar*' in assignment
buildstardb.cpp: In function `int main(int, char**)':
buildstardb.cpp:1167: no matching function for call to `std::vector<HipparcosStar*, std::allocator<HipparcosStar*> >::insert(__gnu_cxx::__normal_iterator<HipparcosStar**, std::vector<HipparcosStar*, std::allocator<HipparcosStar*> > >, __gnu_cxx::__normal_iterator<HipparcosStar*, std::vector<HipparcosStar, std::allocator<HipparcosStar> > >&)'
/usr/include/c++/3.2/bits/stl_vector.h:540: candidates are: __gnu_cxx::__normal_iterator<_Tp*, std::vector<_Tp, _Alloc> > std::vector<_Tp, _Alloc>::insert(__gnu_cxx::__normal_iterator<_Tp*, std::vector<_Tp, _Alloc> >, const _Tp&) [with _Tp = HipparcosStar*, _Alloc = std::allocator<HipparcosStar*>]
/usr/include/c++/3.2/bits/stl_vector.h:564: __gnu_cxx::__normal_iterator<_Tp*, std::vector<_Tp, _Alloc> > std::vector<_Tp, _Alloc>::insert(__gnu_cxx::__normal_iterator<_Tp*, std::vector<_Tp, _Alloc> >) [with _Tp = HipparcosStar*, _Alloc = std::allocator<HipparcosStar*>]
/usr/include/c++/3.2/bits/stl_vector.h:613: void std::vector<_Tp, _Alloc>::insert(__gnu_cxx::__normal_iterator<_Tp*, std::vector<_Tp, _Alloc> >, unsigned int, const _Tp&) [with _Tp = HipparcosStar*, _Alloc = std::allocator<HipparcosStar*>]
make[3]: *** [buildstardb.o] Erreur 1
make[3]: Quitte le r?pertoire `/root/celestia/src'
make[2]: *** [all-recursive] Erreur 1
make[2]: Quitte le r?pertoire `/root/celestia/src'
make[1]: *** [all-recursive] Erreur 1
make[1]: Quitte le r?pertoire `/root/celestia'
make: *** [all-recursive-am] Erreur 2
How to resolv this
Thanks