{"action":"created","issue":{"url":"https://api.github.com/repos/PhilippeSigaud/Pegged/issues/153","labels_url":"https://api.github.com/repos/PhilippeSigaud/Pegged/issues/153/labels{/name}","comments_url":"https://api.github.com/repos/PhilippeSigaud/Pegged/issues/153/comments","events_url":"https://api.github.com/repos/PhilippeSigaud/Pegged/issues/153/events","html_url":"https://github.com/PhilippeSigaud/Pegged/issues/153","id":65031927,"number":153,"title":"example arithmetic.d fails on windows","user":{"login":"sycam0inc","id":5954916,"avatar_url":"https://avatars.githubusercontent.com/u/5954916?v=3","gravatar_id":"","url":"https://api.github.com/users/sycam0inc","html_url":"https://github.com/sycam0inc","followers_url":"https://api.github.com/users/sycam0inc/followers","following_url":"https://api.github.com/users/sycam0inc/following{/other_user}","gists_url":"https://api.github.com/users/sycam0inc/gists{/gist_id}","starred_url":"https://api.github.com/users/sycam0inc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sycam0inc/subscriptions","organizations_url":"https://api.github.com/users/sycam0inc/orgs","repos_url":"https://api.github.com/users/sycam0inc/repos","events_url":"https://api.github.com/users/sycam0inc/events{/privacy}","received_events_url":"https://api.github.com/users/sycam0inc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-29T07:13:05Z","updated_at":"2015-03-29T08:52:58Z","closed_at":null,"body":"compiling with both dmd 2.66.1 and 2.67 linking fails and prints more errors than the size of the consoles buffer. basically they all look like this\r\narithmetic.obj(arithmetic)\r\n Error 35: Cannot Reach TARGET from FRAME at Relative 0002DH  from\r\n Segment _TEXT\r\n FRAME  = Frame of Group FLAT 00000H\r\n TARGET = External Symbol _D6pegged8examples10arithmetic46__T17GenericAÇëÿTSÇçÂ3\r\n‗9ParseTreeZÇô½10Çèî6beforeHAyaDFÇù├Çûù 13580H\r\n FIXUPP Type = Unknown Type\r\n"},"comment":{"url":"https://api.github.com/repos/PhilippeSigaud/Pegged/issues/comments/87373081","html_url":"https://github.com/PhilippeSigaud/Pegged/issues/153#issuecomment-87373081","issue_url":"https://api.github.com/repos/PhilippeSigaud/Pegged/issues/153","id":87373081,"user":{"login":"PhilippeSigaud","id":579751,"avatar_url":"https://avatars.githubusercontent.com/u/579751?v=3","gravatar_id":"","url":"https://api.github.com/users/PhilippeSigaud","html_url":"https://github.com/PhilippeSigaud","followers_url":"https://api.github.com/users/PhilippeSigaud/followers","following_url":"https://api.github.com/users/PhilippeSigaud/following{/other_user}","gists_url":"https://api.github.com/users/PhilippeSigaud/gists{/gist_id}","starred_url":"https://api.github.com/users/PhilippeSigaud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PhilippeSigaud/subscriptions","organizations_url":"https://api.github.com/users/PhilippeSigaud/orgs","repos_url":"https://api.github.com/users/PhilippeSigaud/repos","events_url":"https://api.github.com/users/PhilippeSigaud/events{/privacy}","received_events_url":"https://api.github.com/users/PhilippeSigaud/received_events","type":"User","site_admin":false},"created_at":"2015-03-29T08:52:58Z","updated_at":"2015-03-29T08:52:58Z","body":"I suppose that's because there is no `void main() {}` inside the module.\nIt's not made to be compiled by itself, but to be used in another module:\n\n```d\nmodule mymodule;\n\n\nvoid main()  {\n    import pegged.examples.arithmetic;\n    import std.stdio;\n\n    string input = \"1+2*3\";\n\n    writeln(\"Formula: \", input);\n    writeln(\"Parse tree:\");\n    writeln(Arithmetic(input));\n    writeln(\"Value: \", interpreter(input));\n}\n```\n\nIf I'm right, the error you see does not come from Pegged, but from DMD and\nits linker.\n"}}