nommiin/ImGui_GM

Can't compile DLL

Opened this issue · 1 comments

First of all, thank you for this work. But I have a problem.
I opened the C++ project with VS2022 to add the Freetype feature. By the way, this part was quite challenging. I think it would be great if some more information about the C part is given.
All files and includes are ok. But when I try to compile 'imgui_gm.cpp' is on line 98;
BufferWrite(g_CommandBuffer, (texture & 0xF) != TextureType_Raw ? texture : 0, cmd_offset);
gives some errors.

Severity Code Description Project File Line Suppression State
Error (active) E2140 expression must have integral or unscoped enum type imgui_gm E:\ImGui_GM-main\dll\imgui_impl_gm.cpp 98
Error C2296 '&': not valid as left operand has type 'ImTextureID' imgui_gm E:\ImGui_GM-main\dll\imgui_impl_gm.cpp 98
Error C2672 'BufferWrite': no matching overloaded function found imgui_gm E:\ImGui_GM-main\dll\imgui_impl_gm.cpp 98

This issue seems to be more related to libraries.

My compile settings are:
Release x64

Toolset v143
C++ standard : ISO C++ 14 standard
C Lang default (Legacy MSVC)

This time when I tried to compile by deleting the part that gave the error.
'Severity Code Description Project File Line Suppression State
Error MSB3073 The command "node ..\tools\brief\main.js
:VCEnd" exited with code 9009. imgui_gm C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets 159
'
I get this error