can't compile int vs2022 #6867
wulaiRen
started this conversation in
Build/Link/Run/Fonts issues ONLY!
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
im new in imgui. I deployed the latest version with opengl in vs2022, but it can't compiled. So i selected an another version, 1.8.7, it worked!
here are the error information:
1>C:\Users\Administrator\Desktop\learnOpenGL\firstOpenGL\FirstOpenGL\src\vendor\imgui\imgui_impl_opengl3.h(34,1): error C2086: “int IMGUI_IMPL_API”: 重定义
1>C:\Users\Administrator\Desktop\learnOpenGL\firstOpenGL\FirstOpenGL\src\vendor\imgui\imgui_impl_opengl3.h(33,1): message : 参见“IMGUI_IMPL_API”的声明
1>C:\Users\Administrator\Desktop\learnOpenGL\firstOpenGL\FirstOpenGL\src\vendor\imgui\imgui_impl_opengl3.h(35,16): error C2144: 语法错误:“void”的前面应有“;”
1>C:\Users\Administrator\Desktop\learnOpenGL\firstOpenGL\FirstOpenGL\src\vendor\imgui\imgui_impl_opengl3.h(35,25): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>C:\Users\Administrator\Desktop\learnOpenGL\firstOpenGL\FirstOpenGL\src\vendor\imgui\imgui_impl_opengl3.h(35,1): error C2086: “int IMGUI_IMPL_API”: 重定义
1>C:\Users\Administrator\Desktop\learnOpenGL\firstOpenGL\FirstOpenGL\src\vendor\imgui\imgui_impl_opengl3.h(33,1): message : 参见“IMGUI_IMPL_API”的声明
1>C:\Users\Administrator\Desktop\learnOpenGL\firstOpenGL\FirstOpenGL\src\vendor\imgui\imgui_impl_opengl3.h(36,16): error C2144: 语法错误:“void”的前面应有“;”
Beta Was this translation helpful? Give feedback.
All reactions