{"action":"created","issue":{"url":"https://api.github.com/repos/kripken/emscripten/issues/6465","repository_url":"https://api.github.com/repos/kripken/emscripten","labels_url":"https://api.github.com/repos/kripken/emscripten/issues/6465/labels{/name}","comments_url":"https://api.github.com/repos/kripken/emscripten/issues/6465/comments","events_url":"https://api.github.com/repos/kripken/emscripten/issues/6465/events","html_url":"https://github.com/kripken/emscripten/issues/6465","id":316229025,"number":6465,"title":"Document C++ name mangling issues better","user":{"login":"pikachuk","id":16335601,"avatar_url":"https://avatars0.githubusercontent.com/u/16335601?v=4","gravatar_id":"","url":"https://api.github.com/users/pikachuk","html_url":"https://github.com/pikachuk","followers_url":"https://api.github.com/users/pikachuk/followers","following_url":"https://api.github.com/users/pikachuk/following{/other_user}","gists_url":"https://api.github.com/users/pikachuk/gists{/gist_id}","starred_url":"https://api.github.com/users/pikachuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pikachuk/subscriptions","organizations_url":"https://api.github.com/users/pikachuk/orgs","repos_url":"https://api.github.com/users/pikachuk/repos","events_url":"https://api.github.com/users/pikachuk/events{/privacy}","received_events_url":"https://api.github.com/users/pikachuk/received_events","type":"User","site_admin":false},"labels":[{"id":112674,"url":"https://api.github.com/repos/kripken/emscripten/labels/good%20first%20bug","name":"good first bug","color":"02e10c","default":false},{"id":399965028,"url":"https://api.github.com/repos/kripken/emscripten/labels/help%20wanted","name":"help wanted","color":"fef2c0","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-04-20T11:20:55Z","updated_at":"2018-04-29T15:29:08Z","closed_at":null,"author_association":"NONE","body":"Hello, i'm posting this because i've a weird problem, when i'm using emscripten to compile my C++ code to webassembly, things are working, but the names of the functions are not the same, and when i look at documentations about webassembly, function names are supposed either to have the same name, either to have the same name with an underscore before, but in my case the name follows this format\r\n\r\n__Z[NumberOfLetters] + FunctionName + v\r\n\r\nfor instance the function int roll_dice()\r\nwould be renamed to \"__Z9roll_dicev\" in the generated js glue code\r\nwhich is pretty weird, it means that it requires me to always check the glue code when i want to call a function to remember its name\r\n\r\nps : i tried to manually set the function names by adding them to the build command line instead of KEEPALIVE and it didn't find the function definition until i copy pasted the same kind of weird name\r\nso it must probably search the function name in the linker instead of searching in the cpp files which produces this kind of weird name"},"comment":{"url":"https://api.github.com/repos/kripken/emscripten/issues/comments/385259419","html_url":"https://github.com/kripken/emscripten/issues/6465#issuecomment-385259419","issue_url":"https://api.github.com/repos/kripken/emscripten/issues/6465","id":385259419,"user":{"login":"mischnic","id":4586894,"avatar_url":"https://avatars1.githubusercontent.com/u/4586894?v=4","gravatar_id":"","url":"https://api.github.com/users/mischnic","html_url":"https://github.com/mischnic","followers_url":"https://api.github.com/users/mischnic/followers","following_url":"https://api.github.com/users/mischnic/following{/other_user}","gists_url":"https://api.github.com/users/mischnic/gists{/gist_id}","starred_url":"https://api.github.com/users/mischnic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mischnic/subscriptions","organizations_url":"https://api.github.com/users/mischnic/orgs","repos_url":"https://api.github.com/users/mischnic/repos","events_url":"https://api.github.com/users/mischnic/events{/privacy}","received_events_url":"https://api.github.com/users/mischnic/received_events","type":"User","site_admin":false},"created_at":"2018-04-29T15:29:08Z","updated_at":"2018-04-29T15:29:08Z","author_association":"NONE","body":"The website is in this repository just like the actual source code: https://github.com/kripken/emscripten/blob/incoming/site/source/docs/getting_started/FAQ.rst"}}
{"actor":{"display_login":"mischnic"}}