YimMenu/HorseMenu

[Build]: Compiler Error C2131

HELLLO1073 opened this issue · 5 comments

Describe the build issues

Every time I try and build the project with cmake in visual studio I get a C2131 error on every Pattern call only just got into cmake so was wondering if anyone knew a fix to it, have a image below.

Screenshots and/or Logs

Capture

IDE/Compiler

Visual Studio 2022

Additional context

Haven't modified anything, I've tried many things to fix it.

HorseMenu Source Code

  • I've confirmed this is an issue with building unmodified HorseMenu.

That shouldn't cause the compiler to stop. I have the same errors, but it compiles without any problems.

This is an intellisense error and not a build error. The Visual Studio Intellisense engine does not support all the latest features of the C++ coding language. Because HorseMenu makes use of new features in the C++ standard these look like errors.

You can safely ignore these and build the project.

This is an intellisense error and not a build error. The Visual Studio Intellisense engine does not support all the latest features of the C++ coding language. Because HorseMenu makes use of new features in the C++ standard these look like errors.

You can safely ignore these and build the project.

Every time I try building it it fails on the C2131 error and stops compiling with the line
"FAILED: CMakeFiles/HorseMenu.dir/src/core/renderer/Renderer.cpp.obj - ninja: build stopped: subcommand failed."

I use MSVC 19.30.30709.0 and cmake version 3.29.6

This is an intellisense error and not a build error. The Visual Studio Intellisense engine does not support all the latest features of the C++ coding language. Because HorseMenu makes use of new features in the C++ standard these look like errors.
You can safely ignore these and build the project.

Every time I try building it it fails on the C2131 error and stops compiling with the line "FAILED: CMakeFiles/HorseMenu.dir/src/core/renderer/Renderer.cpp.obj - ninja: build stopped: subcommand failed."

I use MSVC 19.30.30709.0 and cmake version 3.29.6

Just use a precompiled binary if you can from the releases tab.

Fixed it thanks for the help!