zhobo63 / imgui-ts

JavaScript bindings for Dear ImGui using Emscripten and TypeScript, modularized with webpack
MIT License
32 stars 6 forks source link

how to make #1

Closed huison-cao closed 8 months ago

huison-cao commented 2 years ago

bind-imgui.cpp:2256:30: error: no viable overloaded '=' _out_text[0] = emscripten::val(ctx->_ImGui_Combo_text); bind-imgui.cpp:18:52: note: expanded from macro 'FUNCTION' emscripten::optional_override([] ARGS -> RET { CODE }) ^~~~ bind-imgui.cpp:18:52: note: expanded from macro 'FUNCTION' emscripten::optional_override([] ARGS -> RET { CODE }) ^~~~ D:\Application\emsdk\upstream\emscripten\cache\sysroot/include\emscripten/val.h:408:14: note: candidate function not viable: expects an lvalue for object argument val& operator=(val&& v) & { ^ D:\Application\emsdk\upstream\emscripten\cache\sysroot/include\emscripten/val.h:415:14: note: candidate function not viable: expects an lvalue for object argument val& operator=(const val& v) & { ^ bind-imgui.cpp:2661:30: error: no viable overloaded '=' _out_text[0] = emscripten::val(ctx->_ImGui_ListBox_B_text);


bind-imgui.cpp:18:52: note: expanded from macro 'FUNCTION'
    emscripten::optional_override([] ARGS -> RET { CODE })
                                                   ^~~~
bind-imgui.cpp:18:52: note: expanded from macro 'FUNCTION'
    emscripten::optional_override([] ARGS -> RET { CODE })
                                                   ^~~~
D:\Application\emsdk\upstream\emscripten\cache\sysroot/include\emscripten/val.h:408:14: note: candidate function not viable: expects
      an lvalue for object argument
        val& operator=(val&& v) & {
             ^
D:\Application\emsdk\upstream\emscripten\cache\sysroot/include\emscripten/val.h:415:14: note: candidate function not viable: expects
      an lvalue for object argument
        val& operator=(const val& v) & {
WanderWang commented 1 year ago

the same issue . Anyone slove this problem ?

WanderWang commented 1 year ago

problem sloved . I use an older emscripten version ( ./emsdk install 1.38.20 ) instead of latest