On Wednesday 06 June 2001 10:17, Edwin Leuven wrote:
> Dear All,
>
> I am slowly putting my toes in the lyx-bath again, and am trying to compile
> lyx using the qt2 frontend on my pristine redhat 7.1 installation
> (gcc-c++-2.96-81) but...alas...it doesn't work for me. Can anyone give me a
> clue? I am still a bit at a loss with the controller stuff...
>
> Thanks, Ed.
Ed, your compiler is complaining about ButtonController not having a function
refreshReadOnly(). I'm at something of a loss because it does!
ButtonController is derived from GUIBC which contains the desired function.
aleem@pneumon:controllers-> grep -n refreshReadOnly *.h
ButtonController.h:45: void refreshReadOnly();
ButtonController.h:98:void GuiBC<Button, Widget>::refreshReadOnly()
ButtonControllerBase.h:66: virtual void refreshReadOnly() = 0;
Here the function is instantiated at line 98 of ButtonController.h. What do
you have?
Angus
>
> g++ -DHAVE_CONFIG_H -I. -I. -I../../../src -I../../../src/
> -I../../../src/frontends/ -I../../.. -I../../.. -I./qt2
> -I/usr/lib/qt-2.3.0/include -I../../../boost
> -I../../../src/frontends/controllers -isystem /usr/X11R6/include -g -O
> -fno-exceptions -W -Wall -Wp,-MD,.deps/Dialogs.pp -c Dialogs.C
> In file included from ../../../src/Lsstream.h:20,
> from ../../../src/support/lstrings.h:22,
> from FormSearch.h:14,
> from Dialogs.C:39:
> /usr/include/g++-3/sstream: In method `int stringbuf::sync ()':
> /usr/include/g++-3/sstream:171: warning: comparison between signed and
> unsigned integer expressions
> .../../../src/frontends/controllers/GUI.h: At top level:
> .../../../src/frontends/controllers/GUI.h: In instantiation of
> `GUI<ControlCitation, FormCitation, NoRepeatedApplyReadOnlyPolicy, qt2BC>':
> Dialogs.C:66: instantiated from `GUICitation<FormCitation, qt2BC>'
> Dialogs.C:66: instantiated from here
> .../../../src/frontends/controllers/GUI.h:33: cannot declare field
> `GUI<ControlCitation, FormCitation,
> NoRepeatedApplyReadOnlyPolicy, qt2BC>::bc_' to be of type
> `ButtonController<NoRepeatedApplyReadOnlyPolicy, qt2BC>'
> .../../../src/frontends/controllers/GUI.h:33: since the following virtual
> functions are abstract:
> .../../../src/frontends/controllers/ButtonControllerBase.h:66: void
> ButtonControllerBase::refreshReadOnly ()
> .../../../src/frontends/controllers/GUI.h: In instantiation of
> `GUI<ControlCopyright, FormCopyright, OkCancelPolicy, qt2BC>':
> Dialogs.C:67: instantiated from `GUICopyright<FormCopyright, qt2BC>'
> Dialogs.C:67: instantiated from here
> .../../../src/frontends/controllers/GUI.h:33: cannot declare field
> `GUI<ControlCopyright, FormCopyright,
> OkCancelPolicy, qt2BC>::bc_' to be of type
`ButtonController<OkCancelPolicy,
> qt2BC>'
> .../../../src/frontends/controllers/GUI.h:33: since the following virtual
> functions are abstract:
> .../../../src/frontends/controllers/ButtonControllerBase.h:66: void
> ButtonControllerBase::refreshReadOnly ()
> .../../../src/frontends/controllers/GUI.h: In instantiation of
> `GUI<ControlCredits, FormCredits, OkCancelPolicy, qt2BC>':
> Dialogs.C:68: instantiated from `GUICredits<FormCredits, qt2BC>'
> Dialogs.C:68: instantiated from here
> .../../../src/frontends/controllers/GUI.h:33: cannot declare field
> `GUI<ControlCredits, FormCredits,
> OkCancelPolicy, qt2BC>::bc_' to be of type
`ButtonController<OkCancelPolicy,
> qt2BC>'
> .../../../src/frontends/controllers/GUI.h:33: since type
> `ButtonController<OkCancelPolicy, qt2BC>' has
> abstract virtual functions
> make[4]: *** [Dialogs.lo] Error 1
> make[4]: Leaving directory `/tmp/lyx-devel/src/frontends/qt2'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory `/tmp/lyx-devel/src/frontends'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/tmp/lyx-devel/src'
> make[1]: *** [all-recursive-am] Error 2
> make[1]: Leaving directory `/tmp/lyx-devel/src'
> make: *** [all-recursive] Error 1