Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build errors in visual studio 2022 #703

Open
jkinz3 opened this issue Nov 4, 2024 · 0 comments
Open

Build errors in visual studio 2022 #703

jkinz3 opened this issue Nov 4, 2024 · 0 comments

Comments

@jkinz3
Copy link

jkinz3 commented Nov 4, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant