Skip to content

Build errors in visual studio 2022 #703

Description

@jkinz3

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions