<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2014-09-27 20:57 GMT+02:00 Michael Stahl <span dir="ltr"><<a href="mailto:mstahl@redhat.com" target="_blank">mstahl@redhat.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="">On 27/09/14 16:05, Zolnai Tamás wrote:<br>
> 2014-09-27 15:23 GMT+02:00 Miklos Vajna <<a href="mailto:vmiklos@collabora.co.uk">vmiklos@collabora.co.uk</a><br>
</span>> <mailto:<a href="mailto:vmiklos@collabora.co.uk">vmiklos@collabora.co.uk</a>>>:<br>
<span class="">><br>
>     On Sat, Sep 27, 2014 at 08:26:38AM +0200, Zolnai Tamás<br>
</span><span class="">>     <<a href="mailto:zolnaitamas2000@gmail.com">zolnaitamas2000@gmail.com</a> <mailto:<a href="mailto:zolnaitamas2000@gmail.com">zolnaitamas2000@gmail.com</a>>> wrote:<br>
>     > So the only question is:<br>
>     > Is it possible to replace the 4.3.1 and 4.3.2 linux packages with new ones<br>
>     > which are compiled with newer compilers? (expecting this is the problem)<br>
>     > To fix the bug mentioned above.<br>
><br>
>     Isn't it possible to stick to boost::shared_ptr on -4-3, given that's<br>
>     what other code does?<br>
><br>
><br>
> It's the collada2gltf code which uses std::shared_ptr at many places so<br>
> it would be much work to replace all of them with boost::shared_ptr, but<br>
> actually can be done if necessary. I just thought packages are created<br>
> with newer compilers, since they generate more better output (in theory).<br>
> Other thing is that I need to know whether this is the problem indeed.<br>
> So can I know what compilers are used for packages? Are they support<br>
> std::shared_ptr?<br>
<br>
</span>for LO 4.3 and earlier releases the RHEL5 gcc is used, i don't remember<br>
if it is gcc 4.1 or 4.4; we're only switching to a C++11 compiler for LO<br>
4.4.<br>
<br>
actually most users will use the distro provided LO packages anyway and<br>
those don't suffer from our ancient upstream RHEL5 baseline.<br>
<br>
anyway, std::shared_ptr and boost::shared_ptr should be mostly the same,<br>
so "find ... | xargs sed -i ..." should be able to fix things up quite<br>
quickly to get a patch for the 4.3 branch.<br></blockquote><div><br></div><div>I tried it an it came out there are other C++11 stuff in the code. I tried to replace them, but the compiler does not help me with finding C++11 code. When I compile with --std=c++03 flag, compiler just write out:<br>error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.<br></div><div>Is there any option to avoid this general error and force the compiler to try the older standard.<br><br></div><div>Thanks,<br></div><div>Tamás<br></div></div><br></div></div>