TTimo / GtkRadiant

The open source, cross platform level editor for idtech games
http://icculus.org/gtkradiant/
Other
590 stars 156 forks source link

Build errors in visual studio 2022 #703

Open jkinz3 opened 2 weeks ago

jkinz3 commented 2 weeks ago

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