[LLVMbugs] [Bug 14656] New: error LNK2019: unresolved external symbol __Znwj

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Dec 19 13:45:19 PST 2012


             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: unassignedclangbugs at nondot.org
        ReportedBy: stevecor at bullseye.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    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

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

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