{"action":"closed","issue":{"url":"https://api.github.com/repos/genome/bam-readcount/issues/32","repository_url":"https://api.github.com/repos/genome/bam-readcount","labels_url":"https://api.github.com/repos/genome/bam-readcount/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/genome/bam-readcount/issues/32/comments","events_url":"https://api.github.com/repos/genome/bam-readcount/issues/32/events","html_url":"https://github.com/genome/bam-readcount/issues/32","id":173897531,"number":32,"title":"Compilation error with abs function in BasicStat.cpp","user":{"login":"germelcar","id":3467120,"avatar_url":"https://avatars.githubusercontent.com/u/3467120?v=3","gravatar_id":"","url":"https://api.github.com/users/germelcar","html_url":"https://github.com/germelcar","followers_url":"https://api.github.com/users/germelcar/followers","following_url":"https://api.github.com/users/germelcar/following{/other_user}","gists_url":"https://api.github.com/users/germelcar/gists{/gist_id}","starred_url":"https://api.github.com/users/germelcar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/germelcar/subscriptions","organizations_url":"https://api.github.com/users/germelcar/orgs","repos_url":"https://api.github.com/users/germelcar/repos","events_url":"https://api.github.com/users/germelcar/events{/privacy}","received_events_url":"https://api.github.com/users/germelcar/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-29T23:37:42Z","updated_at":"2016-09-04T23:22:02Z","closed_at":"2016-09-04T23:22:02Z","body":"I just compile your tool in a GNU/Linux distro, using GCC 6.1.1 20160802, but there is a problem with the \"BasicStat.cpp\" file, specifically, with the \"abs\" function used at the line 70. The error was:\r\n\r\n> BasicStat.cpp:69:86: error: call of overloaded ‘abs(float)’ is ambiguous\r\n>          sum_event_location += 1.0 - abs((float)(base->qpos - left_clip) - read_center)/read_center;\r\n\r\nI don't knwo if it is the right way but I have solved it including \"cmat\" header and changing from \"abs\" to \"fabs\".\r\n\r\nHope that helps."}}
{"actor":{"display_login":"ernfrid"}}