This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Disable libcpp With GCC 4.8?
- From: Ian Lance Taylor <iant at google dot com>
- To: Cyd Haselton <chaselton at gmail dot com>
- Cc: "gcc-help at gcc dot gnu dot org" <gcc-help at gcc dot gnu dot org>
- Date: Fri, 25 Oct 2013 08:17:40 -0700
- Subject: Re: Disable libcpp With GCC 4.8?
- Authentication-results: sourceware.org; auth=none
- References: <CAHu5PrbCvk8Vkt2byYu84tuAsb0vHE9PnQxp-Z7Fgyg2NGvwyQ at mail dot gmail dot com> <CAKOQZ8yzFWEskJ7F0+k7OYgF5v4Os-eL7ET-hK5wZmY2fUObyA at mail dot gmail dot com> <CAHu5PraGPfn-RRWXWQCY444-5iKDN-oPHBqxfJ9XRaFOUHsOfg at mail dot gmail dot com>
On Fri, Oct 25, 2013 at 7:20 AM, Cyd Haselton <chaselton@gmail.com> wrote:
>
> If this library is for the C/C++ preprocessor, is it possible that the
> error could be due to Android's very limited support for C++?
I wouldn't think so. What we're talking about here is the compiler
itself, and in any case this bit is just ordinary C.
>> In the meantime you can fix the problem by editing the GCC sources to
>> do something like
>> time_t t = (time_t) st->st_mtime;
>> tb = localtime (&t);
>
> Ergh. Adding just this throws an 'undeclared in scope' error.
That doesn't make much sense.
> Guessing the correct declaration is something like this
> struct time_t *t = NULL;
No, time_t is a typedef.
> throws another 'cannot convert' error...specifically cannot convert
> 'int**' to 'const time_t*.
> The overall problem here is that I need familiarity with C, which I
> decidedly do not have.
Yes, sorry, you will need to know C to make this kind of change.
Ian