Re: monolithic build linking problems

2008-03-02 Thread Pavel Sanda
> > Right, all files are included in the same file with monolithic builds so > the anonymous namespace will not solve Pavel's problem. > >> why dont we put it in header Abdel ? > > I just put them inside the functions. This should solve your problem. yes this will solve it too. thanks, pavel

Re: monolithic build linking problems

2008-03-02 Thread Abdelrazak Younes
Pavel Sanda wrote: Try putting both of these variables in an anonymous namespace. hm, dont understand why this should help. Same variable in the same namespace. That's what causes the conflict. yes. Anonymous namespace, I think, has file scope. but thats where i dont follow you.

Re: monolithic build linking problems

2008-03-02 Thread Pavel Sanda
>>> Try putting both of these variables in an anonymous namespace. >>> >> >> hm, dont understand why this should help. >> >> > Same variable in the same namespace. That's what causes the conflict. yes. > Anonymous namespace, I think, has file scope. but thats where i dont follow you. to

Re: monolithic build linking problems

2008-03-01 Thread rgheck
Pavel Sanda wrote: GuiPainter.cpp: At global scope: GuiPainter.cpp:433: error: redefinition of 'const int lyx::frontend::d' GuiFontMetrics.cpp:180: error: 'const int lyx::frontend::d' previously defined here Try putting both of these variables in an anonymous namespace. hm, d

Re: monolithic build linking problems

2008-03-01 Thread Pavel Sanda
>> GuiPainter.cpp: At global scope: >> GuiPainter.cpp:433: error: redefinition of 'const int lyx::frontend::d' >> GuiFontMetrics.cpp:180: error: 'const int lyx::frontend::d' previously >> defined here >> >> > Try putting both of these variables in an anonymous namespace. hm, dont understand wh

Re: monolithic build linking problems

2008-03-01 Thread rgheck
i fixed this. anyway there is still problem: GuiPainter.cpp: At global scope: GuiPainter.cpp:433: error: redefinition of 'const int lyx::frontend::d' GuiFontMetrics.cpp:180: error: 'const int lyx::frontend::d' previously defined here Try putting both of these variables in an anonymous nam

Re: monolithic build linking problems

2008-03-01 Thread Pavel Sanda
> This is probably a consequence of some change I made, but I don't know > anything about monolithic builds (do I do them?) or where information no, unless you use --enable-monolithic options in configure, you dont. they are more speedy in case you want to build lyx from a clean tree - all cpp

Re: monolithic build linking problems

2008-03-01 Thread rgheck
Pavel Sanda wrote: hi, i started having these linking errs when using monolithic builds... This is probably a consequence of some change I made, but I don't know anything about monolithic builds (do I do them?) or where information regarding them is contained. It looks as though maybe Inset

monolithic build linking problems

2008-02-29 Thread Pavel Sanda
hi, i started having these linking errs when using monolithic builds... ./.libs/liblyxcore.a(TextClass.o): In function `__static_initialization_and_destruction_0': /home/installer/lyx/dbg_1.6/src/TextClass.cpp:112: undefined reference to `lyx::InsetLayout::InsetLayout()' ./.libs/liblyxcore.a(Tex