{"action":"opened","issue":{"url":"https://api.github.com/repos/miek/inspectrum/issues/54","repository_url":"https://api.github.com/repos/miek/inspectrum","labels_url":"https://api.github.com/repos/miek/inspectrum/issues/54/labels{/name}","comments_url":"https://api.github.com/repos/miek/inspectrum/issues/54/comments","events_url":"https://api.github.com/repos/miek/inspectrum/issues/54/events","html_url":"https://github.com/miek/inspectrum/issues/54","id":142114706,"number":54,"title":"tuner.cpp std::abs error","user":{"login":"devnulling","id":11846824,"avatar_url":"https://avatars.githubusercontent.com/u/11846824?v=3","gravatar_id":"","url":"https://api.github.com/users/devnulling","html_url":"https://github.com/devnulling","followers_url":"https://api.github.com/users/devnulling/followers","following_url":"https://api.github.com/users/devnulling/following{/other_user}","gists_url":"https://api.github.com/users/devnulling/gists{/gist_id}","starred_url":"https://api.github.com/users/devnulling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devnulling/subscriptions","organizations_url":"https://api.github.com/users/devnulling/orgs","repos_url":"https://api.github.com/users/devnulling/repos","events_url":"https://api.github.com/users/devnulling/events{/privacy}","received_events_url":"https://api.github.com/users/devnulling/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-20T00:26:27Z","updated_at":"2016-03-20T00:26:27Z","closed_at":null,"body":"When building the waveform branch on OSX, I ran into this error below. Adding \"#include <cstdlib>\" to tuner.cpp resolved this error.\r\n\r\n\r\n[ 90%] Building CXX object CMakeFiles/inspectrum.dir/tuner.cpp.o\r\n/Users/user/sdr/inspectrum-waveform/tuner.cpp:45:34: error: no member named 'abs' in namespace 'std'; did you mean simply 'abs'?\r\n        _deviation = std::max(2, std::abs(sender->pos() - cfCursor->pos()));\r\n                                 ^~~~~~~~\r\n                                 abs\r\n/usr/include/stdlib.h:129:6: note: 'abs' declared here\r\nint      abs(int) __pure2;\r\n         ^\r\n1 error generated.\r\nmake[2]: *** [CMakeFiles/inspectrum.dir/tuner.cpp.o] Error 1\r\nmake[1]: *** [CMakeFiles/inspectrum.dir/all] Error 2\r\nmake: *** [all] Error 2\r\n"}}