UFO: Alien Invasion Issue Tracker
Please log in to bookmark issues
CLOSED  Bug report #5335  -  Compile error on Mac OS 10.9: src/game/g_ai.cpp:469:9: error: call to 'abs' is ambiguous
Posted Jun 24, 2014 - updated Jun 27, 2014
icon_info.png This issue has been closed with status "Closed" and resolution "RESOLVED".
Issue details
  • Type of issue
    Bug report
  • Status
  • Assigned to
    Not assigned to anyone
  • Progress
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
  • Posted by
  • Owned by
    Not owned by anyone
  • Estimated time
    Not estimated
  • Time spent
    2 days, 1 hour
  • Category
    Not determined
  • Resolution
  • Priority
    Not determined
  • Reproducability
    Not determined
  • Severity
    Not determined
  • Targetted for
    icon_milestones.png Not determined
  • Complexity
    icon_customdatatype.png Not determined
  • Platform
    icon_customdatatype.png Not determined
  • Architecture
    icon_customdatatype.png Not determined
Issue description
===> CXX game src/game/g_ai.cpp src/game/g_ai.cpp:469:9: error: call to 'abs' is ambiguous
        team = std::abs(team);
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:660:1: note:
      candidate function
abs(float __x) _NOEXCEPT {return fabsf(__x);} ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:664:1: note:
      candidate function
abs(double __x) _NOEXCEPT {return fabs(__x);} ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:668:1: note:
      candidate function
abs(long double __x) _NOEXCEPT {return fabsl(__x);} ^
Steps to reproduce this issue
run 'make' on master branch on Mac OS 10.9