Have you tried adding "-std=c99" to the CFLAGS declaration in the Makefile?


Le lun. 1 févr. 2021 à 23:31, William Bean <[email protected]> a écrit :

> I've been trying to install Beancount on my new shared hosting account
> today and haven't had any luck. I ended up needing to do a git clone and
> manual install because I couldn't get pip to work. I do have compile access
> and it seemed to almost install. The os is Red Hat 4.4.7-23 for reference.
> Here are the errors I ended up with:
>
> beancount/parser/tokens.c: In function 'strtonl':
> beancount/parser/tokens.c:174: error: 'for' loop initial declarations are
> only allowed in C99 mode
> beancount/parser/tokens.c:174: note: use option -std=c99 or -std=gnu99 to
> compile your code
> At top level:
> cc1: warning: unrecognized command line option "-Wno-unused-result"
> error: command '/usr/bin/gcc' failed with exit status 1
>
> Any ideas on how I can get this to work?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Beancount" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/beancount/01a20515-b0cc-4ee0-ad9c-86e804eb4cffn%40googlegroups.com
> <https://groups.google.com/d/msgid/beancount/01a20515-b0cc-4ee0-ad9c-86e804eb4cffn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Sincerely yours, Altynbek

-- 
You received this message because you are subscribed to the Google Groups 
"Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/CAOm1zMOUwhaUhYSC6CY4OD4wujrbA2Y2ePgeZUBJSqY9Jw6QhQ%40mail.gmail.com.

Reply via email to