Re: Linking issue

2012-08-15 Thread Jürgen Spitzmüller
2012/8/15 Abdelrazak Younes: > Yes, same idiom should be used: theLaTeXFonts() > As a matter of fact, all singletons are gathered in a single class, > maybe you should also follow this trend. Thanks. I've implemented the function now to LyX.cpp following the model of the other singleton access fun

Re: Linking issue

2012-08-14 Thread Abdelrazak Younes
On Tue, Aug 14, 2012 at 10:10 PM, Pavel Sanda wrote: > Abdelrazak Younes wrote: >> Maybe it was optimized out by the linker. > > Yes this will the problem. If object is in library without being called it > would be omitted > unless you use --whole-archive for ld. So either one need to use it in c

Re: Linking issue

2012-08-14 Thread Pavel Sanda
Abdelrazak Younes wrote: > Maybe it was optimized out by the linker. Yes this will the problem. If object is in library without being called it would be omitted unless you use --whole-archive for ld. So either one need to use it in core or move the definition to qt4 library. Or use function to o

Re: Linking issue

2012-08-14 Thread Abdelrazak Younes
On 14/08/2012 16:54, Jürgen Spitzmüller wrote: I seem to be blind. Why does the attached patch fail to link with autotools? The error I get is CXXLD lyx frontends/qt4/liblyxqt4.a(GuiDocument.o): In function `lyx::frontend::GuiDocument::updateFontlist()': /home/jspitzm/lyx/lyx-devel/src/frontend

Re: Linking issue

2012-08-14 Thread Richard Heck
On 08/14/2012 10:54 AM, Jürgen Spitzmüller wrote: I seem to be blind. Why does the attached patch fail to link with autotools? The error I get is CXXLD lyx frontends/qt4/liblyxqt4.a(GuiDocument.o): In function `lyx::frontend::GuiDocument::updateFontlist()': /home/jspitzm/lyx/lyx-devel/src/front