I pushed this change to master.

On Sun, Oct 27, 2013 at 9:53 AM, Lifepillar <[email protected]> wrote:

> In article <[email protected]>,
>  Ronald Ip <[email protected]> wrote:
>
> > On 26 Oct, 2013, at 5:09 am, Ronald Ip
> > <[email protected]> wrote:
> >
> > >>> Just to note: I've been building Ledger with only Clang for over a
> year
> > >>> now,
> > >>> so I suspect that it has more to do with some recent change in Clang.
> > >>>
> > >>
> > >> It looks like the recent change from 10.8 -> 10.9 is the switch from
> > >> /usr/lib/libstdc++.6.dylib to /usr/lib/libc++.1.dylib.
> > >>
> > >> I don’t understand C++ enough to know if it is this switch among
> others
> > >> that caused the failed build on 10.9/Clang.
> > >
> > > An FYI update, I switched the stdlib to libstdc++ just to see what
> happens
> > > and it compiles past the error.
> > > I know that libc++ and libstdc++ are not ABI compatible, so I’m not
> > > surprised that it fails to link with boost (built with libc++) in the
> > > linking stage.
> > >
> > > The flags I used:
> > > $ export CXXFLAGS="-stdlib=libstdc++"; export
> LDFLAGS="-stdlib=libstdc++”
> > > $ ./acprep opt update
> > > $ nice make
> > >
> > > So I guess, the resolution would be to 1) get code compatibility with
> > > libc++ or 2) compile everything, including dependencies with libstdc++.
> >
> > For what it’s worth, I found a solution. While everything looks like it
> > works, I’ve got no idea if this breaks anything else unintentionally.
> >
> > Referencing this:
> >
> http://stackoverflow.com/questions/13148513/does-stdmap-require-the-comparator
> > s-operator-to-be-const/
> >
> > I made changes in `src/account.h` and `src/commodity.h` (see attached
> patch).
>
> Good catch! The patch works for me, too!
>
> Life
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Ledger" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Craig, Corona De Tucson, AZ
enderw88.wordpress.com

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to