-
-
Notifications
You must be signed in to change notification settings - Fork 10.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
redundant #include of module 'std.depr.string_h' appears within namespace 'ImStb' #4791
Comments
Neither STB nor Dear ImGui libraries support modules currently, therefore you should not try to build Dear ImGui with // imgui.cppm
module;
#include "imgui.h"
export module imgui; |
Thank you @rokups . |
The issue is that the Lines 206 to 208 in f1781c2
Line 390 in f1781c2
I'm not compiling Dear ImGui as a module, but using Clang Modules, which performs include translation on #include <string.h> .Can I provide a PR to close and reopen the namespace between the #include ?
|
Since it seems to only happen here I would define the memmove define the lib is using to avoid the include. |
I will leave that to a more brave soul. |
I meant that just specifying “ #define STB_TEXTEDIT_memmove memmove” on our end would completely side-step the problem, since we already have included the header and have access to memmove. |
I understand. |
Your readjustment seems to be doing something else (you removed include from stb_textedit.h) |
Dear ImGui 1.86 WIP (18502)
sizeof(size_t): 8, sizeof(ImDrawIdx): 2, sizeof(ImDrawVert): 20
define: __cplusplus=202002
define: IMGUI_DISABLE_OBSOLETE_FUNCTIONS
define: linux
define: GNUC=4
define: clang_version=12.0.1
define: IMGUI_HAS_VIEWPORT
define: IMGUI_HAS_DOCK
io.BackendPlatformName: imgui_impl_glfw
io.BackendRendererName: imgui_impl_opengl3
Version/Branch of Dear ImGui:
Version: Dear ImGui 1.86 WIP (18502)
Branch: docking
Back-end/Renderer/Compiler/OS
io.BackendPlatformName: imgui_impl_glfw
io.BackendRendererName: imgui_impl_opengl3
Compiler: Clang 12
Operating System: Linux Mint 19.3
My Issue/Question:
I am having a strange compilation error from
imstb_textedit.h:387
The error disappears if I comment that line:
imgui/imstb_textedit.h
Line 387 in fc198fe
Screenshots/Video
Standalone, minimal, complete and verifiable example:
It is complicated to isolate it, it is part of a big project, but I updated ImGui recently and today I deleted the build and cache dirs and rebuild everything and i get this error.
I am not sure what is happening, maybe someone have seen this before.
The text was updated successfully, but these errors were encountered: