Missing header using gcc-13

Pavel Sanda sanda at lyx.org
Mon Jun 27 14:55:51 UTC 2022


On Wed, Jun 22, 2022 at 11:00:18AM +0100, José Abílio Matos wrote:
> Hi,
>   just for fun, I have been compiling lyx with gcc-latest (gcc 13 in development). This is the error I get:
> 
> /home/jamatos/lyx/lyx.anon/src/tex2lyx/Parser.cpp: In member function ???void lyx::Parser::tokenize_one()???:
> /home/jamatos/lyx/lyx.anon/src/tex2lyx/Parser.cpp:857:60: error: ???uint32_t??? does not name a type
> 857 |                 cerr << "ignoring a char: " << static_cast<uint32_t>(c) << "\n";
> |                                                            ^~~~~~~~
> /home/jamatos/lyx/lyx.anon/src/tex2lyx/Parser.cpp:20:1: note: ???uint32_t??? is defined in header ???<cstdint>???; did you forget to ???#include <cstdint>????
> 19 | #include <iostream>
> +++ |+#include <cstdint>
> 20 | 
> 
> This is the only problem found, other than that everything works as expected. :-)

Does including <cstdint> fix the problem?
Pavel


More information about the lyx-devel mailing list