On Tue, Sep 16, 2003 at 04:46:09PM +0000, Angus Leeming spake thusly: > > Martin Vermeer wrote: > > Angus, I find that I have to add #include "lyxfont.h" to paragraph.C > > to get it to compile. > > Really? How odd. What is the error? > Anyway, I have committed the fix. > > -- > Angus
This: paragraph.C:1092: warning: #warning FIXME we should check the prev par as well (Lgb) In file included from paragraph.C:22: ../boost/boost/checked_delete.hpp: In function `void boost::checked_delete<LyXFont>(LyXFont *)': ../boost/boost/checked_delete.hpp:52: instantiated from `boost::checked_deleter<LyXFont>::operator ()(LyXFont *) const' ../boost/boost/detail/shared_count.hpp:342: instantiated from `boost::detail::shared_count::shared_count<LyXFont *, boost::checked_deleter<LyXFont> >(LyXFont *, boost::checked_deleter<LyXFont>)' ../boost/boost/shared_ptr.hpp:114: instantiated from `boost::shared_ptr<LyXFont>::shared_ptr<LyXFont>(LyXFont *)' ../boost/boost/shared_ptr.hpp:222: instantiated from `boost::shared_ptr<LyXFont>::reset<LyXFont>(LyXFont *)' ShareContainer.h:47: instantiated from `ShareContainer<LyXFont>::get(const LyXFont &) const' paragraph_pimpl.h:99: instantiated from here ../boost/boost/checked_delete.hpp:32: `sizeof' applied to incomplete type `LyXFont' ../boost/boost/checked_delete.hpp:32: size of array `type_must_be_complete' is negative ../boost/boost/checked_delete.hpp:33: `sizeof' applied to incomplete type `LyXFont' ../boost/boost/checked_delete.hpp:33: creating array with size `-1' ../boost/boost/checked_delete.hpp:34: invalid use of undefined type `class LyXFont' dimension.h:16: forward declaration of `class LyXFont' ../boost/boost/checked_delete.hpp:30: incomplete `x' defined here ShareContainer.h: In method `class boost::shared_ptr<LyXFont> ShareContainer<LyXFont>::get(const LyXFont &) const': paragraph_pimpl.h:99: instantiated from here ShareContainer.h:47: invalid use of undefined type `class LyXFont' dimension.h:16: forward declaration of `class LyXFont' make: *** [paragraph.o] Error 1 paragraph_pimpl.C does the same. I tried config, autogen and all that, and checked that my local copy matches CVS; to no avail. Compiler issue? - Martin
pgp00000.pgp
Description: PGP signature