travisvroman / kohi

A game engine made as part of the Kohi Game Engine series on YouTube (and Twitch!), where we make a game engine from the ground up using C and Vulkan.
https://kohiengine.com
Apache License 2.0
946 stars 92 forks source link

[BUG] Unable to compile on Windows #210

Closed atrt7 closed 5 months ago

atrt7 commented 6 months ago

Describe the bug A clear and concise description of what the bug is.

When attempting to compile (I used build-debug.bat) I get an error. I have LLVM, the OpenAL SDK, the Vulkan SDK, Visual Studio 2022, and GNU make installed using the recommended methods and added to the path where applicable.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'the kohi folder'
  2. Run 'build-debug.bat'
  3. See error

Expected behavior The game engine to compile without errors.

Screenshots image

Desktop (please complete the following information):

MarcosDanielTorres commented 5 months ago

Hey, I tried and it worked for me. Maybe it's because of the clang version? I'm using the same as he installed (12.0.0) which can be found here: https://prereleases.llvm.org/win-snapshots/LLVM-12.0.0-6923b0a7-win64.exe

He uses the same version on the Windows setup video

travisvroman commented 5 months ago

Thanks for reporting this! The real issue was a missing void in the function signature. This has been fixed (sometime recently) and is in the latest code.