> > -liberty -lc -lm -lX11
> > frontends/.libs/libfrontends.a(Dialogs.o): In function
> > `GUI<ControlThesaurus, QThesaurus, OkApplyCancelReadOnlyPolicy,
> > Qt2BC>::~GUI(void)':
> > Dialogs.o(.gnu.linkonce.t._._t3GUI4Z16ControlThesaurusZ10QThesaurusZ27OkA
> >pplyCancelReadOnlyPolicyZ5Qt2BC+0x2b): undefined reference to
> > `QThesaurus::~QThesaurus(void)'
> > frontends/.libs/libfrontends.a(QThesaurus.o): In function
> > `QThesaurus::QThesaurus(ControlThesaurus &)':
> > QThesaurus.o(.text+0x54): undefined reference to `QThesaurus virtual
> > table' QThesaurus.o(.text+0x5e): undefined reference to
> > `QThesaurus::ViewBC<Qt2BC> virtual table'
>
> I know, I get it too, and I have /zero/ idea why. I get it both with gcc
> 3.0 and 2.96-85(RH) What binutils do you use ? Mine is  2.10.90


John, Virtual functions must be defined and you forgot to define apply. After 
changing apply in the header file to

        virtual void apply() {}

it compiles and links. Starting lyx then segfaults :-(  Backtrace follows. 
Hope this helps. 

gr.ed.

#0  0x4072a806 in free () from /lib/libc.so.6
#1  0x4072a558 in malloc () from /lib/libc.so.6
#2  0x40729d3e in malloc () from /lib/libc.so.6
#3  0x40693099 in __builtin_new () from /usr/lib/libstdc++-libc6.1-2.so.3
#4  0x401d4996 in QGList::prepend () from /usr/lib/qt-2.2.3/lib/libqt.so.2
#5  0x401d4abc in QGList::insertAt () from /usr/lib/qt-2.2.3/lib/libqt.so.2
#6  0x4027a65a in qt_find_obj_child () from /usr/lib/qt-2.2.3/lib/libqt.so.2
#7  0x4027a73d in QObject::QObject () from /usr/lib/qt-2.2.3/lib/libqt.so.2
#8  0x81e3607 in Timeout::Pimpl::Pimpl () at xforms_helpers.C:48
#9  0x81d563b in Timeout::Timeout (this=0x83b2b44, msec=400, t=ONETIME)
    at Timeout.C:30
#10 0x805a9b2 in BufferView::Pimpl::Pimpl (this=0x83b2b28, __in_chrg=1, 
    b=0x83b2a70, o=0x8393600, xpos=2, ypos=65, width=684, height=416)
    at BufferView_pimpl.C:124
#11 0x805715d in BufferView::BufferView (this=0x83b2a70, o=0x8393600, xpos=2, 
    ypos=65, width=684, height=416) at BufferView.C:26
#12 0x80932f8 in XFormsView::create_form_form_main (this=0x8393600, 
width=690, height=510) at XFormsView.C:156
#13 0x8092d92 in XFormsView::XFormsView (this=0x8393600, __in_chrg=1, 
    width=690, height=510) at XFormsView.C:51
#14 0x81e2b21 in GUIRunTime::createMainView () at xforms_helpers.C:48
#15 0x80e5545 in LyXGUI::create_forms (this=0x837f098) at lyx_gui.C:271
#16 0x80e4a0f in LyXGUI::init (this=0x837f098) at lyx_gui.C:188
---Type <return> to continue, or q <return> to quit---  
#17 0x80e729b in LyX::LyX (this=0xbffff8e0, argc=0xbffff904, argv=0xbffff964)
    at ../src/lyx_main.C:115
#18 0x811ec5a in main (argc=1, argv=0xbffff964) at ../src/main.C:38
#19 0x406f0cbe in __libc_start_main () from /lib/libc.so.6



Reply via email to