Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: LLONG_MAX not available from c++
On Fri, Mar 31, 2023 at 02:46:18PM +0200, Joerg Sonnenberger wrote:
> Am Fri, Mar 31, 2023 at 02:39:40PM +0200 schrieb Thomas Klausner:
> > On Fri, Mar 31, 2023 at 02:35:38PM +0200, Martin Husemann wrote:
> > > Which options does it pass to g++ ?
> >
> > Good point, but it's not the compiler, it's lua itself:
> >
> > tar xvzf lua-5.4.4.tar.gz
> > cd lua-5.4.4/src
> > c++ lbaselib.c
> >
> > and see it fail.
> >
> > In file included from lua.h:16,
> > from lbaselib.c:18:
> > luaconf.h:557:2: error: #error "Compiler does not support 'long long'. Use option '-DLUA_32BITS' or '-DLUA_C89_NUMBERS' (see file 'luaconf.h' for details)"
> > 557 | #error "Compiler does not support 'long long'. Use option '-DLUA_32BITS' \
> > | ^~~~~
>
> Make sure c++ with using at least -std=c++11?
Same error, also with c++17 and gnu++17. Probably lua does something
weird.
> Also, to ensure stack
> unwinding for C, -fexceptions should be enough.
Thanks for the information. I don't expect I'd get MAME to change to
that though.
Thomas
Home |
Main Index |
Thread Index |
Old Index