Patoke / re-plants-vs-zombies

A project to rebuild all functionality via reverse engineering from the GOTY version of Plants VS Zombies (and expand upon it)
Creative Commons Zero v1.0 Universal
93 stars 15 forks source link

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

Open zerothecat4564 opened 8 months ago

zerothecat4564 commented 8 months ago

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 commented 8 months ago

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 commented 8 months ago

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

Adnini983 commented 2 months ago

改完代码后编译依然不通过 exe仍然无法输出 捕获 log1.txt