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

[aCC 3.63/HP-UX 11.23] wctob undeclared in <wchar.h>

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.1.3
    • Fix Version/s: 4.2.0
    • Component/s: 21. Strings
    • Labels:
      None
    • Environment:

      aCC 3.63 on HP-UX 11.23/PA

    • Severity:
      Compiler Error

      Description

      The program below fails to compile with aCC 3.63 on HP-UX 11.23 even though it compiles fine with the native library.

      $ cat t.cpp && uname -sr && aCC -V && aCC -AA t.cpp && gmake t
      #include <wchar.h>
      int main ()
      {
      wctob (0);
      std::wctob (0);
      }

      HP-UX B.11.23
      aCC: HP ANSI C++ B3910B A.03.63
      aCC -c -I/build/sebor/dev/stdlib/include/ansi -I/usr/include -mt -D_RWSTD_USE_CONFIG -I/build/sebor/aCC-3.63-12d/include -I/build/sebor/dev/stdlib/include -I/build/sebor/dev/stdlib/../rwtest -I/build/sebor/dev/stdlib/../rwtest/include -I/build/sebor/dev/stdlib/tests/include -Aa +nostl +O2 +w +W392 +W655 +W684 +W818 +W819 +W849 t.cpp
      Error 403: "t.cpp", line 5 # Undeclared variable 'wctob'. Perhaps 'wctomb' as
      in "int wctomb(char *,wchar_t)" ["/usr/include/../include/stdlib.h", line
      181] was intended.
      wctob (0);
      ^^^^^
      Error 403: "t.cpp", line 6 # Undeclared variable 'wctob'. Perhaps 'wctomb' as
      in "int wctomb(char *,wchar_t)" ["/usr/include/../include/stdlib.h", line
      181] was intended.
      std::wctob (0);
      ^^^^^^^^^^
      gmake: *** [t.o] Error 2

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sebor Martin Sebor
                Reporter:
                sebor Martin Sebor
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: