On Thursday, 27 January 2022 15.06.43 WET José Matos wrote:
> commit b73ab0256d113571174fed4b2a3405fe8c44d297
> Author: José Matos <jama...@lyx.org>
> Date: Thu Jan 27 15:37:45 2022 +0000
>
> Fix compilation with gcc-12
> ---
> src/insets/InsetListings.cpp | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/src/insets/InsetListings.cpp b/src/insets/InsetListings.cpp
> index 57df06e..67a0462 100644
> --- a/src/insets/InsetListings.cpp
> +++ b/src/insets/InsetListings.cpp
> @@ -41,6 +41,7 @@
> #include "frontends/alert.h"
> #include "frontends/Application.h"
>
> +#include <cstring>
> #include <regex>
> #include <sstream>
@Riki (or any other Fedora user), in case you are interested, this is my work
flow:
Install gcc-latest from copr:
https://copr.fedorainfracloud.org/coprs/jwakely/gcc-latest/
Configure lyx to use it:
$ </path/to/lyx/>configure --with-version-suffix=-devel
CC=/opt/gcc-latest/bin/gcc CXX=/opt/gcc-latest/bin/g++
And that is it. :-)
The previous patch was all that it was required to compile lyx-2.4 with gcc-12.
:-)
--
José Abílio
--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel