{"action":"created","issue":{"url":"https://api.github.com/repos/HuoLanguage/huo/issues/56","repository_url":"https://api.github.com/repos/HuoLanguage/huo","labels_url":"https://api.github.com/repos/HuoLanguage/huo/issues/56/labels{/name}","comments_url":"https://api.github.com/repos/HuoLanguage/huo/issues/56/comments","events_url":"https://api.github.com/repos/HuoLanguage/huo/issues/56/events","html_url":"https://github.com/HuoLanguage/huo/issues/56","id":234971041,"number":56,"title":"unknown type name 'huo_ast' compilation error","user":{"login":"rwhitworth","id":7214365,"avatar_url":"https://avatars3.githubusercontent.com/u/7214365?v=3","gravatar_id":"","url":"https://api.github.com/users/rwhitworth","html_url":"https://github.com/rwhitworth","followers_url":"https://api.github.com/users/rwhitworth/followers","following_url":"https://api.github.com/users/rwhitworth/following{/other_user}","gists_url":"https://api.github.com/users/rwhitworth/gists{/gist_id}","starred_url":"https://api.github.com/users/rwhitworth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rwhitworth/subscriptions","organizations_url":"https://api.github.com/users/rwhitworth/orgs","repos_url":"https://api.github.com/users/rwhitworth/repos","events_url":"https://api.github.com/users/rwhitworth/events{/privacy}","received_events_url":"https://api.github.com/users/rwhitworth/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-06-10T01:38:00Z","updated_at":"2017-06-10T19:10:06Z","closed_at":null,"body":"Trying to compile with gcc or clang on Debian jessie.  Receiving the following error (and a similar error with clang).  Seeing this on git commit 152af3bad73520f49257450800d9e07c4d9ed799.\r\n\r\n```\r\ncc -g3 -std=c11 -Werror -Wall -Wextra -pedantic -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -MD -MF .structures/huo_ast.mk -MP -MD -MF src/structures/huo_ast.o -MP -MD -MF .huo_ast.mk -MP  -c -o src/structures/huo_ast.o src/structures/huo_ast.c\r\nIn file included from src/structures/value.h:5:0,\r\n                 from src/structures/huo_ast.h:7,\r\n                 from src/structures/huo_ast.c:6:\r\nsrc/structures/structures.h:20:5: error: unknown type name ‘huo_ast’\r\n     huo_ast *ast;\r\n     ^\r\nsrc/structures/structures.h:29:9: error: unknown type name ‘huo_ast’\r\n         huo_ast *ast;\r\n         ^\r\n<builtin>: recipe for target 'src/structures/huo_ast.o' failed\r\nmake: *** [src/structures/huo_ast.o] Error 1\r\n```"},"comment":{"url":"https://api.github.com/repos/HuoLanguage/huo/issues/comments/307584574","html_url":"https://github.com/HuoLanguage/huo/issues/56#issuecomment-307584574","issue_url":"https://api.github.com/repos/HuoLanguage/huo/issues/56","id":307584574,"user":{"login":"snordgren","id":15676565,"avatar_url":"https://avatars1.githubusercontent.com/u/15676565?v=3","gravatar_id":"","url":"https://api.github.com/users/snordgren","html_url":"https://github.com/snordgren","followers_url":"https://api.github.com/users/snordgren/followers","following_url":"https://api.github.com/users/snordgren/following{/other_user}","gists_url":"https://api.github.com/users/snordgren/gists{/gist_id}","starred_url":"https://api.github.com/users/snordgren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snordgren/subscriptions","organizations_url":"https://api.github.com/users/snordgren/orgs","repos_url":"https://api.github.com/users/snordgren/repos","events_url":"https://api.github.com/users/snordgren/events{/privacy}","received_events_url":"https://api.github.com/users/snordgren/received_events","type":"User","site_admin":false},"created_at":"2017-06-10T19:10:06Z","updated_at":"2017-06-10T19:10:06Z","body":"From what I can see this is the result of this ordering, because value.h makes use of the huo_ast type:\r\n\r\n    #include \"value.h\"\r\n    typedef struct huo_ast_t huo_ast;\r\n\r\nI tried swapping the two lines and it worked.\r\n\r\n    typedef struct huo_ast_t huo_ast;\r\n    #include \"value.h\""}}
{"actor":{"display_login":"snordgren"}}