Hi,

As John says, your best bet is getting a recent GCC with C++11 support
working on your box.  If that absolutely is not possible, then you could
try to use the drop in replacement for unique_ptr that is part of Boost.
http://www.boost.org/doc/libs/1_57_0/doc/html/move/reference.html#header.boost.move.unique_ptr_hpp

It is designed to work with C++03 compilers.

Regards,

--Justin

On Wed, Apr 29, 2015 at 8:34 AM, K. John Wu <[email protected]> wrote:

> Hi, Jilong,
>
> I don't have experience with SLES, here is someone talking about
> building GCC on openSUSE
> <
> http://www.linuxquestions.org/questions/linux-newbie-8/installing-gcc-4-8-2-on-opensuse-12-1-a-4175484799/
> >.
>  Hopefully, it is of some use to you.
>
> unique_ptr is a template from the Standard Template Library, you
> should be able to find it with GCC distribution.  Rather than
> extracting unique_ptr code, it might be better to get GCC 4.8 working.
>
> John
>
>
>
> On 4/28/15 6:39 PM, wang jilong wrote:
> > Hi John,
> >
> >
> >
> > I had bed experienced mysterious crashes using fastbit 1.3.8 for days.
> > With help of valgrind, we reached a conclusion that we must upgrade
> > fastbit.
> >
> >
> >
> > Since our GCC is 4.3.6, building of fastbit 2.0.1/2.0.2/1.3.9  all
> > failed. In Fastbit 2.0.1/2.0.2,  compilation errors are caused by
> > “unique_ptr”.
> >
> > (unorder_map is supported in gcc 4.3.6 via –std=c00+x)
> >
> >
> >
> > Our systems are SUSE Enterprise Server 11 (SLES 11) Patch 1, with gcc
> > 4.3.6.
> >
> > I do not have luck to get gcc 4.8.0 built on SLES11 so far.  Not sure
> > if we even need to upgrade our OS to SP3. If yes, the effort will even
> > be larger.
> >
> >
> >
> > Do you have a way to see if “unique_ptr” can be replaced by a simple
> > function that we implement ourself, so we continue to use gcc 4.3.6?
> >
> >
> >
> > Thanks
> >
> >
> >
> > Jilong Wang
> >
> >
> >
> >
> >
> >
> >
> > _______________________________________________
> > FastBit-users mailing list
> > [email protected]
> > https://hpcrdm.lbl.gov/cgi-bin/mailman/listinfo/fastbit-users
> >
> _______________________________________________
> FastBit-users mailing list
> [email protected]
> https://hpcrdm.lbl.gov/cgi-bin/mailman/listinfo/fastbit-users
>
_______________________________________________
FastBit-users mailing list
[email protected]
https://hpcrdm.lbl.gov/cgi-bin/mailman/listinfo/fastbit-users

Reply via email to