LunarG / OpenXR-OverlayLayer

Implementation of the OpenXR Overlay extension as a layer
Other
64 stars 17 forks source link

compiler limit : blocks nested too deeply #26

Open JohnLemonator opened 3 years ago

JohnLemonator commented 3 years ago

When compiling ALL_BUILD target, using Visual Studio 2019, I encountered a fatal error with regards to the following Link. https://docs.microsoft.com/en-us/cpp/error-messages/compiler-errors-1/fatal-error-c1061?view=msvc-160

Build started...
1>------ Build started: Project: xr_extx_overlay, Configuration: Debug x64 ------
1>xr_generated_overlays.cpp
1>E:\SteamVR_Projekt\OpenXR_SDK\OpenXR-OverlayLayer-master\OpenXR-OverlayLayer-master\build\api-layer\xr_generated_overlays.cpp(9925,65): fatal error C1061: compiler limit: blocks nested too deeply
1>Done building project "xr_extx_overlay.vcxproj" -- FAILED.
2>------ Skipped Build: Project: ALL_BUILD, Configuration: Debug x64 ------
2>Project not selected to build for this solution configuration 
========== Build: 0 succeeded, 1 failed, 2 up-to-date, 1 skipped ==========

I have devised a crude workaround to at least get the build to run.

Workaround: Replace "else" in file xr_generated_overlays.cpp(9925) with new line.

bradgrantham-lunarg commented 3 years ago

This may be fixed by #24.