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: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to