>
> 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
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.
>>> 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
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
>> 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
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
> 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
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
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