{"action":"created","issue":{"url":"https://api.github.com/repos/kylophone/spectro-photo/issues/1","labels_url":"https://api.github.com/repos/kylophone/spectro-photo/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/kylophone/spectro-photo/issues/1/comments","events_url":"https://api.github.com/repos/kylophone/spectro-photo/issues/1/events","html_url":"https://github.com/kylophone/spectro-photo/issues/1","id":83618236,"number":1,"title":"Can't compile.","user":{"login":"pachacamac","id":543577,"avatar_url":"https://avatars.githubusercontent.com/u/543577?v=3","gravatar_id":"","url":"https://api.github.com/users/pachacamac","html_url":"https://github.com/pachacamac","followers_url":"https://api.github.com/users/pachacamac/followers","following_url":"https://api.github.com/users/pachacamac/following{/other_user}","gists_url":"https://api.github.com/users/pachacamac/gists{/gist_id}","starred_url":"https://api.github.com/users/pachacamac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pachacamac/subscriptions","organizations_url":"https://api.github.com/users/pachacamac/orgs","repos_url":"https://api.github.com/users/pachacamac/repos","events_url":"https://api.github.com/users/pachacamac/events{/privacy}","received_events_url":"https://api.github.com/users/pachacamac/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-01T17:41:06Z","updated_at":"2015-06-01T19:02:22Z","closed_at":"2015-06-01T19:02:22Z","body":"````\r\ngcc ./spectro-photo.c -o spectrophoto\r\n\r\n\r\n./spectro-photo.c: In function ‘column_to_PCM’:\r\n./spectro-photo.c:12:2: error: ‘for’ loop initial declarations are only allowed in C99 mode\r\n  for (int i = 0; i < column_width; i++) {\r\n  ^\r\n./spectro-photo.c:12:2: note: use option -std=c99 or -std=gnu99 to compile your code\r\n./spectro-photo.c:14:3: error: ‘for’ loop initial declarations are only allowed in C99 mode\r\n   for (int j = 0; j < y; j++) {\r\n   ^\r\n./spectro-photo.c: In function ‘get_pixel_intensity’:\r\n./spectro-photo.c:29:2: error: ‘for’ loop initial declarations are only allowed in C99 mode\r\n  for (int i = 0; i < n; i++) {\r\n  ^\r\n./spectro-photo.c: In function ‘main’:\r\n./spectro-photo.c:61:2: error: ‘for’ loop initial declarations are only allowed in C99 mode\r\n  for (int this_x = 0; this_x < x; this_x++) {\r\n  ^\r\n./spectro-photo.c:63:3: error: ‘for’ loop initial declarations are only allowed in C99 mode\r\n   for (int this_y = 0; this_y < y; this_y++) {\r\n\r\n\r\ngcc -dumpversion \r\n4.8\r\n\r\ngcc -dumpmachine\r\nx86_64-linux-gnu\r\n````"},"comment":{"url":"https://api.github.com/repos/kylophone/spectro-photo/issues/comments/107672267","html_url":"https://github.com/kylophone/spectro-photo/issues/1#issuecomment-107672267","issue_url":"https://api.github.com/repos/kylophone/spectro-photo/issues/1","id":107672267,"user":{"login":"kylophone","id":4442504,"avatar_url":"https://avatars.githubusercontent.com/u/4442504?v=3","gravatar_id":"","url":"https://api.github.com/users/kylophone","html_url":"https://github.com/kylophone","followers_url":"https://api.github.com/users/kylophone/followers","following_url":"https://api.github.com/users/kylophone/following{/other_user}","gists_url":"https://api.github.com/users/kylophone/gists{/gist_id}","starred_url":"https://api.github.com/users/kylophone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kylophone/subscriptions","organizations_url":"https://api.github.com/users/kylophone/orgs","repos_url":"https://api.github.com/users/kylophone/repos","events_url":"https://api.github.com/users/kylophone/events{/privacy}","received_events_url":"https://api.github.com/users/kylophone/received_events","type":"User","site_admin":false},"created_at":"2015-06-01T19:02:22Z","updated_at":"2015-06-01T19:02:22Z","body":"Sorry, I should have added a makefile. Try compiling with this flag: `-std=c99`"}}