help-bison
[Top][All Lists]
Advanced

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

Re: glr2.cc compile errors under Windows


From: Akim Demaille
Subject: Re: glr2.cc compile errors under Windows
Date: Sun, 21 Nov 2021 21:33:39 +0100


> Le 21 nov. 2021 à 20:01, Jot Dot <jotdot@shaw.ca> a écrit :
> 
> 1>D:\data\c\gen\Gen Parser\parser.cpp(987,42): warning C4003: not enough 
> arguments for function-like macro invocation 'max'
> 1>D:\data\c\gen\Gen Parser\parser.cpp(987,42): error C2589: '(': illegal 
> token on right side of '::'
> 
> And the generated code that causes this error is:
> 
>  template<typename T>
>  const std::ptrdiff_t strong_index_alias<T>::INVALID_INDEX =
>    std::numeric_limits<std::ptrdiff_t>::max ();

That's the usual BS of windows.h.

https://stackoverflow.com/questions/11544073/how-do-i-deal-with-the-max-macro-in-windows-h-colliding-with-max-in-std

https://stackoverflow.com/questions/11040133/what-does-defining-win32-lean-and-mean-exclude-exactly





reply via email to

[Prev in Thread] Current Thread [Next in Thread]