Uploaded image for project: 'C++ Standard Library'
  1. C++ Standard Library
  2. STDCXX-244

[HP aCC] no abs() in <stdlib.h> when <math.h> is #included first

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • External
    • None
    • HP aCC all versions going as far back as 3.00 on HP-UX as old as 11.00

    Description

      $ cat t.cpp && aCC -AA +nostl -I/usr/include t.cpp
      #include <math.h>
      #include <stdlib.h>

      int main ()
      {
      return abs (0);
      }
      Error 328: "t.cpp", line 6 # Function 'abs' has not been defined yet; cannot call.
      return abs (0);
      ^^^

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              sebor Martin Sebor
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: