johnpayne-dev/MinecraftC

Can't launch or build

GamerHammer2K4F647Ultimate opened this issue · 12 comments

So, i tried building, that did not work(i will say something about that), and then I've thought "you know what, lets get the prebuilt", i downloaded the prebuilt one, and this is the error i get(after getting every dll for it): The application could not start properly (0xc000007b). Click OK to close the application.

The building for me just fails with these errors:
image

It appears that header is only available on high-dpi devices windows 8 or later, try commenting it out as a temporary fix

I did exactly that, but now I get 9 errors

image

Changed NAN to 0, but now, from 9 errors it goes up to 20
image

That's odd, it should be defined in <math.h>, what version of windows & pc specs are you using

specs:
Intel Core i5-2415M
8GB of ram
Intel hd graphics 3000
os:Windows 7 x64(with visual c++ 2010 express installed, and llvm aswell)

Here try replacing Windows.bat with this

mkdir Output
cd BuildScripts
clang ^
	../MinecraftC/*.c ^
	../MinecraftC/GUI/*.c ^
	../MinecraftC/Level/*.c ^
	../MinecraftC/Level/Generator/*.c ^
	../MinecraftC/Level/Tile/*.c ^
	../MinecraftC/Level/Generator/Noise/*.c ^
	../MinecraftC/Particle/*.c ^
	../MinecraftC/Physics/*.c ^
	../MinecraftC/Player/*.c ^
	../MinecraftC/Render/*.c ^
	../MinecraftC/Render/Texture/*.c ^
	../MinecraftC/Utilities/*.c ^
	../Resources/MinecraftC.res ^
	-I ../Include ^
	-L ../Libraries ^
	-D _CRT_SECURE_NO_WARNINGS ^
	-std=c11 ^
	-lShell32.lib ^
	-lSetupapi.lib ^
	-lOle32.lib ^
	-lUser32.lib ^
	-lGdi32.lib ^
	-lWinmm.lib ^
	-lOleAut32.lib ^
	-lImm32.lib ^
	-lVersion.lib ^
	-lAdvapi32.lib ^
	-lShcore.lib ^
	-lSDL2main.lib ^
	-lSDL2-static.lib ^
	-lOpengl32.lib ^
	-lGlu32.lib ^
	-Xlinker /subsystem:windows ^
	-Xlinker /NODEFAULTLIB:MSVCRT ^
	-o ../Output/MinecraftC.exe

After fixing a few more errors, I get 2 more errors:
image

add #include <math.h> to the top of each file there's an error in and let me know if that works

It did not fix the link errors.

Okay, when I get the time I'll setup a Windows 7 VM to see if I can replicate the issue.

Closing since there's been a huge refactor, if the issue persists please reopen

Yeah, so now when i tried i get this error:
image