Page 1 of 1

trying to compile celestia (from CVS) on Mandrake 9

Posted: 12.10.2002, 08:41
by The Clickman
get this while compiling :

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

Posted: 12.10.2002, 16:05
by chris
Gcc 3.0 is stricter about templates. I should have a fix for this checked in today . . .

--Chris

Posted: 23.10.2002, 20:15
by The Clickman
not yet able to compile celestia from CVS.. (same problem)
I hope you will have time to make it work. take your time Chris !