Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: LLONG_MAX not available from c++



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? Also, to ensure stack
unwinding for C, -fexceptions should be enough.

Joerg


Home | Main Index | Thread Index | Old Index