[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lyx-devel
Subject:    Missing header using gcc-13
From:       José_Abílio Matos <jamatos () lyx ! org>
Date:       2022-06-22 10:00:18
Message-ID: 3619270.MHq7AAxBmi () griffin
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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. :-)

-- 
José Abílio


[Attachment #5 (unknown)]

<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Hi,</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&nbsp; just for \
fun, I have been compiling lyx with gcc-latest (gcc 13 in development). This is the \
error I get:</p> <br /><p \
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">/home/jamatos/lyx/lyx.anon/src/tex2lyx/Parser.cpp: \
In member function ‘void lyx::Parser::tokenize_one()':</p> <p \
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">/home/jamatos/lyx/lyx.anon/src/tex2lyx/Parser.cpp:857:60: \
error: ‘uint32_t' does not name a type</p> <p \
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">857 \
|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
cerr &lt;&lt; &quot;ignoring a char: &quot; &lt;&lt; static_cast&lt;uint32_t&gt;(c) \
&lt;&lt; &quot;\n&quot;;</p> <p \
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">|&nbsp;&nbsp;&nbsp; \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n \
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs \
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
^~~~~~~~</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">/home/jamatos/lyx/lyx.anon/src/tex2lyx/Parser.cpp:20:1: \
note: ‘uint32_t' is defined in header ‘&lt;cstdint&gt;'; did you forget to \
‘#include &lt;cstdint&gt;'?</p> <p \
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">19 | #include \
&lt;iostream&gt;</p> <p \
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">+++ |+#include \
&lt;cstdint&gt;</p> <p \
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">20 | </p> <br /><p \
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">This is the only \
problem found, other than that everything works as expected. :-)</p> <br /><p \
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">-- </p> <p \
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">José Abílio</p> \
</body> </html>



-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic