Oh, purlease! (this of course means "it works on my computer!")

One is derived from the other, so it should work. However, this code is 
really ugly and really lazy. I'll fix it properly. In the meantime you could 
try an explicit cast:

        if (it == 
static_cast<vector<NamedColor>::const_iterator>(xformColorDB.end())) {

Incidentally, you could always modify your own lyxconfig.m4 to remove 
-finline and get rid of those irritating warnings.

Angus

On Tuesday 21 November 2000 16:49, Amir Karger wrote:
> I was all excited to see Angus' patch had gone in. However, I couldn't
> compile FormPreferences.C. (Note: I didn't rerun autogen or configure or
> whatever, so if that's the problem, then I'm sorry.)
>
> gcc -v:
> gcc version 2.95.2 19991024 (release)
>
> Here's the errors. (I snipped out the "warning: can't inline call to `int
> __black_count" that I get on most of the files that get compiled.)
>
> -------------------------
>
> g++ -DHAVE_CONFIG_H -I. -I. -I../../../src -I../../../src/
> -I../../../src/frontends/ -I../../.. -I../../.. -I../../../boost -isystem
> /usr/X11R6/include -g -O -fno-rtti -fno-exceptions -W -Wall -Wconversion
> -Winline -Wp,-MD,.deps/FormPreferences.pp -c FormPreferences.C -o
> FormPreferences.o
> FormPreferences.C: In method `bool FormPreferences::Colors::Modify()
> const': FormPreferences.C:976: comparison of distinct pointer types
> `NamedColor *' and `const XformColor *' lacks a cast
> /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/../../../../include/g++-3/s
>tl_deque.h: In method `struct _Deque_iterator<int,int &,int *,0>
> deque<int,allocator<int>,0>::erase(_Deque_iterator<int,int &,int *,0>,
> _Deque_iterator<int,int &,int *,0>)':
> /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/../../../../include/g++-3/s
>tl_deque.h:617: instantiated from here
> /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/../../../../include/g++-3/s
>tl_deque.h:1051: warning: comparison between signed and unsigned
> /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/../../../../include/g++-3/s
>tl_deque.h: In method `void
> deque<int,allocator<int>,0>::_M_insert_aux<_Deque_iterator<int,const int
> &,const int &,0> >(_Deque_iterator<int,int &,int *,0>,
> _Deque_iterator<int,const int &,const int &,0>, _Deque_iterator<int,const
> int &,const int &,0>, unsigned int)':
> /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/../../../../include/g++-3/s
>tl_deque.h:1273: instantiated from
> `deque<int,allocator<int>,0>::insert<_Deque_iterator<int,const int &,const
> int &,0> >(_Deque_iterator<int,int &,int *,0>, _Deque_iterator<int,const
> int &,const int &,0>, _Deque_iterator<int,const int &,const int &,0>,
> forward_iterator_tag)'
> /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/../../../../include/g++-3/s
>tl_deque.h:791: instantiated from here
> /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/../../../../include/g++-3/s
>tl_deque.h:1406: warning: comparison between signed and unsigned
> make[4]: *** [FormPreferences.lo] Error 1
> make[4]: Leaving directory
> `/home/karger/lyx/CVS/lyx-devel/src/frontends/xforms'
>
>
> -Amir

Reply via email to