{"action":"created","issue":{"url":"https://api.github.com/repos/kripken/emscripten/issues/3220","labels_url":"https://api.github.com/repos/kripken/emscripten/issues/3220/labels{/name}","comments_url":"https://api.github.com/repos/kripken/emscripten/issues/3220/comments","events_url":"https://api.github.com/repos/kripken/emscripten/issues/3220/events","html_url":"https://github.com/kripken/emscripten/issues/3220","id":59487410,"number":3220,"title":"Strange behaviour with attribute constructor and binding","user":{"login":"Gregwar","id":367022,"avatar_url":"https://avatars.githubusercontent.com/u/367022?v=3","gravatar_id":"","url":"https://api.github.com/users/Gregwar","html_url":"https://github.com/Gregwar","followers_url":"https://api.github.com/users/Gregwar/followers","following_url":"https://api.github.com/users/Gregwar/following{/other_user}","gists_url":"https://api.github.com/users/Gregwar/gists{/gist_id}","starred_url":"https://api.github.com/users/Gregwar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gregwar/subscriptions","organizations_url":"https://api.github.com/users/Gregwar/orgs","repos_url":"https://api.github.com/users/Gregwar/repos","events_url":"https://api.github.com/users/Gregwar/events{/privacy}","received_events_url":"https://api.github.com/users/Gregwar/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kripken/emscripten/labels/embind","name":"embind","color":"e102d8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-03-02T14:25:54Z","updated_at":"2015-03-17T03:22:16Z","closed_at":null,"body":"The following program:\r\n\r\n```c\r\n#include <stdio.h>\r\n\r\n__attribute__((constructor))\r\nvoid test()\r\n{\r\n    printf(\"Testing\\n\");\r\n}\r\n```\r\n\r\nThrough the following compile chain:\r\n\r\n```\r\n$ emcc -c test.c -o test.o\r\n$ emar cr test.a test.o\r\n$ em++ --bind test.a\r\n$ node a.out.js \r\n$ \r\n```\r\n\r\nDoes not works, the constructor method is never called. Why?"},"comment":{"url":"https://api.github.com/repos/kripken/emscripten/issues/comments/82070897","html_url":"https://github.com/kripken/emscripten/issues/3220#issuecomment-82070897","issue_url":"https://api.github.com/repos/kripken/emscripten/issues/3220","id":82070897,"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-03-17T03:22:16Z","updated_at":"2015-03-17T03:22:16Z","body":"I can't follow that example - none of those commands emits `test.js`? Where is it coming from?"}}