liamdx / bgfx-sdl-minimal-example

SDL2 + BGFX + CMake example
The Unlicense
9 stars 0 forks source link

fatal error C1083: Cannot open include file: 'alloca.h': No such file or directory #1

Open meiry opened 2 years ago

meiry commented 2 years ago

I executed this cmake command : cmake -G "Visual Studio 17 2022" -H. -Bbuild then compiled from VC++ 2022 getting this error :

Build started...
1>------ Build started: Project: bgfx-sdl-minimal-example, Configuration: Debug x64 ------
1>main.cpp
1>C:\dev\my\cpp\bgfx-sdl-minimal-example\submodules\bgfx.cmake\bx\include\bx\bx.h(9,10): fatal error C1083: Cannot open include file: 'alloca.h': No such file or directory
1>Done building project "bgfx-sdl-minimal-example.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 15 up-to-date, 0 skipped ==========
meiry commented 2 years ago

solution : Add this to include path : bgfx-sdl-minimal-example\submodules\bgfx.cmake\bx\include\compat\msvc\