emscripten icon indicating copy to clipboard operation
emscripten copied to clipboard

unresolved GLFW3 symbols

Open NickPowers43 opened this issue 10 years ago • 3 comments

When I use the header "GLFW/glfw3.h" found within the "system/include/" directory I get a bunch of unresolved symbol warnings. They are not warnings because I cannot run the application. In the JS file the body of these unresolved functions are substituted with an "abort(-1)" statement.

NickPowers43 avatar Apr 16 '16 02:04 NickPowers43

I tried adding both "-lglfw" and "-lglfw3" but neither of these arguments resolve the issue.

NickPowers43 avatar Apr 16 '16 02:04 NickPowers43

after changing "GLFW/glfw3.h" to "GL/glfw.h" the issue is resolved. I assume GLFW3 isn't supported in v1.35.0.

NickPowers43 avatar Apr 16 '16 03:04 NickPowers43

The issue is resolved. Instead of "-lglfw" I used "-s USE_GLFW=3" and it works now.

NickPowers43 avatar Apr 16 '16 16:04 NickPowers43