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

             Bug #: 12134
           Summary: C++/Windows: fails to link "new" and "delete"
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified


$ more operator_new.cpp
int main() {
  char *ptr = new char[42];
  delete [] ptr;
}

$ clang++ --version
clang version 3.1 (trunk 151567)
Target: i686-pc-win32
Thread model: posix

$ clang++ operator_new.cpp
error LNK2019: unresolved external symbol __Znaj referenced in function _main
error LNK2019: unresolved external symbol __ZdaPv referenced in function _main

$ clang++ -fms-extensions operator_new.cpp
error LNK2019: unresolved external symbol __Znaj referenced in function _main
error LNK2019: unresolved external symbol __ZdaPv referenced in function _main

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- 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