Menu

#2493 GCC 15/Qt - ScintillaTypes.h: error: ‘intptr_t’ does not name a type

Bug
closed-fixed
nobody
5
2026-03-25
2025-12-26
No

When trying to compile the Qt version (qt/ScintillaEdit) with GCC 15.2.0 on Ubuntu 25.10, there's several errors, starting with

In file included from ScintillaDocument.cpp:13:
../../include/ScintillaTypes.h:700:18: error: intptr_t does not name a type

This seems to be related to #2458 / c7ffad where this one files seems to have been missed.
The following patched fixed the issue for me:

--- a/qt/ScintillaEdit/ScintillaDocument.cpp    Mon Dec 22 09:04:53 2025 +1100
+++ b/qt/ScintillaEdit/ScintillaDocument.cpp    Fri Dec 26 17:06:15 2025 +0100
@@ -9,6 +9,7 @@
 #include <set>
 #include <optional>
 #include <memory>
+#include <cstdint>

 #include "ScintillaTypes.h"
 #include "ScintillaMessages.h"

Discussion

  • Neil Hodgson

    Neil Hodgson - 2025-12-27
    • labels: --> scintilla, Qt
    • status: open --> open-fixed
     
  • Neil Hodgson

    Neil Hodgson - 2025-12-27

    Committed with [0b6476].

    Original issue was [#2458].

     

    Related

    Bugs: #2458
    Commit: [0b6476]

  • Gary Wang

    Gary Wang - 2026-02-13

    Maybe the correct fix is to add the #include <cstdint> to ScintillaTypes.h instead of ScintillaDocument.cpp? Since ScintillaTypes.h is the place we actually require uintptr_t and intptr_t.

     

    Last edit: Gary Wang 2026-02-13
    • Neil Hodgson

      Neil Hodgson - 2026-02-13

      Scintilla tries to avoid complex buggy nests of header dependencies by not using #include inside header files and specifying a global order of inclusion in scripts/HeaderOrder.txt.

       
  • Neil Hodgson

    Neil Hodgson - 2026-03-25
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB