[LLVMbugs] [Bug 12134] New: C++/Windows: fails to link "new" and "delete"
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Feb 29 07:36:46 PST 2012
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: unassignedclangbugs at nondot.org
ReportedBy: timurrrr at google.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
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.
More information about the llvm-bugs
mailing list