Skip to content

SDL2/OpenGL3 compile error #8751

@adam-lafontaine

Description

@adam-lafontaine

Version/Branch of Dear ImGui:

Version 1.92.1, Branch: master

Back-ends:

imgui_impl_sdl2.cpp + imgui_impl_opengl3.cpp

Compiler, OS:

Linux (Ubuntu 20.04) + GCC (g++-11)

Full config/build information:

No build. Compile error.

Details:

Property name 'Status' of struct ImTextureData in imgui.h conflicts with '#define Status int' defined in /usr/include/X11/Xlib.h

GCC error:
.../imgui/backends/imgui_impl_opengl3.cpp:541:22: error: expected unqualified-id before ‘int’
541 | if (tex->Status != ImTextureStatus_OK)

No issue when using the SDL3/OpenGL3 backends

Screenshots/Video:

No response

Minimal, Complete and Verifiable Example code:

None.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions