> This semicolon is not necessary. What compiler is that?

As I said, false alarm, sorry. I am trying to compile the qt2 frontend but 
couldn't get to compile lyxfunc.C. I got tricked into thinking it had 
something todo with the above header file. But now I think it had something 
todo with the boost signal stuff. I get errors like the one below but if I 
move the include of (q)font_loader.h to the bottom of the includes it 
compiles. But I still can't link (see below). I compile with gcc 3.1 btw.

Ed.



In file included from ../../lyx-devel/src/lyxfunc.C:62:
../../lyx-devel/src/insets/insetgraphics.h:34: parse error before `protected'
../../lyx-devel/src/insets/insetgraphics.h:39: parse error before `const'
../../lyx-devel/src/insets/insetgraphics.h:42: destructors must be member
   functions
../../lyx-devel/src/insets/insetgraphics.h:44: non-member function `int
   ascent(BufferView*, const LyXFont&)' cannot have `const' method qualifier
../../lyx-devel/src/insets/insetgraphics.h:46: non-member function `int
   descent(BufferView*, const LyXFont&)' cannot have `const' method qualifier
../../lyx-devel/src/insets/insetgraphics.h:48: non-member function `int
   width(BufferView*, const LyXFont&)' cannot have `const' method qualifier
../../lyx-devel/src/insets/insetgraphics.h:50: non-member function `void
   draw(BufferView*, const LyXFont&, int, float&, bool)' cannot have `const'
   method qualifier
../../lyx-devel/src/insets/insetgraphics.h:56: parse error before `)' token
../../lyx-devel/src/insets/insetgraphics.h:58: non-member function `void
   write(const Buffer*, std::ostream&)' cannot have `const' method qualifier
../../lyx-devel/src/insets/insetgraphics.h:67: non-member function `int
   latex(const Buffer*, std::ostream&, bool, bool)' cannot have `const' method
   qualifier
../../lyx-devel/src/insets/insetgraphics.h:69: non-member function `int
   ascii(const Buffer*, std::ostream&, int)' cannot have `const' method
   qualifier
../../lyx-devel/src/insets/insetgraphics.h:71: non-member function `int
   linuxdoc(const Buffer*, std::ostream&)' cannot have `const' method 
qualifier
../../lyx-devel/src/insets/insetgraphics.h:73: non-member function `int
   docbook(const Buffer*, std::ostream&, bool)' cannot have `const' method
   qualifier
../../lyx-devel/src/insets/insetgraphics.h:78: non-member function `void
   validate(LaTeXFeatures&)' cannot have `const' method qualifier
../../lyx-devel/src/insets/insetgraphics.h:81: non-member function 
`Inset::Code
   lyxCode()' cannot have `const' method qualifier
../../lyx-devel/src/insets/insetgraphics.h:84: virtual outside class
   declaration
../../lyx-devel/src/insets/insetgraphics.h:84: non-member function `Inset*
   clone(const Buffer&, bool)' cannot have `const' method qualifier
../../lyx-devel/src/insets/insetgraphics.h:93: non-member function `const
   InsetGraphicsParams& params()' cannot have `const' method qualifier
../../lyx-devel/src/insets/insetgraphics.h:100: parse error before `private'
../../lyx-devel/src/insets/insetgraphics.h:115: non-member function `const
   std::string statusMessage()' cannot have `const' method qualifier
../../lyx-devel/src/insets/insetgraphics.h:117: non-member function `const
   std::string createLatexOptions()' cannot have `const' method qualifier
../../lyx-devel/src/insets/insetgraphics.h:119: non-member function `const
   std::string prepareFile(const Buffer*)' cannot have `const' method 
qualifier
../../lyx-devel/src/insets/insetgraphics.h:129: `friend' can only be specified
   inside a class
../../lyx-devel/src/insets/insetgraphics.h:132: parse error before `}' token
In file included from ../../lyx-devel/src/frontends/Dialogs.h:33,
                 from ../../lyx-devel/src/lyxfunc.C:79:
../../lyx-devel/src/frontends/DialogBase.h:29: parse error before `protected'
../../lyx-devel/src/frontends/DialogBase.h:43: virtual outside class
   declaration
../../lyx-devel/src/frontends/DialogBase.h:43: function `void hide()' is
   initialized like a variable
../../lyx-devel/src/frontends/DialogBase.h:45: virtual outside class
   declaration
../../lyx-devel/src/frontends/DialogBase.h:47: virtual outside class
   declaration
