2.3.x does not compile on Windows
Kornel Benko
kornel at lyx.org
Thu Apr 11 08:20:34 UTC 2024
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
In the function lyxgetknowncmakestd() we use the info from cmake to get the correct c++
level (if the cmake version >= 3.9)
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.
Kornel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: Digitale Signatur von OpenPGP
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20240411/e2feffd1/attachment.asc>
More information about the lyx-devel
mailing list