http://llvm.org/bugs/show_bug.cgi?id=14656
Bug #: 14656
Summary: error LNK2019: unresolved external symbol __Znwj
Product: clang
Version: 3.2
Platform: PC
OS/Version: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
References to operator 'new' result in a unresolved reference to the symbol
__Znwj. To reproduce, build clang with Visual Studio 2010 according to the
instructions at http://clang.llvm.org/get_started.html, then compile this
program:
int main()
{
new int;
return 0;
}
The output:
C:\> clang++ t.cpp
t-576236.o : error LNK2019: unresolved external symbol __Znwj referenced in
function _main
a.out : fatal error LNK1120: 1 unresolved externals
clang++: error: linker command failed with exit code 1120 (use -v to see
invocation)
--
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