YimMenu / HorseMenu

HorseMenu, a beta-stage mod menu for Red Dead Redemption 2 and Red Dead Online, inspired by YimMenu, that protects against crashes and enhances your experience.
72 stars 35 forks source link

[Build]: Compiler Error C2131 #179

Closed HELLLO1073 closed 3 months ago

HELLLO1073 commented 3 months ago

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

tuyilmaz commented 3 months ago

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

Yimura commented 3 months ago

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.

HELLLO1073 commented 3 months ago

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

Rxann commented 3 months ago

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.

HELLLO1073 commented 3 months ago

Fixed it thanks for the help!