trying to compile celestia (from CVS) on Mandrake 9

Report bugs, bug fixes and workarounds here.
Topic author
The Clickman
Posts: 28
Joined: 02.02.2002
With us: 22 years 9 months
Location: France
Contact:

trying to compile celestia (from CVS) on Mandrake 9

Post #1by The Clickman » 12.10.2002, 08:41

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

chris
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 22 years 9 months
Location: Seattle, Washington, USA

Post #2by chris » 12.10.2002, 16:05

Gcc 3.0 is stricter about templates. I should have a fix for this checked in today . . .

--Chris

Topic author
The Clickman
Posts: 28
Joined: 02.02.2002
With us: 22 years 9 months
Location: France
Contact:

Post #3by The Clickman » 23.10.2002, 20:15

not yet able to compile celestia from CVS.. (same problem)
I hope you will have time to make it work. take your time Chris !


Return to “Bugs”