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

[Linux] error on std::putc()

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.1.3
    • Fix Version/s: 4.2.1
    • Component/s: 27. Input/Output
    • Labels:
      None
    • Environment:

      SuSE SLES 9sp2 (ppc64), IBM XL C/C++ Advanced Edition V8.0 for Linux
      Version: 08.00.0000.0000

    • Severity:
      Compiler Error

      Description

      IBM VAC++ 8.0 linux uses _IO_putc instead of putc

      file affected:

      include/ansi/cstdio

      ------- testcase.cpp --------

      #include <cstdio>

      int main()
      {
      std::putc ("test", stdout);
      std::fflush (stdout);
      }

      ---------- compile line ----------------
      xlc -F /package/1/ppc64/compilers/ibm/va80/vac.cfg -q64 -qarch=ppc64 -D_RWSTD_NO_IMPLICIT_INCLUSION -qnolib -Wl,-dynamic-linker -Wl,/lib64/ld64.so.1 -D_RWCONFIG=stdlib_rs -I../../include -I./../../../../include -I./../../../../include/ansi -I./../../../.. -I.. -I. -g -c ../testcase.cpp

      ---------- output ----------------------
      "../testcase.cpp", line 5.9: 1540-0130 (S) "std::_IO_putc" is not declared.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sebor Martin Sebor
                Reporter:
                scottz Scott (Yu) Zhong
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: