eliemichel / LearnWebGPU-Code

The accompanying code of the Learn WebGPU C++ programming guide
https://eliemichel.github.io/LearnWebGPU
MIT License
90 stars 23 forks source link

step095 compilation error #17

Closed wahn closed 10 months ago

wahn commented 10 months ago

The branch step090 works for me:

% git checkout step090
% rm -rf build
% cmake . -B build -DCMAKE_EXPORT_COMPILE_COMMANDS=1
% cmake --build build

But branch step095 fails:

% git checkout step095
% cmake . -B build -DCMAKE_EXPORT_COMPILE_COMMANDS=1
% cmake --build build

Here (typescript.txt) you can find the full output of both compilations, but the relevant line(s) should be:

% grep error typescript.txt   
/Users/jan/git/github/LearnWebGPU-Code/imgui/./imgui.h:256:5: error: unknown type name 'constexpr'
/Users/jan/git/github/LearnWebGPU-Code/imgui/./imgui.h:256:15: error: constructor cannot have a return type
/Users/jan/git/github/LearnWebGPU-Code/imgui/./imgui.h:257:5: error: unknown type name 'constexpr'
/Users/jan/git/github/LearnWebGPU-Code/imgui/./imgui.h:257:15: error: constructor cannot have a return type
/Users/jan/git/github/LearnWebGPU-Code/imgui/./imgui.h:269:5: error: unknown type name 'constexpr'
/Users/jan/git/github/LearnWebGPU-Code/imgui/./imgui.h:269:15: error: constructor cannot have a return type
/Users/jan/git/github/LearnWebGPU-Code/imgui/./imgui.h:270:5: error: unknown type name 'constexpr'
/Users/jan/git/github/LearnWebGPU-Code/imgui/./imgui.h:270:15: error: constructor cannot have a return type
/Users/jan/git/github/LearnWebGPU-Code/imgui/./imgui.h:341:81: error: no matching constructor for initialization of 'ImVec2'
/Users/jan/git/github/LearnWebGPU-Code/imgui/./imgui.h:342:73: error: no matching constructor for initialization of 'ImVec2'
/Users/jan/git/github/LearnWebGPU-Code/imgui/./imgui.h:359:107: error: no matching constructor for initialization of 'ImVec2'
/Users/jan/git/github/LearnWebGPU-Code/imgui/./imgui.h:501:76: error: no matching constructor for initialization of 'ImVec2'
/Users/jan/git/github/LearnWebGPU-Code/imgui/./imgui.h:510:82: error: no matching constructor for initialization of 'ImVec2'
/Users/jan/git/github/LearnWebGPU-Code/imgui/./imgui.h:515:104: error: no matching constructor for initialization of 'ImVec2'
/Users/jan/git/github/LearnWebGPU-Code/imgui/./imgui.h:515:138: error: no matching constructor for initialization of 'ImVec2'
/Users/jan/git/github/LearnWebGPU-Code/imgui/./imgui.h:515:177: error: no matching constructor for initialization of 'ImVec4'
/Users/jan/git/github/LearnWebGPU-Code/imgui/./imgui.h:515:224: error: no matching constructor for initialization of 'ImVec4'
/Users/jan/git/github/LearnWebGPU-Code/imgui/./imgui.h:516:130: error: no matching constructor for initialization of 'ImVec2'
/Users/jan/git/github/LearnWebGPU-Code/imgui/./imgui.h:516:164: error: no matching constructor for initialization of 'ImVec2'
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
eliemichel commented 10 months ago

Step 090 is where currently is my ongiong "refreshing wave" on the guide, I'll update next steps soon enough! ;)