[LLVMbugs] [Bug 20922] New: Identifier 'strdup' not found with LLVM_ENABLE_CXX1Y enabled

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Sep 12 08:13:10 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=20922

            Bug ID: 20922
           Summary: Identifier 'strdup' not found with LLVM_ENABLE_CXX1Y
                    enabled
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Support Libraries
          Assignee: unassignedbugs at nondot.org
          Reporter: curdeius at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

When compiling the trunk with LLVM_ENABLE_CXX1Y enabled, I get the following
error:

Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/CommandLine.cpp.obj
c:/.../llvm/lib/Support/CommandLine.cpp:733:19: error: use of undeclared
identifier 'strdup'
      char *Dup = strdup(Str);
                  ^
1 error generated.

Disabling this option makes the error disappear.

Environment:
* Source: LLVM revision 217666
* OS: Windows 8.1 Pro
* Compiler: clang version 3.5.0 (217039)
  Target: i686-pc-windows-gnu
  Thread model: posix

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140912/de6a7364/attachment.html>


More information about the llvm-bugs mailing list