../../lyx-devel/src/frontends/DialogBase.h:49: parse error before `}' token
In file included from ../../lyx-devel/src/lyxfunc.C:79:
../../lyx-devel/src/frontends/Dialogs.h:120: parse error before `)' token
In file included from ../../lyx-devel/src/lyxfunc.C:90:
../../lyx-devel/src/support/forkedcontr.h:34: parse error before `protected'
../../lyx-devel/src/support/forkedcontr.h:41: destructors must be member
   functions
../../lyx-devel/src/support/forkedcontr.h:44: syntax error before `&' token
../../lyx-devel/src/support/forkedcontr.h:57: non-member function `const
   std::vector<pos_type, std::allocator<pos_type> > getPIDs()' cannot have `
   const' method qualifier
../../lyx-devel/src/support/forkedcontr.h:60: non-member function `const
   std::string getCommand(int)' cannot have `const' method qualifier
../../lyx-devel/src/support/forkedcontr.h:66: new declaration `void kill(int,
   int = 5)'
/usr/include/signal.h:110: ambiguates old declaration `int kill(int, int)'
../../lyx-devel/src/support/forkedcontr.h:71: parse error before `private'
../../lyx-devel/src/support/forkedcontr.h:84: parse error before `}' token
../../lyx-devel/src/lyxfunc.C:932:2: warning: #warning I am not sure this is 
still right, please have a look! (Jug 20020417)
../../lyx-devel/src/lyxfunc.C:1184:2: warning: #warning repaint() or update() 
or nothing ?
../../lyx-devel/src/lyxfunc.C:1620:2: warning: #warning FIXME!! The graphics 
cache no longer has a changeDisplay method.
../../lyx-devel/src/lyxfunc.C: In member function `const std::string
   LyXFunc::dispatch(kb_action, std::basic_string<char, 
std::char_traits<char>,
   std::allocator<char> >)':
../../lyx-devel/src/lyxfunc.C:1654: `fcc' undeclared (first use this function)
../../lyx-devel/src/lyxfunc.C:1654: (Each undeclared identifier is reported
   only once for each function it appears in.)
../../lyx-devel/src/lyxfunc.C:1654: no method `ForkedcallsController::get'
../../lyx-devel/boost/boost/checked_delete.hpp: In function `void
   boost::checked_delete(T*) [with T = Cache]':
../../lyx-devel/src/insets/insetgraphics.h:45:   instantiated from `void 
boost::scoped_ptr<T>::scoped_ptr() [with T = Cache]'
../../lyx-devel/src/insets/insetgraphics.h:131:   instantiated from here
../../lyx-devel/boost/boost/checked_delete.hpp:26: `sizeof' applied to
   incomplete type `Cache'
../../lyx-devel/boost/boost/checked_delete.hpp:26: creating array with size
   zero (`0')
../../lyx-devel/boost/boost/checked_delete.hpp:25: `x' has incomplete type
../../lyx-devel/src/insets/insetgraphics.h:128: forward declaration of `struct
   Cache'
make[3]: *** [lyxfunc.o] Error 1
make[3]: Leaving directory `/usr/local/cvs/lyx-qt2/src'
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

AND THEN I CAN"T LINK

frontends/.libs/libfrontends.a(qttableview_moc.o):/usr/local/cvs/lyx-qt2/src/frontends/qt2/moc/qttableview_moc.C:103:
 
undefined reference to `QPaintDevice::setX11Data(QPaintDeviceX11Data const*)'
frontends/.libs/libfrontends.a(qttableview_moc.o):/usr/local/cvs/lyx-qt2/src/frontends/qt2/moc/qttableview_moc.C:103:
 
undefined reference to `QPaintDevice::cmd(int, QPainter*, QPDevCmdParam*)'
frontends/.libs/libfrontends.a(qttableview_moc.o):/usr/local/cvs/lyx-qt2/src/frontends/qt2/moc/qttableview_moc.C:103:
 
undefined reference to `non-virtual thunk [nv:-36] to QWidget::metric(int) 
const'
frontends/.libs/libfrontends.a(qttableview_moc.o):/usr/local/cvs/lyx-qt2/src/frontends/qt2/moc/qttableview_moc.C:103:
 
undefined reference to `QPaintDevice::fontMet(QFont*, int, char const*, int) 
const'
frontends/.libs/libfrontends.a(qttableview_moc.o):/usr/local/cvs/lyx-qt2/src/frontends/qt2/moc/qttableview_moc.C:103:
 
undefined reference to `QPaintDevice::fontInf(QFont*, int) const'
collect2: ld returned 1 exit status
make[3]: *** [lyx] Error 1
make[3]: Leaving directory `/usr/local/cvs/lyx-qt2/src'
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'

>
> Andre'

Reply via email to