Skip to content

fix: include <cstdint> in TextEditor.h for GCC compatibility#170

Open
Yang-Junjie wants to merge 1 commit intoBalazsJako:masterfrom
Yang-Junjie:fix/gcc-compile-error
Open

fix: include <cstdint> in TextEditor.h for GCC compatibility#170
Yang-Junjie wants to merge 1 commit intoBalazsJako:masterfrom
Yang-Junjie:fix/gcc-compile-error

Conversation

@Yang-Junjie
Copy link
Copy Markdown

Problem:
The project fails to compile on Linux using gcc/g++ because uint8_t and uint64_t types are not recognized in TextEditor.h. This is likely due to different standard library header inclusion behaviors between MSVC and GCC.

Solution:
Explicitly added #include to TextEditor.h to ensure fixed-width integer types are defined across all platforms.

Changes:

Modified thrid_party/ImGuiColorTextEdit/TextEditor.h to include .

Test Environment:

OS: Linux

Compiler: g++

Build System: CMake

@Yang-Junjie
Copy link
Copy Markdown
Author

This is the compilation error message in CMake.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant