Had to add

       bool isDrawable() const { return true; }

to GraphicsImageXPM.h to compile...



On Tuesday 16 July 2002 11:04, Edwin Leuven wrote:
> Angus?
>
> g++ -DHAVE_CONFIG_H -I. -I../../../lyx-devel/src/graphics -I../../src
> -I../../../lyx-devel/src/graphics/../ -I../../../lyx-devel/boost -isystem
> /usr/X11R6/include -g -finline-limit=500 -fno-exceptions -W -Wall -Winline
> -Winline -c ../../../lyx-devel/src/graphics/GraphicsImageXPM.C -MT
> GraphicsImageXPM.lo -MD -MP -MF .deps/GraphicsImageXPM.TPlo
> ../../../lyx-devel/src/graphics/GraphicsImageXPM.C: In static member
> function `static boost::shared_ptr<grfx::Image>
> grfx::ImageXPM::newImage()':
> ../../../lyx-devel/src/graphics/GraphicsImageXPM.C:45: cannot allocate an
> object of type `grfx::ImageXPM'
> ../../../lyx-devel/src/graphics/GraphicsImageXPM.C:45:   because the
> following virtual functions are abstract:
> ../../../lyx-devel/src/graphics/GraphicsImage.h:73:     virtual bool
>    grfx::Image::isDrawable() const
> ../../../lyx-devel/src/graphics/GraphicsImageXPM.C: In member function
> `virtual
>    grfx::Image* grfx::ImageXPM::clone() const':
> ../../../lyx-devel/src/graphics/GraphicsImageXPM.C:82: cannot allocate an
>    object of type `grfx::ImageXPM'
> ../../../lyx-devel/src/graphics/GraphicsImageXPM.C:82:   since type `
>    grfx::ImageXPM' has abstract virtual functions
> ../../../lyx-devel/src/graphics/GraphicsImageXPM.C: In member function
> `virtual
>    void grfx::ImageXPM::clip(const grfx::Params&)':
> ../../../lyx-devel/src/graphics/GraphicsImageXPM.C:273: warning: comparison
>    between signed and unsigned integer expressions
> make[3]: *** [GraphicsImageXPM.lo] Error 1
> make[3]: Leaving directory `/usr/local/cvs/lyx-qt2/src/graphics'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/usr/local/cvs/lyx-qt2/src'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/usr/local/cvs/lyx-qt2/src'
> make: *** [all-recursive] Error 1

Reply via email to