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

When trying to compile a build in visual studio 2022 it gives this error #14

Open
zerothecat4564 opened this issue Mar 7, 2024 · 2 comments

Comments

@zerothecat4564
Copy link

I tried to compile a build debug from the main branch and I got this error all this in visual studio 2022
Just clone the repo and try to compile as the instructions said
2024-03-07 15_22_54-re-plants-vs-zombies-vanilla - Microsoft Visual Studio

I also leave this here since I have no idea where to report it, I tried the minerscale fork and tried to compile when doing so everything seemed to work fine until I got an error with vulkan so I installed the vulkan sdk and it was fixed but when I put compile it the game stayed on a black screen with sound the game seems to work but it does not render
I say it here in the hope that Minerscale will look at it and also if you read this add a place to your fork where reporting bugs would be useful

@Patoke
Copy link
Owner

Patoke commented Mar 8, 2024

Hola buenas,

El error sucede porque el codigo intenta utilizar una funcion "builtin" del compilador que no existe en MSVC y no estas utilizando C++23

Para arreglarlo de manera rapida simplemente ve a esta linea de codigo y cambia todo eso por:

#define unreachable

Eso deberia de solucionar el problema con la compilacion

Saludos!

@zerothecat4564
Copy link
Author

Pues como aparentemente hablas español te lo menciono en ese idioma, ahora al cambiar esas líneas por lo mencionado me da un error de sintaxis con el ")" y si lo remuevo me da otro error con el ";" prácticamente en las mismas líneas que el error original
image
Perdón por molestar tanto y un saludo

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

2 participants