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

[EDG eccp 3.9/SuSE 9] wcslen() not declared in <wchar.h>

    XMLWordPrintableJSON

    Details

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

      Edison Design Group C/C++ Front End, version 3.9 (Mar 24 2007 16:01:33)
      SUSE LINUX Enterprise Server 9 (x86_64)

    • Severity:
      Compiler Error

      Description

      The C++ '98 function wcslen() required to be declared in <wchar.h> and <cwchar> is not declared in our version of the former header when compiling with EDG eccp on SuSE Linux 9. The function is declared in <cwchar> as expected.

      $ cat t.cpp && make t
      #include <wchar.h>
      
      int main ()
      {
          return wcslen (L"");
      }
      generating dependencies for t.cpp
      eccp -M -I$TOPDIR/include/ansi -D_RWSTDDEBUG    -I$TOPDIR/include -I/build/sebor/stdcxx-eccp-3.9-11s/include -I$TOPDIR/examples/include  -A -x --template_directory=/build/sebor/stdcxx-eccp-3.9-11s/lib -g   --display_error_number --remarks --diag_suppress 193,236,340,401,261,479,487,678,679,815  t.cpp
      eccp -c -I$TOPDIR/include/ansi -D_RWSTDDEBUG    -I$TOPDIR/include -I/build/sebor/stdcxx-eccp-3.9-11s/include -I$TOPDIR/examples/include  -A -x --template_directory=/build/sebor/stdcxx-eccp-3.9-11s/lib -g   --display_error_number --remarks --diag_suppress 193,236,340,401,261,479,487,678,679,815   t.cpp
      "t.cpp", line 5: error #20: identifier "wcslen" is undefined
            return wcslen (L"");
                   ^
      
      1 error detected in the compilation of "t.cpp".
      make: *** [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:

                  Time Tracking

                  Estimated:
                  Original Estimate - 1h
                  1h
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h