On Sat, Jul 09, 2005 at 09:38:32AM +0200, Carlos Vidal wrote: > > "Image.cc", line 222: Warning (Anachronism): Formal argument 1 of type > > extern "C" int(*)(_XDisplay*,XErrorEvent*) in call to > > XSetErrorHandler(extern "C" int(*)(_XDisplay*,XErrorEvent*)) is being > > passed int(*)(_XDisplay*,XErrorEvent*). > > "Image.cc", line 1610: Error: Overloading ambiguity between > > "std::sqrt(double)" and "std::sqrt(long double)". > > "Image.cc", line 1613: Error: Overloading ambiguity between > > "std::sqrt(double)" and "std::sqrt(long double)". > > "Image.cc", line 1616: Error: Overloading ambiguity between > > "std::sqrt(double)" and "std::sqrt(long double)". > > "Image.cc", line 1625: Error: Overloading ambiguity between > > "std::sqrt(double)" and "std::sqrt(long double)". > > "Image.cc", line 1628: Error: Overloading ambiguity between > > "std::sqrt(double)" and "std::sqrt(long double)". > > "Image.cc", line 1631: Error: Overloading ambiguity between > > "std::sqrt(double)" and "std::sqrt(long double)". > > 6 Error(s) and 1 Warning(s) detected. > > My guess is that the compiler has no idea of which is the type for the > sqrt() argument, as in this function the variables xt[] and yt[] are > integer arrays of pointers to who knows what :-) > > Try to cast the argument to double (or long double) like: > > sqrt(static_cast<double>(xt[0][x] + yt[0][y])) (line 1610) > > Let us know if this fixes the problem, so that the code can be > corrected (the cast is harmless, its purpose is only to satisfy the > compiler ;-)
casting it to double does the trick and promptly gets me to the next problem. ;) "Menu.cc", line 1055: Error: Cannot use std::__reverse_bi_iterator<std::list<bt::MenuItem>::iterator, std::bidirectional_iterator_tag, bt::MenuItem, bt::MenuItem&, bt::MenuItem*, int> to initialize std::__reverse_bi_iterator<std::list<bt::MenuItem>::const_iterator, std::bidirectional_iterator_tag, bt::MenuItem, const bt::MenuItem&, const bt::MenuItem*, int>. "Menu.cc", line 1056: Error: Cannot use std::__reverse_bi_iterator<std::list<bt::MenuItem>::iterator, std::bidirectional_iterator_tag, bt::MenuItem, bt::MenuItem&, bt::MenuItem*, int> to initialize const std::__reverse_bi_iterator<std::list<bt::MenuItem>::const_iterator, std::bidirectional_iterator_tag, bt::MenuItem, const bt::MenuItem&, const bt::MenuItem*, int>. "Menu.cc", line 1066: Warning (Anachronism): Assigning std::__reverse_bi_iterator<std::list<bt::MenuItem>::iterator, std::bidirectional_iterator_tag, bt::MenuItem, bt::MenuItem&, bt::MenuItem*, int> to std::__reverse_bi_iterator<std::list<bt::MenuItem>::const_iterator, std::bidirectional_iterator_tag, bt::MenuItem, const bt::MenuItem&, const bt::MenuItem*, int>. "Menu.cc", line 1066: Error: Cannot cast from std::__reverse_bi_iterator<std::list<bt::MenuItem>::iterator, std::bidirectional_iterator_tag, bt::MenuItem, bt::MenuItem&, bt::MenuItem*, int> to std::__reverse_bi_iterator<std::list<bt::MenuItem>::const_iterator, std::bidirectional_iterator_tag, bt::MenuItem, const bt::MenuItem&, const bt::MenuItem*, int>. "Menu.cc", line 1085: Error: Cannot use std::__reverse_bi_iterator<std::list<bt::MenuItem>::iterator, std::bidirectional_iterator_tag, bt::MenuItem, bt::MenuItem&, bt::MenuItem*, int> to initialize const std::__reverse_bi_iterator<std::list<bt::MenuItem>::const_iterator, std::bidirectional_iterator_tag, bt::MenuItem, const bt::MenuItem&, const bt::MenuItem*, int>. "Menu.cc", line 1086: Error: Cannot use std::__reverse_bi_iterator<std::list<bt::MenuItem>::iterator, std::bidirectional_iterator_tag, bt::MenuItem, bt::MenuItem&, bt::MenuItem*, int> to initialize std::__reverse_bi_iterator<std::list<bt::MenuItem>::const_iterator, std::bidirectional_iterator_tag, bt::MenuItem, const bt::MenuItem&, const bt::MenuItem*, int>. 5 Error(s) and 1 Warning(s) detected. i can see what is going wrong, but i have no clue how to fix that one. ;) thanks!!!! -brian -- "I fear death only slightly more than I hate my life." --8-bit Theater -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] List archives: http://asgardsrealm.net/lurker/splash/index.html
