[LLVMbugs] [Bug 11405] New: Linker errors on "Hello, world!" in Windows

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Nov 19 10:42:40 PST 2011


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

             Bug #: 11405
           Summary: Linker errors on "Hello, world!" in Windows
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: other
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: alf.p.steinbach at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


After downloading the current source, and building the compiler etc. using
Visual C++ 10.0, it errs out on "Hello, world!" with various linker errors.

Providing some options that reportedly could help, the compiler crashed (ICE,
it
called abort()).

See also my posting <url:
http://stackoverflow.com/questions/8194375/clang-hello-world-link-errors-in-windows>


<example>
d:\dev\test> type con >foo.cpp
#include <iostream>
using namespace std;
int main() { cout << "Hello, cling-clong world!" << endl; }
^Z

d:\dev\test> clang++ foo.cpp
foo-839435.o : error LNK2019: unresolved external symbol __ZSt4cout referenced
in function _main
foo-839435.o : error LNK2019: unresolved external symbol __ZdlPv referenced in
function __ZNSt14error_categoryD0Ev
foo-839435.o : error LNK2019: unresolved external symbol
__ZSt18uncaught_exceptionv referenced in function __ZNSo6sentry
D2Ev
foo-839435.o : error LNK2019: unresolved external symbol ___cxa_rethrow
referenced in function __ZNSt8ios_base5clearEib
foo-839435.o : error LNK2019: unresolved external symbol
___cxa_allocate_exception referenced in function __ZNSt8ios_base5clearEib
foo-839435.o : error LNK2019: unresolved external symbol ___cxa_throw
referenced in function __ZNSt8ios_base5clearEib
foo-839435.o : error LNK2019: unresolved external symbol
__ZSt17iostream_categoryv referenced in function __ZSt15make_er
</example>

-- 
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