It also happens on my machine (gcc 2.91.66).
The immediate and simple solution is to add an: #include "MenuBackend.h"
to the top of src/frontends/Menubar_pimpl.h
The reason for this is line 77 in the Menubar_pimpl.h file that says:
: pimpl_(p), obj_(o) { item_.reset(i); }
specifically the problem is item_.reset(i) which cannot be done without
the full knowledge of the MenuItem class which is not given without the
include directive.
* Garst R. Reese <[EMAIL PROTECTED]> [010504 21:14]:
> gcc-2.95.2
> today's make.log attached
> Garst
> Making all in xforms
> make[4]: Entering directory `/usr/local/garst/lyx-devel/src/frontends/xforms'
> /bin/sh ../../../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../../../src
>-I../../../images -I../../../src/ -I../../../src/frontends/
>-I../../../src/frontends/controllers -I../../.. -I../../.. -I../../../boost
>-isystem /usr/X11R6/include -O -fno-exceptions -W -Wall -c Menubar_pimpl.C
> g++ -DHAVE_CONFIG_H -I. -I. -I../../../src -I../../../images -I../../../src/
>-I../../../src/frontends/ -I../../../src/frontends/controllers -I../../.. -I../../..
>-I../../../boost -isystem /usr/X11R6/include -O -fno-exceptions -W -Wall
>-Wp,-MD,.deps/Menubar_pimpl.pp -c Menubar_pimpl.C -o Menubar_pimpl.o
> In file included from Menubar_pimpl.C:18:
> ../../../boost/boost/smart_ptr.hpp: In method `void boost::shared_ptr<const
>MenuItem>::dispose()':
> ../../../boost/boost/smart_ptr.hpp:155: instantiated from `boost::shared_ptr<const
>MenuItem>::~shared_ptr()'
> Menubar_pimpl.h:77: instantiated from here
> ../../../boost/boost/smart_ptr.hpp:272: invalid use of undefined type `class
>MenuItem'
> Menubar_pimpl.h:32: forward declaration of `class MenuItem'
> ../../../boost/boost/smart_ptr.hpp: In method `void boost::shared_ptr<const
>MenuItem>::reset(const MenuItem * = 0)':
> Menubar_pimpl.h:77: instantiated from here
> ../../../boost/boost/smart_ptr.hpp:218: invalid use of undefined type `class
>MenuItem'
> Menubar_pimpl.h:32: forward declaration of `class MenuItem'
> make[4]: *** [Menubar_pimpl.lo] Error 1
--
Baruch Even
http://baruch.ev-en.org/