2.3.x does not compile on Windows

Yu Jin technikmagma at gmail.com
Wed May 1 15:50:01 UTC 2024


Am Mi., 1. Mai 2024 um 13:36 Uhr schrieb Jean-Marc Lasgouttes:

> Le 01/05/2024 à 13:32, Jean-Marc Lasgouttes a écrit :
> > Le 01/05/2024 à 11:54, Yu Jin a écrit :
> >> 2.4 compiles with c++20 standard. The Problem with 2.3 are the
> >> "unary_function"s, which seem to require c++11(?) and as far as I can
> >> see the current Visual Studio just can not do that, c++14 is minimum.
> >
> > Reading this:
> >    https://en.cppreference.com/w/cpp/utility/functional/unary_function
> > I would think that it works with C++14 and was remove din C++17 only.
>
> Actually, the function is in <functional>, which is not included in
> Format.cpp.
>
>
> https://learn.microsoft.com/en-us/answers/questions/1348183/std-binary-function-is-missing-in-msvc-14-37-32822


You are right, simply adding
#include <functional>
to Format.cpp resolves the errors.
-- 
  Eugene
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20240501/a08804ef/attachment.html>


More information about the lyx-devel mailing list