conflicting declaration khronos_uint64_t #4514
Replies: 4 comments 10 replies
-
@vassilcom Can you expect how your compilation unit (1 source file) can use BOTH Glad and |
Beta Was this translation helpful? Give feedback.
-
That's my wrapper for OpenGL "OpenGLWrapper.h": #ifdef WM_SDL and how I include headers: `#include "imgui.h" #ifdef WM_GLFW #include "imgui_impl_opengl3.h" #ifdef WM_GLFW #include "OpenGLWrapper.h"` I'll try further to find the reason, and will post it here if succeeded |
Beta Was this translation helpful? Give feedback.
-
(EDIT: This answer is based on the modifications from e3988a8, the commit after the one you mentioned. This commit amends the backend to allow you to tell Dear ImGui that you have your own custom loader, so the stripped one won't be included.)
This macro is no longer checked by the OpenGL 3 backend, so that's why it's always including Here's the section in the OpenGL3 backend that includes the stripped loader: imgui/backends/imgui_impl_opengl3.cpp Lines 112 to 122 in e3988a8 The |
Beta Was this translation helpful? Give feedback.
-
Aidan: they should not need to use the CUSTOM define thats for way more advanced use cases. Our backend use its own loader. User code can use the loader of their choice.
It is still unconfirmed how/why user code need to include both their loader and ours in a same source file. One reason i can see is they are using unity/amalgamated builds?
|
Beta Was this translation helpful? Give feedback.
-
Hello,
After Commit: 459de65 on Aug 19 2021 by Rokas Kupstys ( OpenGL3: Embed our own minimal GL loader based on gl3w and use it in SDL/GLFW examples.) I'm facing an compiling error on Linux (glad + sdl2/glfw):
imgui_impl_opengl3_loader.h:57:32: error: conflicting declaration ‘typedef long long int khronos_int64_t’
libs/glad/include/KHR/khrplatform.h:152:33: note: previous declaration as ‘typedef int64_t khronos_int64_t’
Does anyone have any experience in resolving this issue maybe?
Regards,
Vasili
Beta Was this translation helpful? Give feedback.
All reactions