2.3.x does not compile on Windows

Yu Jin technikmagma at gmail.com
Thu Apr 11 15:13:20 UTC 2024


Am Do., 11. Apr. 2024 um 10:17 Uhr schrieb Kornel Benko <kornel at lyx.org>:

> Am Wed, 10 Apr 2024 21:02:40 +0200
> schrieb Yu Jin <technikmagma at gmail.com>:
>
> > Am Mi., 10. Apr. 2024 um 16:02 Uhr schrieb Jean-Marc Lasgouttes :
> >
> > > Le 09/04/2024 à 06:30, Yu Jin a écrit :
> > > >     Normally, unary_function and binary_function only disappeared in
> > > C++17.
> > > >     Does C++14 work?
> > > >
> > > > Unfortunately not.
> > >
> > > Do you select the C++ level in Visual Studio or in cmake?
> > >
> >
> > I don't see any option in CMake regarding c++ level, I just execute
> > configure and as far as I can see it does not set any explicit c++ level
> > and default in the current Visual Studio is c++14 and there seems no way
> to
> > use c++11.
> >
> https://developercommunity.visualstudio.com/t/Need-C11-in-visual-studio-not-C11-or/10081597?space=8&ftype=idea&q=visualizer
> > Manually setting '/std:c++11' command line switch also does not work, it
> > actually says that this switch is unknown and will be ignored -> so again
> > c++14 is used. And installing an older Visual Studio (Community) is also
> > not an option, because Microsoft does not offer that (only Professional
> and
> > Enterprise), so rip lyX 2.3.8 on Windows I guess, unless someone decides
> to
> > cross compile it using MinGW or so.
>
>
> Please check ./development/cmake/modules/LyXMacros.cmake:471
>

On the 2.3.x branch there LyXMacros.cmake file only contains  403 lines.

In the function lyxgetknowncmakestd() we use the info from cmake to get the
> correct c++
> level (if the cmake version >= 3.9)
>

On the 2.3.x branch I can't find any "lyxgetknowncmakestd".
I have CMake 3.28.0

>
> OTOH, if your cmake version is less 3.9, we try to check for 98, 11 and 14.
> If that is the case for you, you could select your own values.
>


-- 
  Eugene
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20240411/d0b5f162/attachment.html>


More information about the lyx-devel mailing list