{"action":"created","issue":{"url":"https://api.github.com/repos/b-k/apophenia/issues/22","labels_url":"https://api.github.com/repos/b-k/apophenia/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/b-k/apophenia/issues/22/comments","events_url":"https://api.github.com/repos/b-k/apophenia/issues/22/events","html_url":"https://github.com/b-k/apophenia/issues/22","id":68963768,"number":22,"title":"Compilation errors, Mac OS X Yosemite 10.10.3","user":{"login":"ntedeschi","id":7342132,"avatar_url":"https://avatars.githubusercontent.com/u/7342132?v=3","gravatar_id":"","url":"https://api.github.com/users/ntedeschi","html_url":"https://github.com/ntedeschi","followers_url":"https://api.github.com/users/ntedeschi/followers","following_url":"https://api.github.com/users/ntedeschi/following{/other_user}","gists_url":"https://api.github.com/users/ntedeschi/gists{/gist_id}","starred_url":"https://api.github.com/users/ntedeschi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ntedeschi/subscriptions","organizations_url":"https://api.github.com/users/ntedeschi/orgs","repos_url":"https://api.github.com/users/ntedeschi/repos","events_url":"https://api.github.com/users/ntedeschi/events{/privacy}","received_events_url":"https://api.github.com/users/ntedeschi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-16T16:44:33Z","updated_at":"2015-04-16T18:38:20Z","closed_at":null,"body":"Hi,\r\n\r\nI am getting the following errors when trying to compile:\r\n\r\n../../apophenia-pkg/model/apop_histogram.c:116:21: error: expected expression\r\n    OMP_for_reduce(+:ll,    int i=0; i< datasize; i++){\r\n                    ^\r\n../../apophenia-pkg/apop_internal.h:65:33: note: expanded from macro 'OMP_for_reduce'\r\n#define OMP_for_reduce(...) for(__VA_ARGS__)\r\n                                ^\r\n../../apophenia-pkg/model/apop_histogram.c:116:38: error: use of undeclared identifier 'i'\r\n    OMP_for_reduce(+:ll,    int i=0; i< datasize; i++){\r\n                                     ^\r\n../../apophenia-pkg/apop_internal.h:65:33: note: expanded from macro 'OMP_for_reduce'\r\n#define OMP_for_reduce(...) for(__VA_ARGS__)\r\n                                ^\r\n../../apophenia-pkg/model/apop_histogram.c:116:51: error: use of undeclared identifier 'i'\r\n    OMP_for_reduce(+:ll,    int i=0; i< datasize; i++){\r\n\r\nI am able to compile fine on Linux.  Is this a clang issue?  I am using clang-602.0.49, Apple LLVM version 6.1.0.\r\n\r\nThanks,\r\nNeil"},"comment":{"url":"https://api.github.com/repos/b-k/apophenia/issues/comments/93810732","html_url":"https://github.com/b-k/apophenia/issues/22#issuecomment-93810732","issue_url":"https://api.github.com/repos/b-k/apophenia/issues/22","id":93810732,"user":{"login":"mcheema","id":2037767,"avatar_url":"https://avatars.githubusercontent.com/u/2037767?v=3","gravatar_id":"","url":"https://api.github.com/users/mcheema","html_url":"https://github.com/mcheema","followers_url":"https://api.github.com/users/mcheema/followers","following_url":"https://api.github.com/users/mcheema/following{/other_user}","gists_url":"https://api.github.com/users/mcheema/gists{/gist_id}","starred_url":"https://api.github.com/users/mcheema/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcheema/subscriptions","organizations_url":"https://api.github.com/users/mcheema/orgs","repos_url":"https://api.github.com/users/mcheema/repos","events_url":"https://api.github.com/users/mcheema/events{/privacy}","received_events_url":"https://api.github.com/users/mcheema/received_events","type":"User","site_admin":false},"created_at":"2015-04-16T18:38:20Z","updated_at":"2015-04-16T18:38:20Z","body":"download the latest apop_internal.h and then try and compile it should work. I submitted a patch which fixes this error. \r\nAlso, note that OMP is not available in the default OS X compiler."}}