GtkRadiant
GtkRadiant copied to clipboard
Build errors in visual studio 2022
Compiling a fresh download of gtkradiant using the instructions results in a compilation error when compiling in Release mode.
1>(compiling source file 'main.cpp')
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\shobjidl_core.h(33231,43): error C3484: syntax error: expected '->' before the return type
1>(compiling source file 'main.cpp')
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\shobjidl_core.h(33231,43): error C3613: missing return type after '->' ('int' assumed)
1>(compiling source file 'main.cpp')
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\shobjidl_core.h(33231,43): error C3646: 'm_pfnDeleteKey': unknown override specifier
1>(compiling source file 'main.cpp')
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\shobjidl_core.h(33232,24): error C2062: type 'int' unexpected
1>(compiling source file 'main.cpp')
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\shobjidl_core.h(33232,38): error C2238: unexpected token(s) preceding ';'
1>(compiling source file 'main.cpp')
This appears to be caused by the macro
#define DeleteKey __ENTITYTABLENAME.m_pfnDeleteKey on line 99 of ientity.h
It's colliding with the function DeleteKey from the shobjidl_core header file. This error only occurs in Release and not Debug
Can confirm it still happens as of 7.07.2025. Replacing the name of the macro and all of the mentions with DeleteKey2 or something else allows the project to compile.