You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There seems to be a Windows-specific name collision that results from handle_t being defined as an alias for RPC_BINDING_HANDLE on Windows. I'm not sure because I am not experienced with C, but this page seems to explain the problem.
Minimal Example
Here is a minimal example required to reproduce the error.
Error message after running cmake .. and cmake --build . in the build directory:
Microsoft (R) Build Engine version 15.9.21+g9802d43bc3 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
test.c
C:\Users\Peter\Downloads\test\test.c(3): error C2040: 'handle_t': 'int' differs in levels of indirection from 'RPC_BINDING_HANDLE' [C:\Us
ers\Peter\Downloads\test\build\test.vcxproj]
Context
In case it matters, I ran into this issue while working on the language server because (after adding a semicolon in windows_support.h). CMake fails to build and gives a long list of errors, including this one. I do not know how many of the errors are cascading errors that result from this name collision. The relevant error message is
example\src-gen\reflexgame\core/reactor.h(340): error C2040: 'handle_t': 'int' differs in levels of indirect
ion from 'RPC_BINDING_HANDLE'
The text was updated successfully, but these errors were encountered:
There seems to be a Windows-specific name collision that results from
handle_t
being defined as an alias forRPC_BINDING_HANDLE
on Windows. I'm not sure because I am not experienced with C, but this page seems to explain the problem.Minimal Example
Here is a minimal example required to reproduce the error.
Directory structure:
Content of
test.c
:Content of
CMakeLists.txt
:Error message after running
cmake ..
andcmake --build .
in thebuild
directory:Context
In case it matters, I ran into this issue while working on the language server because (after adding a semicolon in
windows_support.h
). CMake fails to build and gives a long list of errors, including this one. I do not know how many of the errors are cascading errors that result from this name collision. The relevant error message isThe text was updated successfully, but these errors were encountered: