{"action":"created","issue":{"url":"https://api.github.com/repos/kripken/emscripten/issues/3112","labels_url":"https://api.github.com/repos/kripken/emscripten/issues/3112/labels{/name}","comments_url":"https://api.github.com/repos/kripken/emscripten/issues/3112/comments","events_url":"https://api.github.com/repos/kripken/emscripten/issues/3112/events","html_url":"https://github.com/kripken/emscripten/issues/3112","id":53226571,"number":3112,"title":"USE_SDL=2 fails with em++","user":{"login":"Bigpet","id":465677,"avatar_url":"https://avatars.githubusercontent.com/u/465677?v=3","gravatar_id":"","url":"https://api.github.com/users/Bigpet","html_url":"https://github.com/Bigpet","followers_url":"https://api.github.com/users/Bigpet/followers","following_url":"https://api.github.com/users/Bigpet/following{/other_user}","gists_url":"https://api.github.com/users/Bigpet/gists{/gist_id}","starred_url":"https://api.github.com/users/Bigpet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bigpet/subscriptions","organizations_url":"https://api.github.com/users/Bigpet/orgs","repos_url":"https://api.github.com/users/Bigpet/repos","events_url":"https://api.github.com/users/Bigpet/events{/privacy}","received_events_url":"https://api.github.com/users/Bigpet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-01-01T19:25:55Z","updated_at":"2015-01-02T04:10:42Z","closed_at":null,"body":"If the `~/.emscripten_ports/sdl2` is not build yet then it will try to complie the `*.c` files in SDL2 as C++ which fails.\r\n\r\nTo reproduce delete the folder `~/.emscripten_ports/sdl2` and then do \r\n\r\n    touch empty.cpp\r\n    em++ -s USE_SDL=2 empty.cpp\r\n\r\nthis will generate SDL2 compile errors (like disallowed implicit conversions between `bool` and the enum `SDL_bool`)\r\n\r\nThis is the same behavior that this user was experiencing: https://groups.google.com/d/msg/emscripten-discuss/mxZNrNgha9A/0no48whWAtgJ"},"comment":{"url":"https://api.github.com/repos/kripken/emscripten/issues/comments/68508009","html_url":"https://github.com/kripken/emscripten/issues/3112#issuecomment-68508009","issue_url":"https://api.github.com/repos/kripken/emscripten/issues/3112","id":68508009,"user":{"login":"kripken","id":173661,"avatar_url":"https://avatars.githubusercontent.com/u/173661?v=3","gravatar_id":"","url":"https://api.github.com/users/kripken","html_url":"https://github.com/kripken","followers_url":"https://api.github.com/users/kripken/followers","following_url":"https://api.github.com/users/kripken/following{/other_user}","gists_url":"https://api.github.com/users/kripken/gists{/gist_id}","starred_url":"https://api.github.com/users/kripken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kripken/subscriptions","organizations_url":"https://api.github.com/users/kripken/orgs","repos_url":"https://api.github.com/users/kripken/repos","events_url":"https://api.github.com/users/kripken/events{/privacy}","received_events_url":"https://api.github.com/users/kripken/received_events","type":"User","site_admin":false},"created_at":"2015-01-02T04:10:42Z","updated_at":"2015-01-02T04:10:42Z","body":"Ok, that looks like a bug with our c++ invocation handling affecting ports building. Should be fixed on incoming now, please verify."}}