Angus Leeming <[EMAIL PROTECTED]> writes: > > ld: multiple definitions of symbol MathGridInset::~MathGridInset > > [in-charge deleting]() > > Looks like a gcc bug to me. > > What happens if you explicitly define an out-of-line empty destructor to > MathGridInset: > math_gridinset.h > ~MathGridInset(); > math_gridinset.C > MathGridInset::~MathGridInset() > {}
This fixed that problem, but then the linker fails to find some functions, including all of the Qt functions. The exact same configuration worked with gcc-2.95.2, and the Qt library is linked with the same gcc-3.3 as lyx-1.3.3: g++ -O -framework Carbon -framework OpenGL -framework AGL -framework QuickTime -o lyx BufferView.o [...] mathed/.libs/libmathed.a insets/.libs/libinsets.a frontends/.libs/libfrontends.a -L/usr/local/src/qt/lib -lqt graphics/.libs/libgraphics.a support/.libs/libsupport.a -lz ../boost/libs/regex/src/.libs/libboostregex.a -L/sw/lib ../boost/libs/signals/src/.libs/libboostsignals.a ../intl/libintl.a -lc -lm ld: Undefined symbols: typeinfo for boost::detail::counted_base_impl<kb_keymap*, boost::checked_deleter<kb_keymap> > typeinfo for boost::detail::counted_base_impl<LyXKeySym*, boost::checked_deleter<LyXKeySym> > QFileDialog::setSelection(QString const&) [long list of Qt symbols omitted for brevity] -- Ronald Florence www.18james.com